Spaces:
Running
on
Zero
Running
on
Zero
Yurii Paniv
commited on
Commit
·
6e047fb
1
Parent(s):
6f8eeb0
Use cuda
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ quant_config = BitsAndBytesConfig(
|
|
16 |
)
|
17 |
|
18 |
model = MistralForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1",
|
19 |
-
quantization_config=quant_config,
|
20 |
-
device_map="auto",)
|
21 |
model = PeftModel.from_pretrained(model, "lang-uk/dragoman")
|
22 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", use_fast=False, add_bos_token=False)
|
23 |
|
|
|
16 |
)
|
17 |
|
18 |
model = MistralForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1",
|
19 |
+
quantization_config=quant_config,).to("cuda")
|
20 |
+
#device_map="auto",)
|
21 |
model = PeftModel.from_pretrained(model, "lang-uk/dragoman")
|
22 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", use_fast=False, add_bos_token=False)
|
23 |
|