Skip to content

Codium-ai/codium-token-minimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages