Skip to content

Commit 18ce04f

Browse files
authored
Update the hf_ptq.yaml (#1175)
### What does this PR do? Type of change: Bug fix Fix the CLI override example comment in `tools/launcher/examples/Qwen/Qwen3-8B/hf_ptq.yaml` by adding a missing `--` (double-dash separator) to the `task_0.args` override. Without the `--` separator, the `--quant` flag would be parsed as an argument to the launcher/download script rather than being passed through to the PTQ script (`huggingface_example.sh`). This aligns the comment example with the actual `task_0.args` definition in the YAML (line 42), which already correctly includes the `--` separator. ### Testing Verified the comment now matches the actual args format used in the YAML config. ### Before your PR is "*Ready for review*" Make sure you read and follow [Contributor guidelines](https://github.com/NVIDIA/Model-Optimizer/blob/main/CONTRIBUTING.md) and your commits are signed (`git commit -s -S`). Make sure you read and follow the [Security Best Practices](https://github.com/NVIDIA/Model-Optimizer/blob/main/SECURITY.md#security-coding-practices-for-contributors) (e.g. avoiding hardcoded `trust_remote_code=True`, `torch.load(..., weights_only=False)`, `pickle`, etc.). - Is this change backward compatible?: ✅ - If you copied code from any other sources or added a new PIP dependency, did you follow guidance in `CONTRIBUTING.md`: N/A - Did you write any new necessary tests?: N/A - Did you update [Changelog](https://github.com/NVIDIA/Model-Optimizer/blob/main/CHANGELOG.rst)?: N/A <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated example configuration to correct command-line parameter formatting in commented usage example. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Chenjie Luo <chenjiel@nvidia.com>
1 parent 9611158 commit 18ce04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/launcher/examples/Qwen/Qwen3-8B/hf_ptq.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Override model/quant via CLI:
2121
# uv run launch.py --yaml examples/llm_ptq/hf_ptq.yaml \
2222
# pipeline.global_vars.hf_model=Qwen/Qwen3-8B \
23-
# pipeline.task_0.args='[--model,<<global_vars.hf_local>>Qwen/Qwen3-8B,--quant,nvfp4]' \
23+
# pipeline.task_0.args='[--model,<<global_vars.hf_local>>Qwen/Qwen3-8B,--,--quant,nvfp4]' \
2424
# --yes
2525

2626
job_name: hf_ptq_nvfp4

0 commit comments

Comments
 (0)