ashioyajotham commited on
Commit
2468d56
·
1 Parent(s): 20fd975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,6 +1,6 @@
1
- !pip install -q -U trl transformers accelerate git+https://github.com/huggingface/peft.git
2
 
3
- !pip install -q datasets bitsandbytes einops wandb
4
 
5
 
6
  from datasets import load_dataset
@@ -163,7 +163,7 @@ print(completion)
163
 
164
  from transformers import AutoModelForCausalLM, AutoTokenizer
165
 
166
- checkpoint_name="ArmelR/starcoder-gradio-v0"
167
  model = AutoModelForCausalLM.from_pretrained(checkpoint_name)
168
  tokenizer = AutoTokenizer.from_pretrained(checkpoint_name)
169
 
 
1
+ pip install -q -U trl transformers accelerate git+https://github.com/huggingface/peft.git
2
 
3
+ pip install -q datasets bitsandbytes einops wandb
4
 
5
 
6
  from datasets import load_dataset
 
163
 
164
  from transformers import AutoModelForCausalLM, AutoTokenizer
165
 
166
+ checkpoint_name= model
167
  model = AutoModelForCausalLM.from_pretrained(checkpoint_name)
168
  tokenizer = AutoTokenizer.from_pretrained(checkpoint_name)
169