Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneType object not subscriptable error in quantize.py #2818

Open
HyungjoonYang opened this issue Feb 25, 2025 · 2 comments
Open

NoneType object not subscriptable error in quantize.py #2818

HyungjoonYang opened this issue Feb 25, 2025 · 2 comments
Assignees
Labels
Investigating Low Precision Issue about lower bit quantization, including int8, int4, fp8 triaged Issue has been triaged by maintainers

Comments

@HyungjoonYang
Copy link

I'm following the steps in the MLLama example and the TensorRT-LLM multimodal documentation.

When I run the following command:

python tensorrt_llm/examples/quantization/quantize.py \
--model_dir /data/Llama-3.2-90B-Vision-Instruct \                                           
--dtype bfloat16 \                                            
--qformat fp8 \                                            
--output_dir /tmp/trt_models/Llama-3.2-90B-Vision-Instruct/fp8/1-gpu \                                            
--kv_cache_dtype fp8 \                                            
--calib_size 512 \                                            
--calib_dataset scienceqa \

The process runs for a while but eventually fails with the following error:

TypeError: 'NoneType' object is not subscriptable

trying to find model.architecture[0]

Model: LLaMA 3.2-90B-Vision
Precision: bfloat16 → fp8
OS: Ubuntu
GPU: GH200 x 2
CUDA version: 12.6
cuDNN version: 9.7.1.26-1

Please let me know if additional logs or debugging steps are needed.

@nv-guomingz
Copy link
Collaborator

Hi @HyungjoonYang , may I know your modelopt version?

@HyungjoonYang
Copy link
Author

Hi @HyungjoonYang , may I know your modelopt version?

I am using modelopt version 0.23.0 in docker container.

@nv-guomingz nv-guomingz self-assigned this Feb 25, 2025
@nv-guomingz nv-guomingz added the Low Precision Issue about lower bit quantization, including int8, int4, fp8 label Feb 25, 2025
@github-actions github-actions bot added triaged Issue has been triaged by maintainers Investigating labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigating Low Precision Issue about lower bit quantization, including int8, int4, fp8 triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants