Spaces:
Sleeping
Sleeping
Yurii Paniv
commited on
Commit
·
46852ae
1
Parent(s):
08127ab
Full precision
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 |
-
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)
|
|
|
15 |
bnb_4bit_use_double_quant=False,
|
16 |
)
|
17 |
|
18 |
+
model = MistralForCausalLM.from_pretrained("mistralai/Mistral-7B-v0.1", torch_dtype=float16).to("cuda")
|
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)
|