as-cle-bert commited on
Commit
7f74d90
1 Parent(s): bde06a8

Update load_model.py

Browse files
Files changed (1) hide show
  1. load_model.py +2 -2
load_model.py CHANGED
@@ -1,6 +1,6 @@
1
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2
 
3
- model = AutoModelForCausalLM.from_pretrained("h2oai/h2o-danube2-1.8b-chat")
4
- tokenizer = AutoTokenizer.from_pretrained("h2oai/h2o-danube2-1.8b-chat")
5
 
6
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=1024, repetition_penalty=1.2, temperature=0.4)
 
1
  from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2
 
3
+ model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-2.8b")
4
+ tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b")
5
 
6
  pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, max_new_tokens=1024, repetition_penalty=1.2, temperature=0.4)