Skip to content

Commit 37bae39

Browse files
committed
Add FT models supported and limits
1 parent a50d1db commit 37bae39

1 file changed

Lines changed: 139 additions & 0 deletions

File tree

openapi.yaml

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3308,6 +3308,83 @@ paths:
33083308
description: Invalid request parameters.
33093309
'404':
33103310
description: Fine-tune ID not found.
3311+
/fine-tunes/models/supported:
3312+
get:
3313+
tags: ['Fine-tuning']
3314+
summary: List supported models
3315+
description: List models supported for fine-tuning, or check if a specific model is supported.
3316+
x-codeSamples:
3317+
- lang: Shell
3318+
label: cURL (list all)
3319+
source: |
3320+
curl "https://api.together.xyz/v1/fine-tunes/models/supported" \
3321+
-H "Authorization: Bearer $TOGETHER_API_KEY"
3322+
- lang: Shell
3323+
label: cURL (check specific model)
3324+
source: |
3325+
curl "https://api.together.xyz/v1/fine-tunes/models/supported?model_name=meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" \
3326+
-H "Authorization: Bearer $TOGETHER_API_KEY"
3327+
parameters:
3328+
- in: query
3329+
name: model_name
3330+
schema:
3331+
type: string
3332+
required: false
3333+
description: Optional model name to check support for. If omitted, returns all supported models.
3334+
responses:
3335+
'200':
3336+
description: Supported models or support status for a specific model.
3337+
content:
3338+
application/json:
3339+
schema:
3340+
oneOf:
3341+
- type: object
3342+
properties:
3343+
models:
3344+
type: array
3345+
items:
3346+
type: string
3347+
description: List of supported model names.
3348+
- type: object
3349+
properties:
3350+
supported:
3351+
type: boolean
3352+
description: Whether the specified model is supported.
3353+
/fine-tunes/models/limits:
3354+
get:
3355+
tags: ['Fine-tuning']
3356+
summary: Get model limits
3357+
description: Get hyperparameter limits for a specific model.
3358+
x-codeSamples:
3359+
- lang: Shell
3360+
label: cURL
3361+
source: |
3362+
curl "https://api.together.xyz/v1/fine-tunes/models/limits?model_name=meta-llama/Meta-Llama-3.1-8B-Instruct-Reference" \
3363+
-H "Authorization: Bearer $TOGETHER_API_KEY"
3364+
parameters:
3365+
- in: query
3366+
name: model_name
3367+
schema:
3368+
type: string
3369+
required: true
3370+
description: The model name to get limits for.
3371+
responses:
3372+
'200':
3373+
description: Model hyperparameter limits.
3374+
content:
3375+
application/json:
3376+
schema:
3377+
$ref: '#/components/schemas/HyperParameterLimits'
3378+
'404':
3379+
description: Model not found or not supported for fine-tuning.
3380+
content:
3381+
application/json:
3382+
schema:
3383+
type: object
3384+
properties:
3385+
message:
3386+
type: string
3387+
description: Error message explaining the model is not available.
33113388
/rerank:
33123389
post:
33133390
tags: ['Rerank']
@@ -10596,6 +10673,68 @@ components:
1059610673
message:
1059710674
type: string
1059810675
description: Message indicating the result of the deletion
10676+
HyperParameterLimits:
10677+
type: object
10678+
description: Hyperparameter limits for a fine-tuning model.
10679+
properties:
10680+
model_name:
10681+
type: string
10682+
description: The name of the model.
10683+
full_training:
10684+
type: object
10685+
description: Limits for full training.
10686+
properties:
10687+
max_batch_size:
10688+
type: integer
10689+
description: Maximum batch size for SFT full training.
10690+
max_batch_size_dpo:
10691+
type: integer
10692+
description: Maximum batch size for DPO full training.
10693+
min_batch_size:
10694+
type: integer
10695+
description: Minimum batch size for full training.
10696+
lora_training:
10697+
type: object
10698+
description: Limits for LoRA training.
10699+
properties:
10700+
max_batch_size:
10701+
type: integer
10702+
description: Maximum batch size for SFT LoRA training.
10703+
max_batch_size_dpo:
10704+
type: integer
10705+
description: Maximum batch size for DPO LoRA training.
10706+
min_batch_size:
10707+
type: integer
10708+
description: Minimum batch size for LoRA training.
10709+
max_rank:
10710+
type: integer
10711+
description: Maximum LoRA rank.
10712+
target_modules:
10713+
type: array
10714+
items:
10715+
type: string
10716+
description: Available target modules for LoRA.
10717+
max_num_epochs:
10718+
type: integer
10719+
description: Maximum number of training epochs.
10720+
max_num_evals:
10721+
type: integer
10722+
description: Maximum number of evaluations.
10723+
max_learning_rate:
10724+
type: number
10725+
description: Maximum learning rate.
10726+
min_learning_rate:
10727+
type: number
10728+
description: Minimum learning rate.
10729+
supports_vision:
10730+
type: boolean
10731+
description: Whether the model supports vision/multimodal inputs.
10732+
supports_tools:
10733+
type: boolean
10734+
description: Whether the model supports tool/function calling.
10735+
supports_reasoning:
10736+
type: boolean
10737+
description: Whether the model supports reasoning.
1059910738
FinetuneJobStatus:
1060010739
type: string
1060110740
enum:

0 commit comments

Comments
 (0)