Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
13 |
# tokenizer = AutoTokenizer.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-smol")
|
14 |
# model = AutoModelForCausalLM.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-smol", torch_dtype=torch.float16)
|
15 |
tokenizer = AutoTokenizer.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-fix_digit", revision="step500")
|
16 |
-
model = AutoModelForCausalLM.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-fix_digit", revision="step500" torch_dtype=torch.float16)
|
17 |
|
18 |
model = model.to('cuda:0')
|
19 |
|
|
|
13 |
# tokenizer = AutoTokenizer.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-smol")
|
14 |
# model = AutoModelForCausalLM.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-smol", torch_dtype=torch.float16)
|
15 |
tokenizer = AutoTokenizer.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-fix_digit", revision="step500")
|
16 |
+
model = AutoModelForCausalLM.from_pretrained("sapienzanlp/Minerva-7B-base-v1.0-step500000-instruct-fix_digit", revision="step500", torch_dtype=torch.float16)
|
17 |
|
18 |
model = model.to('cuda:0')
|
19 |
|