s-conia commited on
Commit
f1844a0
1 Parent(s): d4a4f75

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -66,10 +66,10 @@ import transformers as tr
66
 
67
  device = "cuda" if torch.cuda.is_available() else "cpu"
68
 
69
- tokenizer = tr.AutoTokenizer.from_pretrained("sapienzanlp/modello-italia-9b")
70
  model = tr.AutoModelForCausalLM.from_pretrained(
71
- "sapienzanlp/modello-italia-9b",
72
- device_map="auto",
73
  torch_dtype=torch.bfloat16
74
  )
75
 
 
66
 
67
  device = "cuda" if torch.cuda.is_available() else "cpu"
68
 
69
+ tokenizer = tr.AutoTokenizer.from_pretrained("sapienzanlp/modello-italia-9b-bf16")
70
  model = tr.AutoModelForCausalLM.from_pretrained(
71
+ "sapienzanlp/modello-italia-9b-bf16",
72
+ device_map=device,
73
  torch_dtype=torch.bfloat16
74
  )
75