Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
10 |
-
model_id = "mistralai/Mistral-7B-v0.1
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
13 |
|
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
10 |
+
model_id = "mistralai/Mistral-7B-v0.1"
|
11 |
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
12 |
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
13 |
|