Open ZhenboYan opened 2 weeks ago
Hi @ZhenboYan ,
If the random seed is not provided to SamplingParams, TRT-LLM will generate a default and fixed random seed for sampling. That's why you observed the generation outputs unchanged across different runs. So, we need to provide different random seeds to get different sampling outputs. Thanks!
Description I ran the provided example script examples/llm-api/quickstart_example.py and observed that the output is consistent across multiple runs.
Steps to Reproduce
Observed Behavior
Expected Behavior I'd like to understand how to generate non-deterministic results with fixed temperature and top_p settings.
Question How can I configure the model or script to produce non-deterministic outputs with fixed temperature and top_p?