Views
No views yet
| 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 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_path = "baidu/HH-RLHF-Gemma-2B-MA-PPO-Fixed5"
4
5tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
6
7model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto", torch_dtype='auto', trust_remote_code=True)
8
9input_text = """
10Human: Would you be able to explain the differences between the Spanish
11and Italian language? Assistant: Of course. Can you tell me more about
12the specific areas where you’re interested in knowing more? Human: I’m
13thinking between the Spanish spoken in Mexico and Italian spoken in Italy.
14Assistant:
15"""
16
17input_ids = tokenizer(input_text, return_tensors='pt').to(model.device)
18output_ids = model.generate(**input_ids, max_new_tokens=20)
19response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
20
21print(response)@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}
}