Update README.md
Browse files
README.md
CHANGED
|
@@ -62,8 +62,8 @@ model = PeftModel.from_pretrained(base_model, "PanzerBread/promptcot-p")
|
|
| 62 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
|
| 63 |
|
| 64 |
concepts = "algebra | quadratic equations"
|
| 65 |
-
|
| 66 |
-
prompt = f"Concepts: {concepts}\nRationale:
|
| 67 |
|
| 68 |
inputs = tokenizer(prompt, return_tensors="pt")
|
| 69 |
outputs = model.generate(**inputs, max_new_tokens=256)
|
|
|
|
| 62 |
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
|
| 63 |
|
| 64 |
concepts = "algebra | quadratic equations"
|
| 65 |
+
# It will think about the concepts, and then generate a problem after "Problem: "
|
| 66 |
+
prompt = f"Concepts: {concepts}\nRationale:"
|
| 67 |
|
| 68 |
inputs = tokenizer(prompt, return_tensors="pt")
|
| 69 |
outputs = model.generate(**inputs, max_new_tokens=256)
|