Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.39 KB

README.md

File metadata and controls

26 lines (20 loc) · 1.39 KB

CodiumAI token minimization

In this repository we provide implementation for token-reduction techniques introduce in our blog "Reduce Your Costs by 30% When Using GPT-3 for Python Code"

Example code for the proposed techniques is provided in example.py.

Tokens for baseline code
Baseline Tokens
Tokens for tabified code
Tabified Tokens
Tokens for tabified and minimized code
Tabified and minimized code tokens

Note that both tabification and minimization operations do not change the code functionality.

Feel free to contact if there are any questions or issues.

Acknowledgement

To perform code minimization, we use the excellent Python Minifier package.