Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ checkpoint = "rasyosef/Phi-1_5-Instruct-v0.1"
|
|
9 |
|
10 |
# Download and load model and tokenizer
|
11 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
12 |
-
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype=torch.float32, device_map="
|
13 |
|
14 |
# Text generation pipeline
|
15 |
phi1_5 = pipeline(
|
|
|
9 |
|
10 |
# Download and load model and tokenizer
|
11 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
12 |
+
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype=torch.float32, device_map="cpu")
|
13 |
|
14 |
# Text generation pipeline
|
15 |
phi1_5 = pipeline(
|