Add recommended sampling defaults (temperature 1.0, top-p 0.95)

#17

Adds Ripple's recommended sampling defaults, temperature 1.0 and top-p 0.95, to generation_config.json.

  • Why: the checkpoint currently sets no sampling fields, so OpenAI-compatible servers (SGLang's default --sampling-defaults model, vLLM) fall back to temperature 1.0 with top-p 1.0, no nucleus cutoff, whenever a request omits them. Reported in NVFP4 discussion #1.
  • Source of the values: these are the settings ri-llm's evaluations use for this model.
  • do_sample: true: makes transformers generate() honour the temperature and top-p, instead of decoding greedily and warning.
  • No _from_model_config: the file is hand-written now, not derived from config.json.
  • Unchanged: token IDs (BOS 100257 <|endoftext|>, EOS 100265 <|im_end|> / 100257, pad 100277 <|pad|>) match config.json and tokenizer.json. Request-level values still override these defaults. SGLang's native /generate and /v1/completions don't use them.

Checked: with stock SGLang 0.5.19 the chat endpoint resolves omitted sampling to 1.0 / 0.95, and explicit request values win. transformers loads the file with no warnings.

william-ricursive changed pull request status to merged

Sign up or log in to comment