Spaces:
Sleeping
Sleeping
Load model directly from huggingface
Browse files
main.py
CHANGED
|
@@ -9,9 +9,10 @@ from typing import List, Dict
|
|
| 9 |
from fastapi.middleware.cors import CORSMiddleware
|
| 10 |
|
| 11 |
#Model loading
|
| 12 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
#Fast API
|
|
|
|
| 9 |
from fastapi.middleware.cors import CORSMiddleware
|
| 10 |
|
| 11 |
#Model loading
|
| 12 |
+
model = AutoModelForCausalLM.from_pretrained("TheBloke/Vigostral-7B-Chat-GGUF",
|
| 13 |
+
model_file="vigostral-7b-chat.Q4_K_M.gguf",
|
| 14 |
+
model_type="mistral",
|
| 15 |
+
threads = 3
|
| 16 |
)
|
| 17 |
|
| 18 |
#Fast API
|