Spaces:
Runtime error
Runtime error
File size: 294 Bytes
9973cf5 57a8496 9973cf5 |
1 2 3 4 5 6 7 8 9 10 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "microsoft/phi-2" # ΠΈΠ»ΠΈ Π΄ΡΡΠ³ΡΡ ΠΌΠ°Π»Π΅Π½ΡΠΊΡΡ
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype="auto",
)
|