mkhalifa commited on
Commit
fcf2c6f
·
verified ·
1 Parent(s): 021087f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -60,7 +60,7 @@ The model has been evaluated on mathematical reasoning (MATH, AIME), scientific
60
  from transformers import AutoModelForCausalLM, AutoTokenizer
61
  from vllm import LLM, SamplingParams
62
 
63
- model_id = "launch/ThinkPRM-1.5B" # Replace with actual model ID on Hub
64
  tokenizer = AutoTokenizer.from_pretrained(model_id)
65
  llm = LLM(model=model_id, max_model_len=16384)
66
 
@@ -69,7 +69,7 @@ problem = "Solve for x: 2x + 3 = 7"
69
  prefix = "Step 1: Subtract 3 from both sides: 2x = 4
70
  Step 2: Divide by 2: x = 1"
71
 
72
- # Format the prompt
73
  prompt = f"""You are given a math problem and a proposed step-by-step solution:
74
 
75
  [Math Problem]
 
60
  from transformers import AutoModelForCausalLM, AutoTokenizer
61
  from vllm import LLM, SamplingParams
62
 
63
+ model_id = "launch/ThinkPRM-1.5B"
64
  tokenizer = AutoTokenizer.from_pretrained(model_id)
65
  llm = LLM(model=model_id, max_model_len=16384)
66
 
 
69
  prefix = "Step 1: Subtract 3 from both sides: 2x = 4
70
  Step 2: Divide by 2: x = 1"
71
 
72
+ # Format the prompt -- use this exact format to get the best performance
73
  prompt = f"""You are given a math problem and a proposed step-by-step solution:
74
 
75
  [Math Problem]