Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model: Qwen/Qwen3-8B
|
| 6 |
+
tags:
|
| 7 |
+
- bargaining
|
| 8 |
+
- negotiation
|
| 9 |
+
- reinforcement-learning
|
| 10 |
+
- grpo
|
| 11 |
+
- bilateral-bargaining
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# Qwen3-8B Bargaining Buyer (RL)
|
| 15 |
+
|
| 16 |
+
A Qwen3-8B model trained via **reinforcement learning (GRPO)** to play as the **buyer** in bilateral bargaining negotiations.
|
| 17 |
+
|
| 18 |
+
## Overview
|
| 19 |
+
|
| 20 |
+
This model was trained as part of the [LLM Bilateral Bargaining](https://github.com/ZhuoranYang/llm_bilateral_bargaining) project, which studies how LLM agents negotiate in structured buyer-seller bargaining games.
|
| 21 |
+
|
| 22 |
+
**Training method**: Group Relative Policy Optimization (GRPO) with a multi-component reward function covering parsing correctness, execution success, constraint compliance, and negotiation utility. Initialized from the [SFT checkpoint](https://huggingface.co/yale-cadmy/qwen3-8B-bargaining-sft).
|
| 23 |
+
|
| 24 |
+
**Role**: Buyer agent — negotiates to purchase items at the lowest price while respecting a private maximum willingness to pay.
|
| 25 |
+
|
| 26 |
+
## Usage
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 30 |
+
import torch
|
| 31 |
+
|
| 32 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 33 |
+
"yale-cadmy/qwen3-8B-bargaining-buyer-rl",
|
| 34 |
+
torch_dtype=torch.bfloat16,
|
| 35 |
+
device_map="auto",
|
| 36 |
+
)
|
| 37 |
+
tokenizer = AutoTokenizer.from_pretrained("yale-cadmy/qwen3-8B-bargaining-buyer-rl")
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## License
|
| 41 |
+
|
| 42 |
+
CC-BY-NC-4.0. See the [LLM Bilateral Bargaining](https://github.com/ZhuoranYang/llm_bilateral_bargaining) repository for details.
|