Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ partial void ProcessCreateFineTunesResponseContent(
/// <param name="validationFile">
/// File-ID of a validation file uploaded to the Together API
/// </param>
/// <param name="packing">
/// Whether to use sequence packing for training.<br/>
/// Default Value: true
/// </param>
/// <param name="model">
/// Name of the base model to run fine-tune job on
/// </param>
Expand Down Expand Up @@ -292,6 +296,7 @@ partial void ProcessCreateFineTunesResponseContent(
string trainingFile,
string model,
string? validationFile = default,
bool? packing = default,
int? nEpochs = default,
int? nCheckpoints = default,
int? nEvals = default,
Expand Down Expand Up @@ -322,6 +327,7 @@ partial void ProcessCreateFineTunesResponseContent(
{
TrainingFile = trainingFile,
ValidationFile = validationFile,
Packing = packing,
Model = model,
NEpochs = nEpochs,
NCheckpoints = nCheckpoints,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public partial interface IFineTuningClient
/// <param name="validationFile">
/// File-ID of a validation file uploaded to the Together API
/// </param>
/// <param name="packing">
/// Whether to use sequence packing for training.<br/>
/// Default Value: true
/// </param>
/// <param name="model">
/// Name of the base model to run fine-tune job on
/// </param>
Expand Down Expand Up @@ -127,6 +131,7 @@ public partial interface IFineTuningClient
string trainingFile,
string model,
string? validationFile = default,
bool? packing = default,
int? nEpochs = default,
int? nCheckpoints = default,
int? nEvals = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ public sealed partial class CreateFineTunesRequest
[global::System.Text.Json.Serialization.JsonPropertyName("validation_file")]
public string? ValidationFile { get; set; }

/// <summary>
/// Whether to use sequence packing for training.<br/>
/// Default Value: true
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("packing")]
public bool? Packing { get; set; }

/// <summary>
/// Name of the base model to run fine-tune job on
/// </summary>
Expand Down Expand Up @@ -210,6 +217,10 @@ public sealed partial class CreateFineTunesRequest
/// <param name="validationFile">
/// File-ID of a validation file uploaded to the Together API
/// </param>
/// <param name="packing">
/// Whether to use sequence packing for training.<br/>
/// Default Value: true
/// </param>
/// <param name="model">
/// Name of the base model to run fine-tune job on
/// </param>
Expand Down Expand Up @@ -300,6 +311,7 @@ public CreateFineTunesRequest(
string trainingFile,
string model,
string? validationFile,
bool? packing,
int? nEpochs,
int? nCheckpoints,
int? nEvals,
Expand Down Expand Up @@ -328,6 +340,7 @@ public CreateFineTunesRequest(
this.TrainingFile = trainingFile ?? throw new global::System.ArgumentNullException(nameof(trainingFile));
this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model));
this.ValidationFile = validationFile;
this.Packing = packing;
this.NEpochs = nEpochs;
this.NCheckpoints = nCheckpoints;
this.NEvals = nEvals;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public sealed partial class FinetuneResponseTruncated
[global::System.Text.Json.Serialization.JsonPropertyName("validation_file")]
public string? ValidationFile { get; set; }

/// <summary>
/// Whether sequence packing is being used for training.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("packing")]
public bool? Packing { get; set; }

/// <summary>
/// Base model used for fine-tuning
/// </summary>
Expand Down Expand Up @@ -259,6 +265,9 @@ public sealed partial class FinetuneResponseTruncated
/// <param name="validationFile">
/// File-ID of the validation file
/// </param>
/// <param name="packing">
/// Whether sequence packing is being used for training.
/// </param>
/// <param name="model">
/// Base model used for fine-tuning
/// </param>
Expand Down Expand Up @@ -336,6 +345,7 @@ public FinetuneResponseTruncated(
global::System.Collections.Generic.IList<global::Together.FineTuneEvent>? events,
string? trainingFile,
string? validationFile,
bool? packing,
string? model,
string? modelOutputName,
string? suffix,
Expand Down Expand Up @@ -370,6 +380,7 @@ public FinetuneResponseTruncated(
this.Events = events;
this.TrainingFile = trainingFile;
this.ValidationFile = validationFile;
this.Packing = packing;
this.Model = model;
this.ModelOutputName = modelOutputName;
this.Suffix = suffix;
Expand Down
7 changes: 7 additions & 0 deletions src/libs/Together/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,10 @@ paths:
validation_file:
type: string
description: File-ID of a validation file uploaded to the Together API
packing:
type: boolean
default: true
description: Whether to use sequence packing for training.
model:
type: string
description: Name of the base model to run fine-tune job on
Expand Down Expand Up @@ -10866,6 +10870,9 @@ components:
validation_file:
type: string
description: File-ID of the validation file
packing:
type: boolean
description: Whether sequence packing is being used for training.
model:
type: string
description: Base model used for fine-tuning
Expand Down