Spaces:
Runtime error
Runtime error
Commit
·
2468d56
1
Parent(s):
20fd975
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
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=
|
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 |
|