Skip to content

Commit 148b592

Browse files
authored
Update modeling_base.py (huggingface#2419)
1 parent d6a8f2c commit 148b592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trl/models/modeling_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def create_reference_model(
619619
"""
620620
if is_deepspeed_zero3_enabled():
621621
raise ValueError(
622-
"DeepSpeed ZeRO-3 is enabled and is not compatible with `create_reference_model()`. Please instantiate your reference model directly with `AutoCausalLM.from_pretrained()`."
622+
"DeepSpeed ZeRO-3 is enabled and is not compatible with `create_reference_model()`. Please instantiate your reference model directly with `AutoModelForCausalLM.from_pretrained()`."
623623
)
624624

625625
parameter_names = [n for n, _ in model.named_parameters()]

0 commit comments

Comments
 (0)