Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -7,10 +7,11 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
7 |
# Load model directly
|
8 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
|
|
|
|
|
14 |
def respond(
|
15 |
message,
|
16 |
max_new_tokens=4000,
|
|
|
7 |
# Load model directly
|
8 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
9 |
|
10 |
+
model_id = "MaziyarPanahi/Mistral-7B-Instruct-Aya-101-GGUF"
|
11 |
+
filename = "Mistral-7B-Instruct-Aya-101.Q8_0.gguf"
|
|
|
12 |
|
13 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id, gguf_file=filename)
|
14 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, gguf_file=filename)
|
15 |
def respond(
|
16 |
message,
|
17 |
max_new_tokens=4000,
|