Spaces:
Sleeping
Sleeping
shionhonda
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ submit = st.button("Submit")
|
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
11 |
model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
12 |
-
model = PeftModel.from_pretrained(model, "shionhonda/tiny-llama-reviewer2-1.1B-
|
13 |
|
14 |
prompt = tokenizer.apply_chat_template([
|
15 |
{"role": "system", "content": "You are an experienced researcher and a reviewer of scientific papers. Given a title of the paper, write a review about it in one sentence."},
|
|
|
9 |
|
10 |
tokenizer = AutoTokenizer.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
11 |
model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
|
12 |
+
model = PeftModel.from_pretrained(model, "shionhonda/tiny-llama-reviewer2-1.1B-kto-lora")
|
13 |
|
14 |
prompt = tokenizer.apply_chat_template([
|
15 |
{"role": "system", "content": "You are an experienced researcher and a reviewer of scientific papers. Given a title of the paper, write a review about it in one sentence."},
|