zehaoj commited on
Commit
2d9bd99
·
verified ·
1 Parent(s): 9877397

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -3,7 +3,12 @@ from fastapi import FastAPI, Form
3
  from pydantic import BaseModel
4
 
5
  #Model loading
6
- llm = AutoModelForCausalLM.from_pretrained("TheBloke/Toppy-M-7B-GGUF", model_file="toppy-m-7b.Q5_K_S.gguf", model_type="mistral", gpu_layers=50)
 
 
 
 
 
7
 
8
 
9
  #Pydantic object
 
3
  from pydantic import BaseModel
4
 
5
  #Model loading
6
+ llm = AutoModelForCausalLM.from_pretrained("TheBloke/Toppy-M-7B-GGUF",
7
+ model_file="toppy-m-7b.Q5_K_S.gguf",
8
+ model_type="mistral",
9
+ context_length=4096,
10
+ temperature=0.2,
11
+ gpu_layers=50)
12
 
13
 
14
  #Pydantic object