Instructions to use UW-Madison-Lee-Lab/VersaPRM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use UW-Madison-Lee-Lab/VersaPRM with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("UW-Madison-Lee-Lab/Llama-PRM800K") model = PeftModel.from_pretrained(base_model, "UW-Madison-Lee-Lab/VersaPRM") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ solution = ["To convert a string to an integer in Python 3, we use the built-in
|
|
| 41 |
"Looking at the options, we can see that the correct function is option E: int(x [,base]).",
|
| 42 |
"The answer is (E)."]
|
| 43 |
input_text = question + ' \n\n' + ' \n\n\n\n'.join(solution) + ' \n\n\n\n' # solution steps are separated by ' \n\n\n\n'
|
| 44 |
-
input_id = torch.tensor([
|
| 45 |
|
| 46 |
with torch.no_grad():
|
| 47 |
logits = model(input_id).logits[:,:,candidate_tokens]
|
|
|
|
| 41 |
"Looking at the options, we can see that the correct function is option E: int(x [,base]).",
|
| 42 |
"The answer is (E)."]
|
| 43 |
input_text = question + ' \n\n' + ' \n\n\n\n'.join(solution) + ' \n\n\n\n' # solution steps are separated by ' \n\n\n\n'
|
| 44 |
+
input_id = torch.tensor([tokenizer.encode(input_text)]).to(device)
|
| 45 |
|
| 46 |
with torch.no_grad():
|
| 47 |
logits = model(input_id).logits[:,:,candidate_tokens]
|