Skip to content

Commit 822c5a6

Browse files
committed
remove register fn
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
1 parent 215b95c commit 822c5a6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

examples/multimodal_vision/llama4_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# NOTE: This restructuring is specifically required for vLLM compatibility.
2020
# To define custom calibration logic, create a new calibration module in
2121
# modeling/llama4.py that inherits from `MoECalibrationModule`, and register
22-
# it using the `@register_moe_calibration` decorator with the appropriate
22+
# it using the `@MoECalibrationModule.register` decorator with the appropriate
2323
# module class name (e.g., "Llama4TextMoe").
2424

2525
DATASET_ID = "neuralmagic/calibration"

src/llmcompressor/modeling/qwen3_next_moe.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616

1717
import torch
1818

19-
from llmcompressor.modeling.moe_context import (
20-
MoECalibrationModule,
21-
register_moe_calibration,
22-
)
19+
from llmcompressor.modeling.moe_context import MoECalibrationModule
2320

2421

25-
@register_moe_calibration("Qwen3NextSparseMoeBlock")
22+
@MoECalibrationModule.register("Qwen3NextSparseMoeBlock")
2623
class CalibrationQwen3NextSparseMoeBlock(MoECalibrationModule):
2724
from transformers import Qwen3NextConfig
2825
from transformers.models.qwen3_next.modeling_qwen3_next import (

0 commit comments

Comments
 (0)