tie weights
Browse files- modular_isaac.py +3 -0
modular_isaac.py
CHANGED
|
@@ -1196,6 +1196,8 @@ class IsaacRotaryEmbedding(nn.Module):
|
|
| 1196 |
|
| 1197 |
|
| 1198 |
class IsaacModel(Qwen3Model):
|
|
|
|
|
|
|
| 1199 |
def __init__(self, config: IsaacConfig):
|
| 1200 |
super().__init__(config)
|
| 1201 |
text_cfg = getattr(config, "get_text_config", lambda: config)()
|
|
@@ -1379,6 +1381,7 @@ class IsaacForConditionalGeneration(Qwen3ForCausalLM, GenerationMixin):
|
|
| 1379 |
"""Isaac multimodal model for conditional generation."""
|
| 1380 |
|
| 1381 |
config_class = IsaacConfig
|
|
|
|
| 1382 |
|
| 1383 |
def __init__(self, config: IsaacConfig):
|
| 1384 |
Qwen3PreTrainedModel.__init__(self, config)
|
|
|
|
| 1196 |
|
| 1197 |
|
| 1198 |
class IsaacModel(Qwen3Model):
|
| 1199 |
+
_tied_weights_keys = {}
|
| 1200 |
+
|
| 1201 |
def __init__(self, config: IsaacConfig):
|
| 1202 |
super().__init__(config)
|
| 1203 |
text_cfg = getattr(config, "get_text_config", lambda: config)()
|
|
|
|
| 1381 |
"""Isaac multimodal model for conditional generation."""
|
| 1382 |
|
| 1383 |
config_class = IsaacConfig
|
| 1384 |
+
_tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"}
|
| 1385 |
|
| 1386 |
def __init__(self, config: IsaacConfig):
|
| 1387 |
Qwen3PreTrainedModel.__init__(self, config)
|