Spaces:
Sleeping
Sleeping
Yurii Paniv
commited on
Commit
·
c2f5fd0
1
Parent(s):
50ca940
Use quantization
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ quant_config = BitsAndBytesConfig(
|
|
15 |
bnb_4bit_use_double_quant=False,
|
16 |
)
|
17 |
|
18 |
-
model = MistralForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1",
|
19 |
-
|
20 |
#device_map="auto",)
|
21 |
model = PeftModel.from_pretrained(model, "lang-uk/dragoman").to("cuda")
|
22 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", use_fast=False, add_bos_token=False)
|
|
|
15 |
bnb_4bit_use_double_quant=False,
|
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").to("cuda")
|
22 |
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-v0.1", use_fast=False, add_bos_token=False)
|