Skip to content

Commit ffb466f

Browse files
authored
Merge pull request #164 from togethercomputer/blaine/eng-48212-fix-openapi-spec-for-dowloading-fine-tune-models
Fix spec for downloading finetune models
2 parents 7c02e70 + acbf37b commit ffb466f

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

openapi.yaml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ paths:
19111911
get:
19121912
tags: ['Fine-tuning']
19131913
summary: Download model
1914-
description: Download a compressed fine-tuned model or checkpoint to local disk.
1914+
description: Download a compressed fine-tuned model or checkpoint.
19151915
x-codeSamples:
19161916
- lang: Python
19171917
label: Together AI SDK (Python)
@@ -1982,20 +1982,16 @@ paths:
19821982
enum:
19831983
- merged
19841984
- adapter
1985+
- model_output_path
19851986
description: Specifies checkpoint type to download - `merged` vs `adapter`. This field is required if the checkpoint_step is not set.
1986-
- in: query
1987-
name: output
1988-
schema:
1989-
type: string
1990-
required: false
1991-
description: Specifies output file name for downloaded model. Defaults to `$PWD/{model_name}.{extension}`.
19921987
responses:
19931988
'200':
19941989
description: Successfully downloaded the fine-tuned model or checkpoint.
19951990
content:
1996-
application/json:
1991+
application/octet-stream:
19971992
schema:
1998-
$ref: '#/components/schemas/FinetuneDownloadResult'
1993+
type: string
1994+
format: binary
19991995
'400':
20001996
description: Invalid request parameters.
20011997
'404':
@@ -7008,22 +7004,6 @@ components:
70087004
checkpoint_type:
70097005
type: string
70107006

7011-
FinetuneDownloadResult:
7012-
type: object
7013-
properties:
7014-
object:
7015-
enum:
7016-
- null
7017-
- local
7018-
id:
7019-
type: string
7020-
checkpoint_step:
7021-
type: integer
7022-
filename:
7023-
type: string
7024-
size:
7025-
type: integer
7026-
70277007
FullTrainingType:
70287008
type: object
70297009
properties:

0 commit comments

Comments
 (0)