Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions vllm/model_executor/models/granitemoehybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
maybe_prefix,
)


class GraniteMoeHybridMambaDecoderLayer(nn.Module):
def __init__(
self,
Expand Down Expand Up @@ -81,7 +80,7 @@ def __init__(
model_config=model_config,
cache_config=cache_config,
quant_config=quant_config,
prefix=f"{prefix}.mixer",
prefix=f"{prefix}.mamba",
)

self.block_sparse_moe = None
Expand Down Expand Up @@ -570,6 +569,7 @@ def _load_quant_expert(name, loaded_weight):
shard_id="w2",
expert_id=e,
)

elif n.endswith(".block_sparse_moe.router.layer.weight"):
gate_name = n.replace(
".block_sparse_moe.router.layer.weight",
Expand Down
Loading