Spaces:
Running
Running
Use ctransformers qwen model
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ print("Loading model...")
|
|
| 8 |
llm = AutoModelForCausalLM.from_pretrained(
|
| 9 |
MODEL_REPO,
|
| 10 |
model_file=MODEL_FILE,
|
| 11 |
-
model_type="
|
| 12 |
gpu_layers=0,
|
| 13 |
-
context_length=
|
| 14 |
)
|
| 15 |
|
| 16 |
def respond(message: str, history: list[list[str]]) -> str:
|
|
|
|
| 8 |
llm = AutoModelForCausalLM.from_pretrained(
|
| 9 |
MODEL_REPO,
|
| 10 |
model_file=MODEL_FILE,
|
| 11 |
+
model_type="qwen",
|
| 12 |
gpu_layers=0,
|
| 13 |
+
context_length=2048,
|
| 14 |
)
|
| 15 |
|
| 16 |
def respond(message: str, history: list[list[str]]) -> str:
|