Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,9 @@ def run_model(report):
|
|
36 |
"Krooz/placement-classification-mistral-7b-instruct-v1",
|
37 |
low_cpu_mem_usage=True,
|
38 |
torch_dtype=torch.float16,
|
39 |
-
load_in_4bit=True
|
40 |
-
cache_dir = "~/.cache/huggingface/models"
|
41 |
)
|
42 |
-
tokenizer = AutoTokenizer.from_pretrained("Krooz/placement-classification-mistral-7b-instruct-v1"
|
43 |
input_ids = tokenizer(prompt, return_tensors="pt", truncation=True).input_ids.cpu()
|
44 |
|
45 |
# inference
|
|
|
36 |
"Krooz/placement-classification-mistral-7b-instruct-v1",
|
37 |
low_cpu_mem_usage=True,
|
38 |
torch_dtype=torch.float16,
|
39 |
+
load_in_4bit=True
|
|
|
40 |
)
|
41 |
+
tokenizer = AutoTokenizer.from_pretrained("Krooz/placement-classification-mistral-7b-instruct-v1")
|
42 |
input_ids = tokenizer(prompt, return_tensors="pt", truncation=True).input_ids.cpu()
|
43 |
|
44 |
# inference
|