Skip to content

Conversation

@lanluo-nvidia
Copy link
Collaborator

@lanluo-nvidia lanluo-nvidia commented Jan 9, 2026

Description

This is to support the modelopt pre-quantized model in LLM

#not pre-quantized model, directly inference with fp16/bf16
python run_llm.py --model Qwen/Qwen2.5-0.5B-Instruct \
--prompt "What is parallel programming?" \
--model_precision FP16 --num_tokens 128 \
--cache static_v2 --enable_pytorch_run
# not pre-quantized model, use modelopt to quantize and inference
python run_llm.py --model Qwen/Qwen2.5-0.5B-Instruct  \
--prompt "What is parallel programming?"  \
--quant_format fp8 --num_tokens 128 \
--cache static_v2 --enable_pytorch_run

# nvidia modelopt fp8 prequantized model
python run_llm.py --model nvidia/Qwen3-8B-FP8 \
--prompt "What is parallel programming?"  \
--num_tokens 128 \
--cache static_v2 --enable_pytorch_run

Fixes # (issue)

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

@meta-cla meta-cla bot added the cla signed label Jan 9, 2026
@github-actions github-actions bot added the component: tests Issues re: Tests label Jan 9, 2026
@lanluo-nvidia lanluo-nvidia marked this pull request as ready for review January 9, 2026 00:08
@narendasan narendasan requested a review from keehyuna January 9, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants