ilhooq commited on
Commit
0b27b0c
1 Parent(s): 97cbc1c

Load model directly from huggingface

Browse files
Files changed (1) hide show
  1. main.py +4 -3
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("vigostral-7b-chat.Q6_K.gguf",
13
- model_type='llama',
14
- threads = 3,
 
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