Spaces:
Runtime error
Runtime error
mrfakename
commited on
Commit
•
f7a5b40
1
Parent(s):
96d55b7
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
|
69 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=False, torch_dtype=torch.float16).to(device) #remove .to() if load_in_4/8bit = True
|
70 |
|
71 |
sys_message = "You are an AI assistant named Phine developed by FreeCS.org. You are polite and smart." #System Message
|
72 |
-
@spaces.GPU
|
73 |
def phine(message, history, temperature, top_p, top_k, repetition_penalty):
|
74 |
|
75 |
|
|
|
69 |
model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=False, torch_dtype=torch.float16).to(device) #remove .to() if load_in_4/8bit = True
|
70 |
|
71 |
sys_message = "You are an AI assistant named Phine developed by FreeCS.org. You are polite and smart." #System Message
|
72 |
+
@spaces.GPU(enable_queue=True)
|
73 |
def phine(message, history, temperature, top_p, top_k, repetition_penalty):
|
74 |
|
75 |
|