Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ print(HF_TOKEN)
|
|
56 |
|
57 |
|
58 |
m = AutoModelForCausalLM.from_pretrained(
|
59 |
-
"ibm-granite/granite-
|
60 |
torch_dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float32,
|
61 |
trust_remote_code=True,token=HF_TOKEN
|
62 |
)
|
@@ -64,7 +64,7 @@ m = AutoModelForCausalLM.from_pretrained(
|
|
64 |
embedding_func=m.get_input_embeddings()
|
65 |
embedding_func.weight.requires_grad=False
|
66 |
|
67 |
-
tok = AutoTokenizer.from_pretrained("ibm-granite/granite-
|
68 |
trust_remote_code=True,token=HF_TOKEN
|
69 |
)
|
70 |
tok.padding_side = "left"
|
|
|
56 |
|
57 |
|
58 |
m = AutoModelForCausalLM.from_pretrained(
|
59 |
+
"ibm-granite/granite-3.0-2b-instruct",
|
60 |
torch_dtype=torch.bfloat16 if torch.cuda.is_available() else torch.float32,
|
61 |
trust_remote_code=True,token=HF_TOKEN
|
62 |
)
|
|
|
64 |
embedding_func=m.get_input_embeddings()
|
65 |
embedding_func.weight.requires_grad=False
|
66 |
|
67 |
+
tok = AutoTokenizer.from_pretrained("ibm-granite/granite-3.0-2b-instruct",
|
68 |
trust_remote_code=True,token=HF_TOKEN
|
69 |
)
|
70 |
tok.padding_side = "left"
|