Home › Datasets › Function & Tool Calling

Agents & Tool Use Pack

How to Fine-Tune an LLM for Function Calling & Tool Use

Selecting the correct tool/function, formatting calls correctly, and handling tool results appropriately.

Fine-tune a model on this dataset Preview Dataset

$35 for the dataset. Training is priced separately by model, starting at $47.

What can this kind of fine-tuning teach an LLM?

A general-purpose model may already know some of this subject. Fine-tuning serves a different purpose: it repeatedly demonstrates the kinds of requests, response patterns, terminology, decisions and workflows you want the model to handle more consistently.

For Function & Tool Calling, the dataset focuses on selecting the correct tool/function, formatting calls correctly, and handling tool results appropriately. Fine-tuning shapes recurring model behavior; it does not turn the model into a live database or guarantee correctness on every new case.

What training data should cover

Useful supervised fine-tuning data should resemble the work you expect the model to perform. This Rebiha dataset's domain definition is organized around 13 coverage areas:

How Rebiha prepared the training material

This page contains 994 instruction-response pairs from the existing Rebiha dataset. Its domain definition was designed around the coverage areas above so the training material spans multiple realistic tasks rather than one narrow prompt pattern.

Rebiha's broader dataset workflow uses structured quality review to help identify problems such as contradictions, unsupported claims, unsupported assumptions, calculation errors and other weak training examples. You can inspect real examples on this page before deciding whether the dataset fits your model and use case.

What is in this dataset

994 instruction-response pairs covering selecting the correct tool/function, formatting calls correctly, and handling tool results appropriately. Each pair is a realistic instruction with a full written response, in the JSONL format used for supervised fine-tuning. No synthetic filler, no duplicated rows.

Example pairs

Real rows from the dataset, shown in full.

I need to know the current weather in Chicago, the time in Tokyo, and the exchange rate from USD to EUR. Use whatever tools you have to get all three.

{ "tool_calls": [ {"name": "get_weather", "arguments": {"city": "Chicago", "units": "metric"}}, {"name": "get_current_time", "arguments": {"timezone": "Asia/Tokyo"}}, {"name": "get_exchange_rate", "arguments": {"base_currency": "USD", "target_currency": "EUR"}} ] }

Please set a reminder for my dentist appointment next Tuesday at 3pm, and also add a calendar event for the same time. The reminder should be 30 minutes before.

{ "tool_calls": [ {"name": "set_reminder", "arguments": {"text": "Dentist appointment", "datetime": "2025-06-10T15:00:00", "offset_minutes": -30}}, {"name": "create_calendar_event", "arguments": {"title": "Dentist appointment", "start": "2025-06-10T15:00:00", "end": "2025-06-10T15:30:00", "location": "Dental clinic"}} ] }

I want to double the integer 17 and then check if the result is a prime number. Do that step by step.

First, I call the `multiply` function with arguments `a=17`, `b=2`. Result: 34. Then I call `is_prime` with `n=34`. The function returns `false` because 34 is divisible by 2 and 17. Final answer: 34 is not prime.

Who this is for

Builders who want their fine-tuned model to reliably perform this specific capability, as part of a broader assistant or agent.

Which models this works with

The dataset is plain JSONL, so it works with any instruction-tuned open model. On Rebiha you can train it directly on:

Training uses LoRA, or QLoRA on a 4-bit base for larger models. Your base model's weights are never modified — training produces a separate adapter.

How it works

  1. Pick this dataset and a base model.
  2. Rebiha runs the job on a managed GPU. You set up nothing.
  3. Download your model: a ready-to-run GGUF, plus developer assets (adapter, tokenizer, configs).

Fine-tuning or RAG?

Use RAG when the model needs facts that change — your prices, your documents, today's inventory. Use fine-tuning when you want consistent behavior and structure without prompting for it every time. This dataset teaches the shape of this capability, not facts to look up.

How managed fine-tuning works

  1. Inspect the dataset examples and choose a compatible base model.
  2. Rebiha runs the training job on managed GPU infrastructure using LoRA or QLoRA as appropriate.
  3. Download portable model assets for your own workflow, including the available ready-to-run and developer outputs for the selected training path.

Fine-tuning or RAG?

Use fine-tuning when the objective is recurring behavior: response structure, domain patterns, terminology, workflow, or how the model approaches a class of requests. Use RAG when answers depend on changing or proprietary facts that should be retrieved at request time. The two approaches can also work together.

Know what goes in. Own what comes out.

You can inspect real examples before training, choose the model you want to adapt, and keep portable model assets when training is complete.

Related datasets

Start fine-tuning