Download generation_settings.py from dotlabs/smolscript: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/generation_settings.py
- Command line
-
hf download hf://datasets/dotlabs/smolscript/generation_settings.py
-
curl -L -o generation_settings.py https://huggingface.co/datasets/dotlabs/smolscript/resolve/main/generation_settings.py
379 Bytes
| """Versioned decoding policy; never reads references or hidden answers.""" | |
| PROTOCOL='smolscript-0.5.0' | |
| DEFAULT_BATCH_SIZE=64 | |
| MAX_NEW_TOKENS=256 | |
| def token_budget(row): | |
| base={'python':128,'javascript':192,'html':160,'css':96,'cpp':224,'c':256,'lua':160,'csharp':256,'rust':256}[row['language']] | |
| return min(MAX_NEW_TOKENS,base+(32 if row['difficulty']=='moderate' else 0)) | |