Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ MAX_INPUT_LIMIT = 3584
|
|
9 |
MAX_NEW_TOKENS = 1536
|
10 |
MODEL_NAME = "Azure99/blossom-v5.1-9b"
|
11 |
|
12 |
-
model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, torch_dtype=torch.
|
13 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
14 |
|
15 |
|
|
|
9 |
MAX_NEW_TOKENS = 1536
|
10 |
MODEL_NAME = "Azure99/blossom-v5.1-9b"
|
11 |
|
12 |
+
model = AutoModelForCausalLM.from_pretrained(MODEL_NAME, torch_dtype=torch.bfloat16, device_map="auto")
|
13 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
14 |
|
15 |
|