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/TLDR-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 = """
10POST Subreddit: r/cats
11Hello everyone! One of my cats is about 10 years old now, she is pretty much strictly
12indoors save for some time she spends on our screened in porch each day. (She likes
13to watch the birds in the yard while she suns herself by the pool, quite the princess).
14Anyway, when she was younger she was very active and quite small, however with
15age she has put on a pretty hefty amount of weight. I feed her indoor cat food
16for weight control, I’ve switched brands a few times trying to find something that
17works, I’ve cut back on feeding her by a lot (she gets very angry and demanding
18when she wants food but I don’t give in) however, nothing really seems to work.
19I’ve tried cat toys, and bought a harness thinking I could try to walk her but she just
20lays down and looks at me like I’m stupid. Basically I just want to know if you all
21have any suggestions for exercise or food. I care about her and don’t want this to
22get any worse. I also have another cat that eats the same amount and type of food
23as her and is a completely normal weight and only a year younger, however he is a
24male, not sure if that makes a difference in predisposition for weight gain. They are
25also both fixed. TL;DR:
26"""
27
28input_ids = tokenizer(input_text, return_tensors='pt').to(model.device)
29output_ids = model.generate(**input_ids, max_new_tokens=20)
30response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
31
32print(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}
}