You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Issues with loading and finetuning GLM 4.5 models #3284
My guess, the config.json has "num_hidden_layers": 46, and the logs show error with ['model.layers.46.eh_proj.weight', 'model.layers.46.embed_tokens.weight' - this layer is 47th - hence the conflict in resolving I believe
i tried reinstalling and installing unsloth and unsloth zoo but still the same issue is happening for some reason. i am at a complete loss
Since this model is throwing the same error with the transformers library too, it has to be fixed in the source @Ammar-Alnagar
Thank you for investigating. So transformers does not work with the model either? Then unfortunately it won't work in unsloth until it works in transformers :(
Activity
[-][Bug] Please fill in your issue title here.[/-][+][Bug] Issues with loading and finetuning GLM 4.5 models[/+]rjarun8235 commentedon Sep 8, 2025
HI @Ammar-Alnagar ,
The model download fails even with direct download
My guess, the
config.jsonhas"num_hidden_layers": 46,and the logs show error with['model.layers.46.eh_proj.weight', 'model.layers.46.embed_tokens.weight'- this layer is 47th - hence the conflict in resolving I believeAmmar-Alnagar commentedon Sep 9, 2025
I just checked the config.json :
I tried reinstalling and installing unsloth and unsloth zoo but still the same issue is happening for some reason.
I am at a complete loss
rjarun8235 commentedon Sep 10, 2025
Since this model is throwing the same error with the transformers library too, it has to be fixed in the source @Ammar-Alnagar
shimmyshimmer commentedon Sep 18, 2025
Thank you for investigating. So transformers does not work with the model either? Then unfortunately it won't work in unsloth until it works in transformers :(
Ammar-Alnagar commentedon Sep 18, 2025
@shimmyshimmer I have noticed many differences between the config files for the unsloth version and the Z.AI version , could this be the reason ?
I can run the model normally with VLLM .
fix(install.ps1): enforce torch>=2.11.0 for gfx120X and Strix on Windows
Merge origin/main into fix/windows-amd-rocm-install