Skip to content

Commit a7a2d19

Browse files
WindChimeRanclaude
andcommitted
feat(data): add Hermes function-calling dataset preset
Register NousResearch/hermes-function-calling-v1 (func_calling config) in both dataset registries: the offline preprocessing DATASET_CONFIGS (configs.py) and the on-policy response-regeneration script's DATASET_CONFIGS. Hermes func_calling is a multi-turn function-calling SFT dataset (Apache-2.0) in ShareGPT from/value form, so it needs no normalizer (like the existing sharegpt preset). Tool calls/results are text-encoded (<tool_call>/<tool_response>) inline; the parallel `tools` column carries the JSON schemas as a JSON string. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LRRGNt2T9ktWyFRboNUZNU Signed-off-by: Ranran Haoran Zhang <ranzhang@redhat.com>
1 parent 6030a44 commit a7a2d19

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

scripts/response_regeneration/script.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
"default_split": "train",
3636
"subset": "main",
3737
},
38+
"hermes-fc": {
39+
"id": "NousResearch/hermes-function-calling-v1",
40+
"prompt_field": "conversations",
41+
"default_split": "train",
42+
"subset": "func_calling",
43+
},
3844
}
3945

4046

src/speculators/data_generation/configs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,11 @@ def _normalize_sharegpt4v_coco(example: dict) -> dict:
146146
hf_path="mlabonne/open-perfectblend",
147147
split="train",
148148
),
149+
# Multi-turn function-calling SFT
150+
"hermes-fc": DatasetConfig(
151+
name="hermes-fc",
152+
hf_path="NousResearch/hermes-function-calling-v1",
153+
subset="func_calling",
154+
split="train",
155+
),
149156
}

0 commit comments

Comments
 (0)