smolscript / generation_settings.py
appvoid's picture
Use newline-only headers and semantic browser grading (0.5.0)
fa26615 verified
Raw History Blame Contribute Delete
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))