h-d-h/rad-model
8B • Updated • 31
messages listlengths 3 19 | tools listlengths 89 89 |
|---|---|
[
{
"role": "system",
"content": "You are a Radicle and Git expert assistant. You help users perform repository operations using rad and git CLI commands via tool calls.\n\nKey rules:\n- To create a Radicle patch, use git_push_patch (runs `git push rad HEAD:refs/patches`). Do NOT use `rad patch create` — that... | [
{
"type": "function",
"function": {
"name": "rad_patch_list",
"description": "List patches in a Radicle repository. By default shows open patches.",
"parameters": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
... |
[
{
"role": "system",
"content": "You are a Radicle and Git expert assistant. You help users perform repository operations using rad and git CLI commands via tool calls.\n\nKey rules:\n- To create a Radicle patch, use git_push_patch (runs `git push rad HEAD:refs/patches`). Do NOT use `rad patch create` — that... | [
{
"type": "function",
"function": {
"name": "rad_patch_list",
"description": "List patches in a Radicle repository. By default shows open patches.",
"parameters": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
... |
[
{
"role": "system",
"content": "You are a Radicle and Git expert assistant. You help users perform repository operations using rad and git CLI commands via tool calls.\n\nKey rules:\n- To create a Radicle patch, use git_push_patch (runs `git push rad HEAD:refs/patches`). Do NOT use `rad patch create` — that... | [
{
"type": "function",
"function": {
"name": "rad_patch_list",
"description": "List patches in a Radicle repository. By default shows open patches.",
"parameters": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
... |
[
{
"role": "system",
"content": "You are a Radicle and Git expert assistant. You help users perform repository operations using rad and git CLI commands via tool calls.\n\nKey rules:\n- To create a Radicle patch, use git_push_patch (runs `git push rad HEAD:refs/patches`). Do NOT use `rad patch create` — that... | [
{
"type": "function",
"function": {
"name": "rad_patch_list",
"description": "List patches in a Radicle repository. By default shows open patches.",
"parameters": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
... |
[
{
"role": "system",
"content": "You are a Radicle and Git expert assistant. You help users perform repository operations using rad and git CLI commands via tool calls.\n\nKey rules:\n- To create a Radicle patch, use git_push_patch (runs `git push rad HEAD:refs/patches`). Do NOT use `rad patch create` — that... | [
{
"type": "function",
"function": {
"name": "rad_patch_list",
"description": "List patches in a Radicle repository. By default shows open patches.",
"parameters": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
... |
[{"role":"system","content":"You are a Radicle and Git expert assistant. You help users perform repo(...TRUNCATED) | [{"type":"function","function":{"name":"rad_patch_list","description":"List patches in a Radicle rep(...TRUNCATED) |
[{"role":"system","content":"You are a Radicle and Git expert assistant. You help users perform repo(...TRUNCATED) | [{"type":"function","function":{"name":"rad_patch_list","description":"List patches in a Radicle rep(...TRUNCATED) |
[{"role":"system","content":"You are a Radicle and Git expert assistant. You help users perform repo(...TRUNCATED) | [{"type":"function","function":{"name":"rad_patch_list","description":"List patches in a Radicle rep(...TRUNCATED) |
[{"role":"system","content":"You are a Radicle and Git expert assistant. You help users perform repo(...TRUNCATED) | [{"type":"function","function":{"name":"rad_patch_list","description":"List patches in a Radicle rep(...TRUNCATED) |
[{"role":"system","content":"You are a Radicle and Git expert assistant. You help users perform repo(...TRUNCATED) | [{"type":"function","function":{"name":"rad_patch_list","description":"List patches in a Radicle rep(...TRUNCATED) |
Synthetic training data for teaching language models to call Radicle and Git CLI tools. Each example is a multi-message conversation with structured tool calls in the HF/TRL standard format.
Each example has two top-level fields:
messages — conversation in chat format (system, user, assistant, tool roles)tools — 89 tool schemas in OpenAI function-calling formatfrom datasets import load_dataset
from transformers import AutoTokenizer
dataset = load_dataset("h-d-h/rad-model-dataset")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")
example = dataset["train"][0]
text = tokenizer.apply_chat_template(
example["messages"],
tools=example["tools"],
tokenize=False,
)
This works with any model that supports tool-use chat templates (Qwen, Llama, Mistral, etc.). The tokenizer's chat template handles injecting tool schemas in the model's expected format.
89 tool schemas covering:
| Category | Description |
|---|---|
| Single-tool | One user request, one tool call |
| Multi-step workflows | Chained operations (e.g., find patch, checkout, review, merge, push) |
| Multi-turn dialogues | Back-and-forth conversations with follow-up questions |
| Error recovery | Tool returns an error, assistant explains and retries with corrected arguments |
| Negative examples | Questions that should be answered with text, not tool calls |
Examples are generated by dataset/generate.py from the rad-model repository. Sources include hand-crafted seeds, compositional randomized variations, workflow templates mined from real session patterns, and examples derived from the official Radicle user guide.
Apache-2.0