mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-05 18:32:14 +08:00
🐞 fix: typo
Former-commit-id: 57a3687ecd23237559aee0e8e811b782846f2415
This commit is contained in:
parent
ff4027e448
commit
fbaa6269d4
@ -284,7 +284,7 @@ def patch_model(
|
||||
if is_trainable:
|
||||
_prepare_model_for_training(model, model_args)
|
||||
|
||||
if getattr(config, "model_type", None) == "mixtral" and is_deepspeed_zero3_enabled():
|
||||
if getattr(model.config, "model_type", None) == "mixtral" and is_deepspeed_zero3_enabled():
|
||||
from deepspeed.utils import set_z3_leaf_modules
|
||||
from transformers.models.mixtral.modeling_mixtral import MixtralSparseMoeBlock
|
||||
set_z3_leaf_modules(model, [MixtralSparseMoeBlock])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user