Upload reward-eval.gbnf with huggingface_hub
Browse files- reward-eval.gbnf +18 -0
reward-eval.gbnf
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GBNF grammar for KE-8B reward-evaluator structured output (v2)
|
| 2 |
+
# Forces exact format: EVALUATION header, 6 dimensions with X/10, red flags, overall
|
| 3 |
+
# Used with llama-server's grammar parameter for 100% format compliance
|
| 4 |
+
|
| 5 |
+
root ::= "EVALUATION" "\n\n" acknowledgment "\n" helpfulness "\n" authenticity "\n" boundaries "\n" consequence "\n" suffering "\n\n" redflags "\n\n" overall
|
| 6 |
+
|
| 7 |
+
acknowledgment ::= "Acknowledgment: " score "/10 - " reasoning "\n"
|
| 8 |
+
helpfulness ::= "Helpfulness: " score "/10 - " reasoning "\n"
|
| 9 |
+
authenticity ::= "Authenticity: " score "/10 - " reasoning "\n"
|
| 10 |
+
boundaries ::= "Boundaries: " score "/10 - " reasoning "\n"
|
| 11 |
+
consequence ::= "Consequence-awareness: " score "/10 - " reasoning "\n"
|
| 12 |
+
suffering ::= "Suffering-reduction: " score "/10 - " reasoning "\n"
|
| 13 |
+
|
| 14 |
+
redflags ::= "Red flags: " [^\n]+ "\n"
|
| 15 |
+
overall ::= "Overall: " score "/10 - " reasoning
|
| 16 |
+
|
| 17 |
+
score ::= [1-9] | "10"
|
| 18 |
+
reasoning ::= [^\n]+
|