Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
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.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "baidu/HH-RLHF-Gemma-7B-MA-PPO-Fixed5"
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 = """Human: Would you be able to explain the differences between the Spanishand Italian language? Assistant: Of course. Can you tell me more aboutthe specific areas where you’re interested in knowing more? Human: I’mthinking between the Spanish spoken in Mexico and Italian spoken in Italy.Assistant: """
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 HH-RLHF-Gemma-7B-MA-PPO-Fixed5 on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About HH-RLHF-Gemma-7B-MA-PPO-Fixed5 huggingface.co Model
More HH-RLHF-Gemma-7B-MA-PPO-Fixed5 license Visit here:
HH-RLHF-Gemma-7B-MA-PPO-Fixed5 huggingface.co is an AI model on huggingface.co that provides HH-RLHF-Gemma-7B-MA-PPO-Fixed5's model effect (), which can be used instantly with this baidu HH-RLHF-Gemma-7B-MA-PPO-Fixed5 model. huggingface.co supports a free trial of the HH-RLHF-Gemma-7B-MA-PPO-Fixed5 model, and also provides paid use of the HH-RLHF-Gemma-7B-MA-PPO-Fixed5. Support call HH-RLHF-Gemma-7B-MA-PPO-Fixed5 model through api, including Node.js, Python, http.
HH-RLHF-Gemma-7B-MA-PPO-Fixed5 huggingface.co is an online trial and call api platform, which integrates HH-RLHF-Gemma-7B-MA-PPO-Fixed5's modeling effects, including api services, and provides a free online trial of HH-RLHF-Gemma-7B-MA-PPO-Fixed5, you can try HH-RLHF-Gemma-7B-MA-PPO-Fixed5 online for free by clicking the link below.
baidu HH-RLHF-Gemma-7B-MA-PPO-Fixed5 online free url in huggingface.co:
HH-RLHF-Gemma-7B-MA-PPO-Fixed5 is an open source model from GitHub that offers a free installation service, and any user can find HH-RLHF-Gemma-7B-MA-PPO-Fixed5 on GitHub to install. At the same time, huggingface.co provides the effect of HH-RLHF-Gemma-7B-MA-PPO-Fixed5 install, users can directly use HH-RLHF-Gemma-7B-MA-PPO-Fixed5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
HH-RLHF-Gemma-7B-MA-PPO-Fixed5 install url in huggingface.co: