Mike0307 commited on
Commit
cd25aff
1 Parent(s): 735cb24

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -36,7 +36,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
36
  model_id = "Mike0307/Phi-3-mini-4k-instruct-chinese-lora"
37
  model = AutoModelForCausalLM.from_pretrained(
38
  model_id,
39
- device_map="mps", # FIX mps if not MacOS
40
  torch_dtype=torch.float32,
41
  trust_remote_code=True,
42
  )
 
36
  model_id = "Mike0307/Phi-3-mini-4k-instruct-chinese-lora"
37
  model = AutoModelForCausalLM.from_pretrained(
38
  model_id,
39
+ device_map="mps", # Change mps if not MacOS
40
  torch_dtype=torch.float32,
41
  trust_remote_code=True,
42
  )