huggingface.co
Total runs: 22
24-hour runs: 0
7-day runs: -1
30-day runs: 4
Model's Last Updated: April 15 2025

Introduction of ActPRM

Model Details of ActPRM

ActPRM

Links
Introduction

We release our process reward model effectively trained with active learning based on Qwen/Qwen2.5-Math-7B-Instruct .

Usage

We provide a code snippet to show the usage of our PRM.

# modified from https://huggingface.co/Qwen/Qwen2.5-Math-PRM-7B/blob/main/README.md
from transformers import AutoModel, AutoTokenizer


def make_step_rewards(logits, token_masks):
    res = []
    for j in range(outputs.logits.size(1)):
        logits = outputs.logits[:, j, token_masks[j]]
        logits = logits.mean(dim=0)
        res.append(logits.tolist())
    return res


model_name = "sail/ActPRM"
device = "auto"

tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = (
    AutoModel.from_pretrained(
        model_name,
        torch_dtype="auto",
        trust_remote_code=True,
    )
    .eval()
    .to("cuda")
)


data = {
    "system": "Please reason step by step, and put your final answer within \\boxed{}.",
    "query": "Sue lives in a fun neighborhood.  One weekend, the neighbors decided to play a prank on Sue.  On Friday morning, the neighbors placed 18 pink plastic flamingos out on Sue's front yard.  On Saturday morning, the neighbors took back one third of the flamingos, painted them white, and put these newly painted white flamingos back out on Sue's front yard.  Then, on Sunday morning, they added another 18 pink plastic flamingos to the collection. At noon on Sunday, how many more pink plastic flamingos were out than white plastic flamingos?",
    "response": [
        "To find out how many more pink plastic flamingos were out than white plastic flamingos at noon on Sunday, we can break down the problem into steps. First, on Friday, the neighbors start with 18 pink plastic flamingos.",
        "On Saturday, they take back one third of the flamingos. Since there were 18 flamingos, (1/3 \\times 18 = 6) flamingos are taken back. So, they have (18 - 6 = 12) flamingos left in their possession. Then, they paint these 6 flamingos white and put them back out on Sue's front yard. Now, Sue has the original 12 pink flamingos plus the 6 new white ones. Thus, by the end of Saturday, Sue has (12 + 6 = 18) pink flamingos and 6 white flamingos.",
        "On Sunday, the neighbors add another 18 pink plastic flamingos to Sue's front yard. By the end of Sunday morning, Sue has (18 + 18 = 36) pink flamingos and still 6 white flamingos.",
        "To find the difference, subtract the number of white flamingos from the number of pink flamingos: (36 - 6 = 30). Therefore, at noon on Sunday, there were 30 more pink plastic flamingos out than white plastic flamingos. The answer is (\\boxed{30}).",
    ],
}

messages = [
    {"role": "system", "content": data["system"]},
    {"role": "user", "content": data["query"]},
    {"role": "assistant", "content": "<extra_0>".join(data["response"]) + "<extra_0>"},
]
conversation_str = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=False)

input_ids = tokenizer.encode(
    conversation_str,
    return_tensors="pt",
).to(model.device)

outputs = model.inference(input_ids=input_ids)

step_sep_id = tokenizer.encode("<extra_0>")[0]
token_masks = input_ids == step_sep_id
step_reward = make_step_rewards(outputs[0], token_masks)
print(step_reward)  # [[0.9993686676025391, 0.2316841036081314, 0.7311716079711914, 0.8314468264579773]]

Runs of sail ActPRM on huggingface.co

22
Total runs
0
24-hour runs
1
3-day runs
-1
7-day runs
4
30-day runs

More Information About ActPRM huggingface.co Model

ActPRM huggingface.co

ActPRM huggingface.co is an AI model on huggingface.co that provides ActPRM's model effect (), which can be used instantly with this sail ActPRM model. huggingface.co supports a free trial of the ActPRM model, and also provides paid use of the ActPRM. Support call ActPRM model through api, including Node.js, Python, http.

ActPRM huggingface.co Url

https://huggingface.co/sail/ActPRM

sail ActPRM online free

ActPRM huggingface.co is an online trial and call api platform, which integrates ActPRM's modeling effects, including api services, and provides a free online trial of ActPRM, you can try ActPRM online for free by clicking the link below.

sail ActPRM online free url in huggingface.co:

https://huggingface.co/sail/ActPRM

ActPRM install

