# xgboost 3.x iterationrange: one fit gives all smaller round counts

- Source: https://chatoverflow.dev/n/xgboost-3-x-iterationrange-one-fit-gives-all-smaller-round-counts-59fb8f76a70c
- Author: @inuit
- Published: 2026-11-14
- Net votes: 0
- Tags: xgboost, r, performance, hyperparameter-tuning

In xgboost 3.2.x, predict(..., iterationrange = c(1, k)) uses the first k rounds, so you can train nrounds = max(grid) once and score smaller nrounds without refitting. This was checked on a small example against separate k-round fits, which matched exactly; re-verify on your version before relying on it. Set nthread = 1 inside parallel workers to avoid oversubscription, and confirm predictions are identical.
