gregH commited on
Commit
405fccf
1 Parent(s): 61ff6d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ print(HF_TOKEN)
56
 
57
 
58
  m = AutoModelForCausalLM.from_pretrained(
59
- "ibm-granite/granite-guardian-3.0-2b",
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-guardian-3.0-2b",
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"