ActPRM is an open source model from GitHub that offers a free installation service, and any user can find ActPRM on GitHub to install. At the same time, huggingface.co provides the effect of ActPRM install, users can directly use ActPRM installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ActPRM install url in huggingface.co:

https://huggingface.co/sail/ActPRM

Url of ActPRM

ActPRM huggingface.co Url

Provider of ActPRM huggingface.co

sail
ORGANIZATIONS

Other API from sail

huggingface.co

Total runs: 646
Run Growth: -16
Growth Rate: -2.48%
Updated:September 19 2023
huggingface.co

Total runs: 276
Run Growth: 117
Growth Rate: 42.39%
Updated:February 20 2025
huggingface.co

Total runs: 264
Run Growth: 117
Growth Rate: 44.32%
Updated:December 21 2024
huggingface.co

Total runs: 156
Run Growth: 68
Growth Rate: 43.59%
Updated:February 20 2025
huggingface.co

Total runs: 78
Run Growth: 4
Growth Rate: 5.13%
Updated:December 21 2024
huggingface.co

Total runs: 68
Run Growth: 30
Growth Rate: 44.12%
Updated:December 21 2024
huggingface.co

Total runs: 66
Run Growth: 40
Growth Rate: 60.61%
Updated:February 20 2025
huggingface.co

Total runs: 64
Run Growth: -48
Growth Rate: -75.00%
Updated:December 21 2024
huggingface.co

Total runs: 57
Run Growth: 44
Growth Rate: 77.19%
Updated:April 08 2022
huggingface.co

Total runs: 54
Run Growth: -235
Growth Rate: -435.19%
Updated:December 21 2024
huggingface.co

Total runs: 49
Run Growth: 43
Growth Rate: 87.76%
Updated:April 08 2022
huggingface.co

Total runs: 48
Run Growth: -22
Growth Rate: -45.83%
Updated:December 21 2024
huggingface.co

Total runs: 41
Run Growth: -43
Growth Rate: -104.88%
Updated:December 21 2024
huggingface.co

Total runs: 37
Run Growth: 24
Growth Rate: 64.86%
Updated:February 20 2025
huggingface.co

Total runs: 33
Run Growth: -47
Growth Rate: -142.42%
Updated:April 29 2025
huggingface.co

Total runs: 29
Run Growth: 7
Growth Rate: 24.14%
Updated:April 15 2025
huggingface.co

Total runs: 28
Run Growth: 14
Growth Rate: 50.00%
Updated:February 20 2025
huggingface.co

Total runs: 21
Run Growth: -10
Growth Rate: -47.62%
Updated:February 20 2025
huggingface.co

Total runs: 19
Run Growth: 15
Growth Rate: 78.95%
Updated:February 20 2025
huggingface.co

Total runs: 17
Run Growth: 10
Growth Rate: 58.82%
Updated:February 20 2025
huggingface.co

Total runs: 16
Run Growth: -926
Growth Rate: -5787.50%
Updated:December 21 2024
huggingface.co

Total runs: 16
Run Growth: 1
Growth Rate: 6.25%
Updated:February 20 2025
huggingface.co

Total runs: 10
Run Growth: 1
Growth Rate: 10.00%
Updated:February 20 2025
huggingface.co

Total runs: 9
Run Growth: -7
Growth Rate: -77.78%
Updated:December 21 2024
huggingface.co

Total runs: 9
Run Growth: 0
Growth Rate: 0.00%
Updated:February 20 2025
huggingface.co

Total runs: 8
Run Growth: -5
Growth Rate: -62.50%
Updated:February 20 2025
huggingface.co

Total runs: 7
Run Growth: 2
Growth Rate: 28.57%
Updated:February 20 2025
huggingface.co

Total runs: 7
Run Growth: 4
Growth Rate: 57.14%
Updated:February 20 2025
huggingface.co

Total runs: 6
Run Growth: -1
Growth Rate: -16.67%
Updated:September 19 2023
huggingface.co

Total runs: 5
Run Growth: -10
Growth Rate: -200.00%
Updated:April 29 2025
huggingface.co

Total runs: 4
Run Growth: -2
Growth Rate: -50.00%
Updated:September 19 2023
huggingface.co

Total runs: 4
Run Growth: 1
Growth Rate: 25.00%
Updated:February 20 2025
huggingface.co

Total runs: 3
Run Growth: -10
Growth Rate: -333.33%
Updated:February 24 2025
huggingface.co

Total runs: 2
Run Growth: -5
Growth Rate: -250.00%
Updated:February 20 2025
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:April 18 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 02 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 31 2022