Skip to content

[Bug]: Unsupported quantization_config for Qwen2-7B w8a8 model in trtllm-serve #6988

Closed as not planned

Description

@kurosakiharachan

System Info

  • CPU architecture: x86_64
  • GPU: A800-SXM4-40GB
  • TensorRT-LLM: v1.0.0rc6
  • TensorRT: 10.11.0.33
  • torch: 2.8.0a0+5228986c39.nv25.6
  • Driver Version: 570.133.20
  • CUDA Version: 12.9
  • Ubuntu 22.04.5 LTS

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Tue_May_27_02:21:03_PDT_2025
Cuda compilation tools, release 12.9, V12.9.86
Build cuda_12.9.r12.9/compiler.36037853_0

Who can help?

@Tracin

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

Run command as follows:

trtllm-serve /data1/llm-models/qwen/models/neuralmagic/Qwen2___5-7B-quantized___w8a8

The model of "Qwen2___5-7B-quantized___w8a8" is from "https://www.modelscope.cn/models/neuralmagic/Qwen2.5-7B-quantized.w8a8".

Expected behavior

The model should load and be served successfully with its 8-bit weight and activation quantization.

actual behavior

Error message is:

NotImplementedError: Unsupported quantization_config: {'config_groups': {'group_0': {'input_activations': {'actorder': None, 'block_structure': None, 'dynamic': True, 'group_size': None, 'num_bits': 8, 'observer': 'memoryless', 'observer_kwargs': {}, 'strategy': 'token', 'symmetric': True, 'type': 'int'}, 'output_activations': None, 'targets': ['Linear'], 'weights': {'actorder': None, 'block_structure': None, 'dynamic': False, 'group_size': None, 'num_bits': 8, 'observer': 'minmax', 'observer_kwargs': {}, 'strategy': 'channel', 'symmetric': True, 'type': 'int'}}}, 'format': 'int-quantized', 'global_compression_ratio': 1.2389973594794181, 'ignore': ['lm_head'], 'kv_cache_scheme': None, 'quant_method': 'compressed-tensors', 'quantization_status': 'compressed', 'version': '0.6.0'}.
Image

additional notes

None

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.

Activity

  1. added
    bug
    on Aug 18, 2025
  2. Shixiaowei02 commented on Aug 18, 2025

    @Shixiaowei02
    Collaborator

    @byshiue Could you please help answer this question? Thanks

  3. added
    feature request
    on Aug 29, 2025
  4. removed
    bug
    on Sep 8, 2025
  5. karljang commented on Sep 8, 2025

    @karljang
    Collaborator

    @kurosakiharachan ,
    It appears the error you encountered is more closely tied to the configuration file embedded within the model checkpoint. I also noticed you've been working with the TensorRT Model Optimizer recently—just checking in to see if this issue is still relevant or if you've already resolved it.

  6. added
    Model optimization
    LLM API
    on Sep 8, 2025
  7. github-actions commented on Sep 23, 2025

    @github-actions

    Issue has not received an update in over 14 days. Adding stale label.

  8. github-actions commented on Oct 8, 2025

    @github-actions

    This issue was closed because it has been 14 days without activity since it has been marked as stale.

  9. TriDefender commented on Jan 5, 2026

    @TriDefender

    Fixed, edit Json, remove entire section of:
    "quantization_config": {
    "config_groups": {
    "group_0": {
    "input_activations": {
    "actorder": null,
    "block_structure": null,
    "dynamic": true,
    "group_size": null,
    "num_bits": 8,
    "observer": null,
    "observer_kwargs": {},
    "strategy": "token",
    "symmetric": true,
    "type": "float"
    },
    "output_activations": null,
    "targets": [
    "Linear"
    ],
    "weights": {
    "actorder": null,
    "block_structure": null,
    "dynamic": false,
    "group_size": null,
    "num_bits": 8,
    "observer": "minmax",
    "observer_kwargs": {},
    "strategy": "channel",
    "symmetric": true,
    "type": "float"
    }
    }
    },
    "format": "float-quantized",
    "global_compression_ratio": null,
    "ignore": [
    "lm_head"
    ],
    "kv_cache_scheme": null,
    "quant_method": "compressed-tensors",
    "quantization_status": "compressed"
    },
    Note: this is a demo piece of code from another model, seems the backend just panics when met with unfamilliar content.

    Or use a official FP8 version instead of personal quants from nvidia's repos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

LLM APIModel optimizationfeature requeststalewaiting for feedback

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions