baidu / APPS-Gemma-2B-MA-PPO-Fixed10

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 14 2025

Introduction of APPS-Gemma-2B-MA-PPO-Fixed10

Model Details of APPS-Gemma-2B-MA-PPO-Fixed10

Model Card for MA-RLHF

ICLR 2025 Github

This repository contains the official checkpoint for Reinforcement Learning From Human Feedback with Macro Actions (MA-RLHF) .

Model Description

MA-RLHF is a novel framework that integrates macro actions into conventional RLHF. The macro actions are sequences of tokens or higher-level language constructs, with can be computed through different defined termination conditions, like n-gram based, perplexity-based, or parsing-based termination conditions. By introducing macro actions into RLHF, we reduce the number of decision points and shorten decision trajectories, alleviating the credit assignment problem caused by long temporal distances.

Model Checkpoint Base Model Dataset
TLDR-Gemma-2B-MA-PPO-Fixed5 🤗 HF Link google/gemma-2b openai/summarize_from_feedback
TLDR-Gemma-7B-MA-PPO-Fixed5 🤗 HF Link google/gemma-7b openai/summarize_from_feedback
TLDR-Gemma-2-27B-MA-PPO-Fixed5 🤗 HF Link google/gemma-2-27b openai/summarize_from_feedback
HH-RLHF-Gemma-2B-MA-PPO-Fixed5 🤗 HF Link google/gemma-2b Dahoas/full-hh-rlhf
HH-RLHF-Gemma-7B-MA-PPO-Fixed5 🤗 HF Link google/gemma-7b Dahoas/full-hh-rlhf
APPS-Gemma-2B-MA-PPO-Fixed10 🤗 HF Link google/codegemma-2b codeparrot/apps
APPS-Gemma-7B-MA-PPO-Fixed10 🤗 HF Link google/codegemma-7b-it codeparrot/apps
Model Usage
from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "baidu/APPS-Gemma-2B-MA-PPO-Fixed10"

tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)

model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto", torch_dtype='auto', trust_remote_code=True)

input_text = """
An accordion is a string (yes, in the real world accordions are musical instruments, but let's forget about it for a while) which can be represented as a concatenation of: an opening bracket (ASCII code $091$), a colon (ASCII code $058$), some (possibly zero) vertical line characters (ASCII code $124$), another colon, and a closing bracket (ASCII code $093$). The length of the accordion is the number of characters in it. For example, [::], [:||:] and [:|||:] are accordions having length $4$, $6$ and $7$. (:|:), {:||:}, [:], ]:||:[ are not accordions. You are given a string $s$. You want to transform it into an accordion by removing some (possibly zero) characters from it. Note that you may not insert new characters or reorder existing ones. Is it possible to obtain an accordion by removing characters from $s$, and if so, what is the maximum possible length of the result? -----Input----- The only line contains one string $s$ ($1 \le |s| \le 500000$). It consists of lowercase Latin letters and characters [, ], : and |. -----Output----- If it is not possible to obtain an accordion by removing some characters from $s$, print $-1$. Otherwise print maximum possible length of the resulting accordion. -----Examples----- Input |[a:b:|] Output 4 Input |]:[|:] Output -1
"""

input_ids = tokenizer(input_text, return_tensors='pt').to(model.device)
output_ids = model.generate(**input_ids, max_new_tokens=20)
response = tokenizer.decode(output_ids[0], skip_special_tokens=True)

print(response)
Citation
@inproceedings{
  chai2025marlhf,
  title={{MA}-{RLHF}: Reinforcement Learning from Human Feedback with Macro Actions},
  author={Yekun Chai and Haoran Sun and Huang Fang and Shuohuan Wang and Yu Sun and Hua Wu},
  booktitle={The Thirteenth International Conference on Learning Representations},
  year={2025},
  url={https://openreview.net/forum?id=WWXjMYZxfH}
}

Runs of baidu APPS-Gemma-2B-MA-PPO-Fixed10 on huggingface.co

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

More Information About APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co Model

More APPS-Gemma-2B-MA-PPO-Fixed10 license Visit here:

https://choosealicense.com/licenses/mit

APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co

APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co is an AI model on huggingface.co that provides APPS-Gemma-2B-MA-PPO-Fixed10's model effect (), which can be used instantly with this baidu APPS-Gemma-2B-MA-PPO-Fixed10 model. huggingface.co supports a free trial of the APPS-Gemma-2B-MA-PPO-Fixed10 model, and also provides paid use of the APPS-Gemma-2B-MA-PPO-Fixed10. Support call APPS-Gemma-2B-MA-PPO-Fixed10 model through api, including Node.js, Python, http.

APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co Url

https://huggingface.co/baidu/APPS-Gemma-2B-MA-PPO-Fixed10

baidu APPS-Gemma-2B-MA-PPO-Fixed10 online free

APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co is an online trial and call api platform, which integrates APPS-Gemma-2B-MA-PPO-Fixed10's modeling effects, including api services, and provides a free online trial of APPS-Gemma-2B-MA-PPO-Fixed10, you can try APPS-Gemma-2B-MA-PPO-Fixed10 online for free by clicking the link below.

baidu APPS-Gemma-2B-MA-PPO-Fixed10 online free url in huggingface.co:

https://huggingface.co/baidu/APPS-Gemma-2B-MA-PPO-Fixed10

APPS-Gemma-2B-MA-PPO-Fixed10 install

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

APPS-Gemma-2B-MA-PPO-Fixed10 install url in huggingface.co:

https://huggingface.co/baidu/APPS-Gemma-2B-MA-PPO-Fixed10

Url of APPS-Gemma-2B-MA-PPO-Fixed10

APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co Url

Provider of APPS-Gemma-2B-MA-PPO-Fixed10 huggingface.co

baidu
ORGANIZATIONS

Other API from baidu

huggingface.co

Total runs: 2.6M
Run Growth: -251.3K
Growth Rate: -9.56%
Updated:July 29 2026
huggingface.co

Total runs: 253.0K
Run Growth: 33.8K
Growth Rate: 13.38%
Updated:April 29 2026
huggingface.co

Total runs: 1.3K
Run Growth: -590
Growth Rate: -44.46%
Updated:April 17 2026
huggingface.co

Total runs: 229
Run Growth: 88
Growth Rate: 38.43%
Updated:September 19 2025
huggingface.co

Total runs: 132
Run Growth: -46
Growth Rate: -34.85%
Updated:April 19 2026
huggingface.co

Total runs: 105
Run Growth: 27
Growth Rate: 25.71%
Updated:June 03 2026
huggingface.co

Total runs: 15
Run Growth: 0
Growth Rate: 0.00%
Updated:October 04 2024
huggingface.co

Total runs: 15
Run Growth: 0
Growth Rate: 0.00%
Updated:October 04 2024
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:October 04 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2024