ligaments-dev commited on
Commit
938e32b
·
verified ·
1 Parent(s): 3686614

Fix alternating roles and use dtype instead of torch_dtype

Browse files
Files changed (1) hide show
  1. train.py +1 -1
train.py CHANGED
@@ -84,7 +84,7 @@ if tokenizer.pad_token is None:
84
  print("Loading model...")
85
  model = AutoModelForCausalLM.from_pretrained(
86
  MODEL_ID,
87
- torch_dtype=torch.bfloat16,
88
  device_map="auto",
89
  )
90
 
 
84
  print("Loading model...")
85
  model = AutoModelForCausalLM.from_pretrained(
86
  MODEL_ID,
87
+ dtype=torch.bfloat16,
88
  device_map="auto",
89
  )
90