Documentation Index Fetch the complete documentation index at: https://docs.together.ai/llms.txt
Use this file to discover all available pages before exploring further.
Upload
To upload a new dataset file:
tg files upload [FILENAME]
Here’s a sample output:
$ tg files upload ./example.jsonl
Uploading file example.jsonl: 100% | ██████████████████████████████ | 5.18M/5.18M [00:01<00:00, 4.20MB/s]
Success!
file-d931200a-6b7f-476b-9ae2-8fddd5112308
The printed file-… identifier is the assigned file-id for this file object. Pass --json to get the full response body instead.
Parameters
Flag Description --purpose [string]The purpose of the file. Default: fine-tune. Must be one of:fine-tuneevaleval-sampleeval-outputeval-summarybatch-generatedbatch-api --no-checkSkip local file validation before uploading. The CLI checks files by default.
Check
You can precheck that a file is in the correct format.
Here’s a sample output:
$ tg files check ./local-file.jsonl
Validating file: 1 lines [00:00, 7476.48 lines/s]
✅ Checks passed
List
To list previously uploaded files:
Retrieve
To retrieve the metadata of a previously uploaded file:
tg files retrieve [FILE_ID]
Here’s a sample output:
$ tg files retrieve file-d931200a-6b7f-476b-9ae2-8fddd5112308
Retrieved file details
Id: file-d931200a-6b7f-476b-9ae2-8fddd5112308
Name: info_provided_validation_tokenized.parquet
Size: 303.4 KB
Type: parquet
Purpose: fine-tune
Created: 03/16/2026, 03:58 PM
Retrieve content
To download a previously uploaded file:
Download to file
Stream to stdout
tg files retrieve-content < FILE_I D > \
--output ./
Here’s a sample output:
$ tg files retrieve-content file-d931200a-6b7f-476b-9ae2-8fddd5112308 --output ./
File saved to ./example.jsonl
You must pass either --output <DIRECTORY> to write the contents to disk under the file’s original filename, or --stdout to stream the contents to standard output.
Delete
To delete a previously uploaded file:
tg files delete [FILE_ID]
Here’s a sample output:
$ tg files delete file-d931200a-6b7f-476b-9ae2-8fddd5112308
√ File deleted