mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
no_split_module_classes not needed
This commit is contained in:
parent
0a0d289537
commit
c515282f5c
@ -178,7 +178,7 @@ def load_model(model_name):
|
||||
|
||||
# DeepSpeed ZeRO-3
|
||||
elif args.deepspeed:
|
||||
model = AutoModelForCausalLM.from_pretrained(Path(f"models/{model_name}", no_split_module_classes=["GPTJBlock"]))
|
||||
model = AutoModelForCausalLM.from_pretrained(Path(f"models/{model_name}"))
|
||||
model = deepspeed.initialize(model=model,
|
||||
config_params=ds_config,
|
||||
model_parameters=None,
|
||||
|
Loading…
Reference in New Issue
Block a user