diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8878352c..3a39fd8c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.34.0" + ".": "0.35.0" } diff --git a/.stats.yml b/.stats.yml index 71d99e12..576b1352 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 45 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-817bdc0e9a5082575f07386056968f56af20cbc40cbbc716ab4b8c4ec9220b53.yml -openapi_spec_hash: 30b3f6d251dfd02bca8ffa3f755e7574 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/togetherai%2Ftogetherai-9deb17c2e61bacac1bf17741853c4e5e11059b85fc37538c284d36ce9973836f.yml +openapi_spec_hash: 2f3c2fb0f8a06225670b05fc19a60c23 config_hash: 9749f2f8998aa6b15452b2187ff675b9 diff --git a/CHANGELOG.md b/CHANGELOG.md index 665836e8..d4e9f38a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.35.0 (2025-12-23) + +Full Changelog: [v0.34.0...v0.35.0](https://github.com/togethercomputer/together-typescript/compare/v0.34.0...v0.35.0) + +### Features + +* Support VLM finetuning ([4a0271f](https://github.com/togethercomputer/together-typescript/commit/4a0271f78cecc05e137c6977238917fdf2bae381)) + + +### Documentation + +* add more examples ([99b172f](https://github.com/togethercomputer/together-typescript/commit/99b172f6c74ed1fd50342b22da4494e200a4a5fc)) + ## 0.34.0 (2025-12-16) Full Changelog: [v0.33.0...v0.34.0](https://github.com/togethercomputer/together-typescript/compare/v0.33.0...v0.34.0) diff --git a/README.md b/README.md index a6b87b0b..b69b39db 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ import Together from 'together-ai'; const client = new Together(); const stream = await client.chat.completions.create({ - messages: [{ role: 'user', content: 'Say this is a test' }], + messages: [{ role: 'user', content: 'Say this is a test!' }], model: 'meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo', stream: true, }); diff --git a/package.json b/package.json index a9899037..50474016 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "together-ai", - "version": "0.34.0", + "version": "0.35.0", "description": "The official TypeScript library for the Together API", "author": "Together ", "types": "dist/index.d.ts", diff --git a/src/resources/fine-tuning.ts b/src/resources/fine-tuning.ts index 5e7b54b4..90a5493d 100644 --- a/src/resources/fine-tuning.ts +++ b/src/resources/fine-tuning.ts @@ -247,6 +247,8 @@ export interface FinetuneResponse { model_output_path?: string; + multimodal_params?: FinetuneResponse.MultimodalParams; + n_checkpoints?: number; n_epochs?: number; @@ -319,6 +321,14 @@ export namespace FinetuneResponse { } } + export interface MultimodalParams { + /** + * Whether to train the vision encoder of the model. Only available for multimodal + * models. + */ + train_vision?: boolean; + } + /** * Progress information for a fine-tuning job */ @@ -1255,6 +1265,8 @@ export interface FineTuningCreateParams { */ max_grad_norm?: number; + multimodal_params?: FineTuningCreateParams.MultimodalParams; + /** * Number of intermediate model versions saved during training for evaluation */ @@ -1360,6 +1372,14 @@ export namespace FineTuningCreateParams { } } + export interface MultimodalParams { + /** + * Whether to train the vision encoder of the model. Only available for multimodal + * models. + */ + train_vision?: boolean; + } + export interface TrainingMethodSft { method: 'sft'; @@ -1443,6 +1463,8 @@ export interface FineTuningEstimatePriceParams { */ model?: string; + multimodal_params?: FineTuningEstimatePriceParams.MultimodalParams; + /** * Number of complete passes through the training dataset (higher values may * improve results but increase cost and risk of overfitting) @@ -1473,6 +1495,14 @@ export interface FineTuningEstimatePriceParams { } export namespace FineTuningEstimatePriceParams { + export interface MultimodalParams { + /** + * Whether to train the vision encoder of the model. Only available for multimodal + * models. + */ + train_vision?: boolean; + } + export interface TrainingMethodSft { method: 'sft'; diff --git a/src/version.ts b/src/version.ts index 48199984..3f1d4329 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.34.0'; // x-release-please-version +export const VERSION = '0.35.0'; // x-release-please-version diff --git a/tests/api-resources/fine-tuning.test.ts b/tests/api-resources/fine-tuning.test.ts index c03c77f0..43e151aa 100644 --- a/tests/api-resources/fine-tuning.test.ts +++ b/tests/api-resources/fine-tuning.test.ts @@ -32,6 +32,7 @@ describe('resource fineTuning', () => { learning_rate: 0, lr_scheduler: { lr_scheduler_type: 'linear', lr_scheduler_args: { min_lr_ratio: 0 } }, max_grad_norm: 0, + multimodal_params: { train_vision: true }, n_checkpoints: 0, n_epochs: 0, n_evals: 0, @@ -124,6 +125,7 @@ describe('resource fineTuning', () => { training_file: 'training_file', from_checkpoint: 'from_checkpoint', model: 'model', + multimodal_params: { train_vision: true }, n_epochs: 0, n_evals: 0, training_method: { method: 'sft', train_on_inputs: true },