File size: 379 Bytes
4106468 fa26615 4106468 | 1 2 3 4 5 6 7 8 9 | """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))
|