Skip to content

Commit

Permalink
Merge pull request #34 from togethercomputer/update-finetune
Browse files Browse the repository at this point in the history
update for FT validation support and LoRA FT
  • Loading branch information
Nutlope authored Aug 29, 2024
2 parents b4ad097 + 5186ce4 commit 2d2e4a3
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ paths:
properties:
training_file:
type: string
description: File-ID of a file uploaded to the Together API
description: File-ID of a training file uploaded to the Together API
validation_file:
type: string
description: File-ID of a validation file uploaded to the Together API
model:
type: string
description: Name of the base model to run fine-tune job on
Expand All @@ -382,6 +385,10 @@ paths:
type: integer
default: 1
description: Number of checkpoints to save during fine-tuning
n_evals:
type: integer
default: 0
description: Number of evaluations to be run on a given validation set during training
batch_size:
type: integer
default: 32
Expand All @@ -397,6 +404,26 @@ paths:
wandb_api_key:
type: string
description: API key for Weights & Biases integration
lora:
type: boolean
description: Whether to enable LoRA training. If not provided, full fine-tuning will be applied.
lora_r:
type: integer
default: 8
description: Rank for LoRA adapter weights
lora_alpha:
type: integer
default: 8
description: The alpha value for LoRA adapter training.
lora_dropout:
type: number
format: float
default: 0.0
description: The dropout probability for Lora layers.
lora_trainable_modules:
type: string
default: 'all-linear'
description: A list of LoRA trainable modules, separated by a comma
responses:
'200':
description: Fine-tuning job initiated successfully
Expand Down Expand Up @@ -1656,9 +1683,9 @@ components:
type: string
model_output_path:
type: string
TrainingFileNumLines:
trainingfile_numlines:
type: integer
TrainingFileSize:
trainingfile_size:
type: integer
created_at:
type: string
Expand All @@ -1668,6 +1695,8 @@ components:
type: integer
n_checkpoints:
type: integer
n_evals:
type: integer
batch_size:
type: integer
learning_rate:
Expand All @@ -1681,7 +1710,9 @@ components:
lora_alpha:
type: integer
lora_dropout:
type: integer
type: number
lora_trainable_modules:
type: string
status:
$ref: '#/components/schemas/FinetuneJobStatus'
job_id:
Expand Down

0 comments on commit 2d2e4a3

Please sign in to comment.