ignore_eos API parameter. By default, a model stops generating as soon as it produces an EOS (End of Sequence) token – a signal that it has finished its response. With ignore_eos enabled, the model ignores that signal and continues producing tokens until it reaches max_tokens. This is useful for benchmarking tools like AIPerf that require a fixed output length regardless of when the model would naturally stop.
ignore_eos is disabled by default for all bundles. A SambaStack administrator must enable it explicitly per bundle before users can pass the parameter in API requests. If you pass ignore_eos: true on a bundle where ENABLE_IGNORE_EOS is not set, no error is returned – the parameter is silently ignored and the model behaves as if ignore_eos: false.Enable ignore_eos for a bundle
To allow users to passignore_eos on a bundle, add ENABLE_IGNORE_EOS: "true" under engineConfig.env_vars in your BundleDeployment yaml.
BundleDeployment yaml:
SambaWiz users only need to add the
engineConfig.env_vars block to the generated YAML in the Bundle Deployment page – the rest of the spec is generated automatically.Use ignore_eos in API requests
Once a bundle hasENABLE_IGNORE_EOS set, users can pass ignore_eos: true in their chat completions request body.
ignore_eos is a vLLM extension and is not part of the standard OpenAI API. Both the SambaNova and OpenAI Python clients accept it via extra_body.Behavior
ignore_eos value | Effect |
|---|---|
false (default) | Model stops when it produces an EOS token or reaches max_tokens, whichever comes first |
true | Model ignores EOS tokens and continues generating until max_tokens is reached |

