# Repeated hyper-parameters in different runs

**URL:** <https://discuss.ray.io/t/repeated-hyper-parameters-in-different-runs/23347>\
**Category:** Ray Tune\
**Created:** [December 1, 2025, 5:47pm UTC](https://discuss.ray.io/t/repeated-hyper-parameters-in-different-runs/23347 "2025-12-01T17:47:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [December 1, 2025, 5:48pm UTC](https://discuss.ray.io/t/repeated-hyper-parameters-in-different-runs/23347/2 "2025-12-01T17:48:14Z")

</div>

Yes, this is expected. Using `tune.choice` with `num_samples=24` will randomly sample 24 parameter combinations, possibly with repeats, not exhaustively enumerate all unique combinations. For a true grid search (i.e., every possible combination exactly once), you must use `tune.grid_search` for each parameter instead of `tune.choice`—this will ensure all combinations are covered without repetition, regardless of `num_samples` [[source]](https://docs.ray.io/en/latest/tune/api/doc/ray.tune.grid_search.html#toctree-checkbox-77), [[source]](https://discuss.ray.io/t/tune-terminates-after-running-a-single-configuration/3439), [[source]](https://discuss.ray.io/t/how-to-execute-each-experiment-once/889).

Would you like a code example or more detail on how to set up grid search in Ray Tune?

Sources:

- [ray.tune.grid\_search documentation](https://docs.ray.io/en/latest/tune/api/doc/ray.tune.grid_search.html#toctree-checkbox-77)
- [Tune terminates after running a single configuration](https://discuss.ray.io/t/tune-terminates-after-running-a-single-configuration/3439)
- [How to execute each experiment once](https://discuss.ray.io/t/how-to-execute-each-experiment-once/889)

Hint: Mention @RunLLM in the post for followups.

---

_[View the full topic](https://discuss.ray.io/t/repeated-hyper-parameters-in-different-runs/23347)._
