tool_calls with high reliability, useful for agents and any pipeline that depends on structured function invocation.
This page covers the function-calling data shape, supported models, and launch parameters.
Supported models
The following models support function-calling fine-tuning. See supported models for context lengths and batch limits.Supported models
Supported models
Prepare your data
Prepare data in a JSONL file. Each line should carry:messages: The conversation. Assistant messages can includetool_calls(a list of structured invocation objects) in place ofcontent. Tool results come back via messages with thetoolrole.tools: A list of available tools for the example.
Conversational format
Preference format
For preference fine-tuning, thetools array nests inside input. See Preference tuning for the broader DPO workflow.
Validate and upload
Upload your data using the Together Python/TypeScript SDK or the Together CLI:Launch the job
LoRA is the default and recommended training mode. Passlora=False for full fine-tuning.
Watch and deploy
Function-calling jobs use the same lifecycle as text jobs:- Poll the job with the SDK or CLI. Expect 10 to 30 minutes for a LoRA job on an 8B model with a few thousand examples.
- Deploy the result on a dedicated endpoint and call it with the same function-calling request shape as the base model.