Prototype: votes, saves, and profiles aren't stored on this hosted preview yet. No real accounts, and no emails or texts. Privacy

Recipes / Tool-calling & booking agents

Fine-tune Qwen3-4B for tool calling (Unsloth)

Qwen3-4B-Instruct-2507 fine-tuned on Hermes function-calling data so it emits structured tool calls.

  • No license flags found

Source: Unsloth notebooks ↗ · by Unsloth · last updated Oct 11, 2026

What a local business could build with it

A small model that reliably fills in booking, quoting or CRM tool calls. Pair it with your own calendar or CRM functions and a human approval step.

Booking is merged into tool-calling: no source we found trains a booking agent as such, and a booking agent is a model that calls scheduling tools correctly.

How to run it

Commands are copied from the source, unchanged except where a notebook cell is cut at 40 lines (marked in the code). Placeholders like <you> are the source's own. Credit goes to the authors named on each block.

Install (as written in the notebook)

%%capture import os, re if "COLAB_" not in "".join(os.environ.keys()): !pip install unsloth # Do this in local & cloud setups else: !pip install sentencepiece protobuf "datasets==4.3.0" "huggingface_hub>=0.34.0" hf_transfer !pip install --no-deps unsloth_zoo bitsandbytes accelerate peft trl triton unsloth !unsloth install-kernels !pip install --no-deps --upgrade "torchao>=0.16.0" !pip install transformers==4.57.6 !pip install --no-deps trl==0.22.2 !pip install protobuf==3.20.3 # required !pip install --no-deps transformers-cfg

From Unsloth notebook, Qwen3_(4B)-Tool_Calling ↗

Load the base model

from unsloth import FastLanguageModel import torch model, tokenizer = FastLanguageModel.from_pretrained( model_name = "unsloth/Qwen3-4B-Instruct-2507", max_seq_length = 4096, # Tool schemas and tool results make conversations long load_in_4bit = True, # 4 bit quantization to reduce memory load_in_8bit = False, # [NEW!] A bit more accurate, uses 2x memory full_finetuning = False, # [NEW!] We have full finetuning now! # token = "YOUR_HF_TOKEN", # HF Token for gated models )

From Unsloth notebook, Qwen3_(4B)-Tool_Calling ↗

Set up training

from trl import SFTTrainer, SFTConfig trainer = SFTTrainer( model = model, tokenizer = tokenizer, train_dataset = dataset, eval_dataset = None, # Can set up evaluation! args = SFTConfig( dataset_text_field = "text", per_device_train_batch_size = 2, gradient_accumulation_steps = 4, # Use GA to mimic batch size! warmup_steps = 5, # num_train_epochs = 1, # Set this for 1 full training run. max_steps = 60, learning_rate = 2e-4, # Reduce to 2e-5 for long training runs logging_steps = 1, optim = "adamw_8bit", weight_decay = 0.001, lr_scheduler_type = "linear", seed = 3407, report_to = "none", # Use TrackIO/WandB etc ), )

From Unsloth notebook, Qwen3_(4B)-Tool_Calling ↗

Train

trainer_stats = trainer.train()

From Unsloth notebook, Qwen3_(4B)-Tool_Calling ↗

Licenses

No flags: every license we found for this recipe is permissive (Apache-2.0, MIT, BSD, CC BY or similar). Still read each one.

PartLicense, as the source or Hub states it
CodeLGPL-3.0 (Unsloth notebooks)
Base modelApache-2.0
DatasetApache-2.0

Checked against the Hugging Face API and each repo on December 4, 2026. A grouping like “$10M revenue cap” is our shorthand, not legal advice.