Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from transformers import (
|
|
15 |
StoppingCriteriaList
|
16 |
)
|
17 |
|
18 |
-
MODEL_ID = "
|
19 |
|
20 |
DEFAULT_SYSTEM_PROMPT = """
|
21 |
Think step by step and explain your reasoning clearly. Break down the problem into logical components, verify each step, and ensure consistency before arriving at the final answer."
|
@@ -55,7 +55,7 @@ def initialize_model():
|
|
55 |
model = AutoModelForCausalLM.from_pretrained(
|
56 |
MODEL_ID,
|
57 |
device_map="cuda",
|
58 |
-
|
59 |
torch_dtype=torch.bfloat16,
|
60 |
trust_remote_code=True,
|
61 |
attn_implementation="flash_attention_2"
|
|
|
15 |
StoppingCriteriaList
|
16 |
)
|
17 |
|
18 |
+
MODEL_ID = "featherless-ai/Qwerky-72B"
|
19 |
|
20 |
DEFAULT_SYSTEM_PROMPT = """
|
21 |
Think step by step and explain your reasoning clearly. Break down the problem into logical components, verify each step, and ensure consistency before arriving at the final answer."
|
|
|
55 |
model = AutoModelForCausalLM.from_pretrained(
|
56 |
MODEL_ID,
|
57 |
device_map="cuda",
|
58 |
+
quantization_config=quantization_config,
|
59 |
torch_dtype=torch.bfloat16,
|
60 |
trust_remote_code=True,
|
61 |
attn_implementation="flash_attention_2"
|