Skip to content

[Bug] Qwen3.6 FP8 checkpoint: 71 weight_scale_inv tensors dropped on load → garbage base model #6200

Closed

Description

@eemlnv

Bug Description

When loading Qwen3.6 FP8 checkpoint via FastLanguageModel.from_pretrained
with load_in_fp8=True, Unsloth silently drops 71 weight_scale_inv tensors
for mlp.gate_proj layers. As a result, FP8 weights are used WITHOUT
dequantization, producing a garbage base model with huge perplexity (around 2 million).

Environment

  • Library: unsloth
  • Model: Qwen/Qwen3.6-27B-FP8

Reproduction

from unsloth import FastLanguageModel

model, _ = FastLanguageModel.from_pretrained(
    model_name="Qwen/Qwen3.6-27B-FP8",
    max_seq_length=4096,
    load_in_fp8=True,
    load_in_4bit=False,
    load_in_8bit=False,
)

Run LOG:

  model state_dict tensors:     1520
  UNEXPECTED (disk, not model):   86
  MISSING (model, not disk):       0
  UNEXPECTED *_scale_inv:         71
    DROPPED SCALE: model.language_model.layers.0.mlp.gate_proj.weight_scale_inv
    DROPPED SCALE: model.language_model.layers.1.mlp.gate_proj.weight_scale_inv
    ... and 61 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions