Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,36 +1,14 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
- clear reasoning
|
| 13 |
-
- helpful intent
|
| 14 |
-
- no refusals
|
| 15 |
-
4. GRPO performs a policy gradient update:
|
| 16 |
-
\[
|
| 17 |
-
L = -R \log \pi + \beta KL(\pi || \pi_{\text{ref}})
|
| 18 |
-
\]
|
| 19 |
-
5. The model improves step-by-step
|
| 20 |
-
6. You see a **reward curve** over time
|
| 21 |
-
|
| 22 |
-
## π§© Files
|
| 23 |
-
|
| 24 |
-
- `policy.py` β loads Phi-2
|
| 25 |
-
- `reward_fn.py` β helpfulness scoring
|
| 26 |
-
- `grpo_train.py` β GRPO update
|
| 27 |
-
- `app.py` β UI
|
| 28 |
-
- `requirements.txt`
|
| 29 |
-
|
| 30 |
---
|
| 31 |
|
| 32 |
-
|
| 33 |
-
- toxicity
|
| 34 |
-
- factuality
|
| 35 |
-
- math correctness
|
| 36 |
-
- chain-of-thought quality
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Phi2 Helpfulness Grpo Demo
|
| 3 |
+
emoji: π¨
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: indigo
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.0.2
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: phi2-helpfulness-grpo-demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|