Skip to content

[Bug] Not able to load weights for qwen3-next-coder fp8 weight #21638

@Fridge003

Description

@Fridge003

Checklist

  • I searched related issues but found no solution.
  • The bug persists in the latest version.
  • Issues without environment info and a minimal reproducible demo are hard to resolve and may receive no feedback.
  • If this is not a bug report but a general question, please start a discussion at https://github.com/sgl-project/sglang/discussions. Otherwise, it will be closed.
  • Please use English. Otherwise, it will be closed.

Describe the bug

Happens when loading

File "/sgl-workspace/sglang/python/sglang/srt/models/qwen3_next.py", line 138, in __init__
    self.in_proj_qkvz.weight.weight_loader = self._make_packed_weight_loader(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: property 'weight_loader' of 'ModelWeightParameter' object has no setter

Ref: #21313

Reproduction

python3 -m sglang.launch_server --model Qwen/Qwen3-Coder-Next-FP8 --tensor-parallel-size 2 --host 0.0.0.0 --port 8000 --served-model-name qwen3-coder-next --enable-metrics --tool-call-parser qwen3_coder --mem-fraction-static 0.87 --sleep-on-idle --moe-runner-backend triton --log-requests --log-requests-level 0 --log-requests-format text --max-prefill-tokens 131072 --chunked-prefill-size 32768

Environment

Latest main branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions