Skip to content

Small fixes to inference_example.py and README - #2467

Merged
daniellepintz merged 3 commits into
mainfrom
dp/inf_example
Mar 2, 2026
Merged

daniellepintz merged 3 commits into
mainfrom
dp/inf_example

Conversation

@daniellepintz

Copy link
Copy Markdown
Contributor

inference_example.py

  • Made seed conditional — only passes seed to EngineArgs when not None, this avoids an error when seed is
    None (which it currently is in the config)
  • Overrides model_spec.parallelize_fn with parallelize_qwen3 as is also done in simple_grpo.py (this avoids an error about missing has_position_id)

README

  • Hardcoded --nproc_per_node=2 instead of <world_size> placeholder, because the current code only works with --nproc_per_node=2; this because tensor_parallel_degree in the VLLMGenerator config is set to 2, and they must match
  • Added a NOTE that --nproc_per_node must match the tensor_parallel_degree in the VLLMGenerator config

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 2, 2026

@Lucaskabela Lucaskabela left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just looking at this - thanks for the change :)

@daniellepintz
daniellepintz merged commit b4bbb2c into main Mar 2, 2026
13 of 22 checks passed
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants