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
@@ -0,0 +1,20 @@
#nullable enable

namespace Together
{
public partial interface IRlClient
{
/// <summary>
/// Save training checkpoint<br/>
/// Submits an operation that will asynchronously save the full training state (adapter + optimizer + step).
/// </summary>
/// <param name="sessionId">
/// Training session ID
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Together.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Together.RlTrainingCheckpointOperation> CreateTrainingCheckpointAsync(
string sessionId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#nullable enable

namespace Together
{
public partial interface IRlClient
{
/// <summary>
/// Get save training checkpoint operation<br/>
/// Retrieves the current status and result of a save training checkpoint operation.
/// </summary>
/// <param name="sessionId">
/// Training session ID
/// </param>
/// <param name="operationId">
/// Operation ID
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Together.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Together.RlTrainingCheckpointOperation> GetTrainingCheckpointOperationAsync(
string sessionId,
string operationId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public partial interface IRlClient
/// Base model to use for the training session<br/>
/// Example: meta-llama/Meta-Llama-3-8B-Instruct
/// </param>
/// <param name="checkpointId">
/// Checkpoint ID to use for the training session<br/>
/// Example: checkpoint-123
/// <param name="resumeFromCheckpointId">
/// Checkpoint ID to resume from<br/>
/// Example: 123e4567-e89b-12d3-a456-426614174000
/// </param>
/// <param name="loraConfig">
/// LoRA adapter configuration
Expand All @@ -35,7 +35,7 @@ public partial interface IRlClient
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Together.RlTrainingSession> StartTrainingSessionAsync(
string baseModel,
string? checkpointId = default,
string? resumeFromCheckpointId = default,
global::Together.RlLoraConfig? loraConfig = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Loading
Loading