[Bug] Fix AttributeError: 'ColumnParallelLinear' object has no attribute weight_scale_inv#30823
Merged
[Bug] Fix AttributeError: 'ColumnParallelLinear' object has no attribute weight_scale_inv#30823
weight_scale_inv#30823Conversation
…eight_scale_inv'. Did you mean: 'weight_scale' Signed-off-by: yewentao256 <zhyanwentao@126.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Contributor
There was a problem hiding this comment.
Code Review
This pull request effectively resolves an AttributeError that occurs during the loading of certain FP8 models. The issue stemmed from hardcoding the weight_scale_inv attribute, which is not always present. The fix introduces a dynamic check for weight_scale_inv and falls back to weight_scale if the former is not found. This approach is robust and correctly handles different naming conventions for weight scales. The change is well-implemented and directly addresses the bug. I approve this pull request.
mgoin
approved these changes
Dec 17, 2025
NickLucche
pushed a commit
to NickLucche/vllm
that referenced
this pull request
Dec 17, 2025
…ute `weight_scale_inv` (vllm-project#30823) Signed-off-by: yewentao256 <zhyanwentao@126.com>
Majid-Taheri
pushed a commit
to Majid-Taheri/vllm
that referenced
this pull request
Dec 23, 2025
…ute `weight_scale_inv` (vllm-project#30823) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: Ubuntu <mjtaheri68@gmail.com>
dsuhinin
pushed a commit
to dsuhinin/vllm
that referenced
this pull request
Jan 21, 2026
…ute `weight_scale_inv` (vllm-project#30823) Signed-off-by: yewentao256 <zhyanwentao@126.com> Signed-off-by: dsuhinin <suhinin.dmitriy@gmail.com>
npanpaliya
pushed a commit
to odh-on-pz/vllm-cpu
that referenced
this pull request
Feb 16, 2026
…ute `weight_scale_inv` (vllm-project/vllm#30823) Signed-off-by: yewentao256 <zhyanwentao@126.com>
npanpaliya
pushed a commit
to odh-on-pz/vllm-cpu
that referenced
this pull request
Feb 16, 2026
- [Misc] Implement `TokenizerLike.convert_tokens_to_ids` (vllm-project/vllm#31796) [INFERENG-4151](https://issues.redhat.com/browse/INFERENG-4151) - [Bug] Revert torch warning fix (vllm-project/vllm#31585) [INFERENG-4152](https://issues.redhat.com/browse/INFERENG-4152) - [Bug] Fix AttributeError: `ColumnParallelLinear` object has no attribute `weight_scale_inv` (vllm-project/vllm#30823) [INFERENG-4153](https://issues.redhat.com/browse/INFERENG-4153) - Avoid `opencv-python-headless==4.13.0.90`, it's broken. See opencv/opencv-python#1183 - [Bugfix] Handle mistral tokenizer in get_hf_processor (vllm-project/vllm#31817) [INFERENG-4151](https://issues.redhat.com/browse/INFERENG-4151) - [Bugfix] Fix Whisper/encoder-decoder GPU memory leak vllm-project/vllm#32789 - [Model] Handle `trust_remote_code` for transformers backend (vllm-project/vllm#32194) (fixes GHSA-2pc9-4j83-qjmr) - [Bugfix] CUDA: fix segfault by bumping numba to `numba==0.63.1` ([AIPCC-9384](https://issues.redhat.com/browse/AIPCC-9384)) - [Bugfix] pin `mistral_common==1.8.5` to avoid crash with Voxtral ([INFERENG-4154](https://issues.redhat.com/browse/INFERENG-4154)) - [Bugfix] fix tokenizer loading for mistral models (vllm-project/vllm#33175) [INFERENG-4151](https://issues.redhat.com/browse/INFERENG-4151)
ItzDEXX
pushed a commit
to ItzDEXX/vllm
that referenced
this pull request
Feb 19, 2026
…ute `weight_scale_inv` (vllm-project#30823) Signed-off-by: yewentao256 <zhyanwentao@126.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Fix AttributeError: 'ColumnParallelLinear' object has no attribute
weight_scale_invexport MODEL="RedHatAI/Kimi-K2-Thinking-FP8-Block"vllm serve $MODEL -tp 8 --port 9256 --enable-expert-parallel --enforce_eager --trust_remote_code --gpu_memory_utilization 0.94 --max_model_len 4096Now it can run succesfully