Class FineTuningJob.Builder
-
- All Implemented Interfaces:
public final class FineTuningJob.Builder
-
-
Constructor Summary
Constructors Constructor Description FineTuningJob.Builder()
-
Method Summary
Modifier and Type Method Description final FineTuningJob.Builder
id(String id)
The object identifier, which can be referenced in the API endpoints. final FineTuningJob.Builder
id(JsonField<String> id)
The object identifier, which can be referenced in the API endpoints. final FineTuningJob.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the fine-tuning job was created. final FineTuningJob.Builder
createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the fine-tuning job was created. final FineTuningJob.Builder
error(FineTuningJob.Error error)
For fine-tuning jobs that have failed
, this will contain more information on the cause of the failure.final FineTuningJob.Builder
error(Optional<FineTuningJob.Error> error)
For fine-tuning jobs that have failed
, this will contain more information on the cause of the failure.final FineTuningJob.Builder
error(JsonField<FineTuningJob.Error> error)
For fine-tuning jobs that have failed
, this will contain more information on the cause of the failure.final FineTuningJob.Builder
fineTunedModel(String fineTunedModel)
The name of the fine-tuned model that is being created. final FineTuningJob.Builder
fineTunedModel(Optional<String> fineTunedModel)
The name of the fine-tuned model that is being created. final FineTuningJob.Builder
fineTunedModel(JsonField<String> fineTunedModel)
The name of the fine-tuned model that is being created. final FineTuningJob.Builder
finishedAt(Long finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.Builder
finishedAt(Long finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.Builder
finishedAt(Optional<Long> finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.Builder
finishedAt(JsonField<Long> finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.Builder
hyperparameters(FineTuningJob.Hyperparameters hyperparameters)
The hyperparameters used for the fine-tuning job. final FineTuningJob.Builder
hyperparameters(JsonField<FineTuningJob.Hyperparameters> hyperparameters)
The hyperparameters used for the fine-tuning job. final FineTuningJob.Builder
model(String model)
The base model that is being fine-tuned. final FineTuningJob.Builder
model(JsonField<String> model)
The base model that is being fine-tuned. final FineTuningJob.Builder
object_(JsonValue object_)
The object type, which is always "fine_tuning.job". final FineTuningJob.Builder
organizationId(String organizationId)
The organization that owns the fine-tuning job. final FineTuningJob.Builder
organizationId(JsonField<String> organizationId)
The organization that owns the fine-tuning job. final FineTuningJob.Builder
resultFiles(List<String> resultFiles)
The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.Builder
resultFiles(JsonField<List<String>> resultFiles)
The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.Builder
addResultFile(String resultFile)
The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.Builder
seed(Long seed)
The seed used for the fine-tuning job. final FineTuningJob.Builder
seed(JsonField<Long> seed)
The seed used for the fine-tuning job. final FineTuningJob.Builder
status(FineTuningJob.Status status)
The current status of the fine-tuning job, which can be either validating_files
,queued
,running
,succeeded
,failed
, orcancelled
.final FineTuningJob.Builder
status(JsonField<FineTuningJob.Status> status)
The current status of the fine-tuning job, which can be either validating_files
,queued
,running
,succeeded
,failed
, orcancelled
.final FineTuningJob.Builder
trainedTokens(Long trainedTokens)
The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.Builder
trainedTokens(Long trainedTokens)
The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.Builder
trainedTokens(Optional<Long> trainedTokens)
The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.Builder
trainedTokens(JsonField<Long> trainedTokens)
The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.Builder
trainingFile(String trainingFile)
The file ID used for training. final FineTuningJob.Builder
trainingFile(JsonField<String> trainingFile)
The file ID used for training. final FineTuningJob.Builder
validationFile(String validationFile)
The file ID used for validation. final FineTuningJob.Builder
validationFile(Optional<String> validationFile)
The file ID used for validation. final FineTuningJob.Builder
validationFile(JsonField<String> validationFile)
The file ID used for validation. final FineTuningJob.Builder
estimatedFinish(Long estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.Builder
estimatedFinish(Long estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.Builder
estimatedFinish(Optional<Long> estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.Builder
estimatedFinish(JsonField<Long> estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.Builder
integrations(List<FineTuningJobWandbIntegrationObject> integrations)
A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builder
integrations(Optional<List<FineTuningJobWandbIntegrationObject>> integrations)
A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builder
integrations(JsonField<List<FineTuningJobWandbIntegrationObject>> integrations)
A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builder
addIntegration(FineTuningJobWandbIntegrationObject integration)
A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builder
method(FineTuningJob.Method method)
The method used for fine-tuning. final FineTuningJob.Builder
method(JsonField<FineTuningJob.Method> method)
The method used for fine-tuning. final FineTuningJob.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final FineTuningJob.Builder
putAdditionalProperty(String key, JsonValue value)
final FineTuningJob.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final FineTuningJob.Builder
removeAdditionalProperty(String key)
final FineTuningJob.Builder
removeAllAdditionalProperties(Set<String> keys)
final FineTuningJob
build()
-
-
Method Detail
-
id
final FineTuningJob.Builder id(String id)
The object identifier, which can be referenced in the API endpoints.
-
id
final FineTuningJob.Builder id(JsonField<String> id)
The object identifier, which can be referenced in the API endpoints.
-
createdAt
final FineTuningJob.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the fine-tuning job was created.
-
createdAt
final FineTuningJob.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the fine-tuning job was created.
-
error
final FineTuningJob.Builder error(FineTuningJob.Error error)
For fine-tuning jobs that have
failed
, this will contain more information on the cause of the failure.
-
error
final FineTuningJob.Builder error(Optional<FineTuningJob.Error> error)
For fine-tuning jobs that have
failed
, this will contain more information on the cause of the failure.
-
error
final FineTuningJob.Builder error(JsonField<FineTuningJob.Error> error)
For fine-tuning jobs that have
failed
, this will contain more information on the cause of the failure.
-
fineTunedModel
final FineTuningJob.Builder fineTunedModel(String fineTunedModel)
The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
-
fineTunedModel
final FineTuningJob.Builder fineTunedModel(Optional<String> fineTunedModel)
The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
-
fineTunedModel
final FineTuningJob.Builder fineTunedModel(JsonField<String> fineTunedModel)
The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
-
finishedAt
final FineTuningJob.Builder finishedAt(Long finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
-
finishedAt
final FineTuningJob.Builder finishedAt(Long finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
-
finishedAt
final FineTuningJob.Builder finishedAt(Optional<Long> finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
-
finishedAt
final FineTuningJob.Builder finishedAt(JsonField<Long> finishedAt)
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
-
hyperparameters
final FineTuningJob.Builder hyperparameters(FineTuningJob.Hyperparameters hyperparameters)
The hyperparameters used for the fine-tuning job. This value will only be returned when running
supervised
jobs.
-
hyperparameters
final FineTuningJob.Builder hyperparameters(JsonField<FineTuningJob.Hyperparameters> hyperparameters)
The hyperparameters used for the fine-tuning job. This value will only be returned when running
supervised
jobs.
-
model
final FineTuningJob.Builder model(String model)
The base model that is being fine-tuned.
-
model
final FineTuningJob.Builder model(JsonField<String> model)
The base model that is being fine-tuned.
-
object_
final FineTuningJob.Builder object_(JsonValue object_)
The object type, which is always "fine_tuning.job".
-
organizationId
final FineTuningJob.Builder organizationId(String organizationId)
The organization that owns the fine-tuning job.
-
organizationId
final FineTuningJob.Builder organizationId(JsonField<String> organizationId)
The organization that owns the fine-tuning job.
-
resultFiles
final FineTuningJob.Builder resultFiles(List<String> resultFiles)
The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.
-
resultFiles
final FineTuningJob.Builder resultFiles(JsonField<List<String>> resultFiles)
The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.
-
addResultFile
final FineTuningJob.Builder addResultFile(String resultFile)
The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.
-
seed
final FineTuningJob.Builder seed(Long seed)
The seed used for the fine-tuning job.
-
seed
final FineTuningJob.Builder seed(JsonField<Long> seed)
The seed used for the fine-tuning job.
-
status
final FineTuningJob.Builder status(FineTuningJob.Status status)
The current status of the fine-tuning job, which can be either
validating_files
,queued
,running
,succeeded
,failed
, orcancelled
.
-
status
final FineTuningJob.Builder status(JsonField<FineTuningJob.Status> status)
The current status of the fine-tuning job, which can be either
validating_files
,queued
,running
,succeeded
,failed
, orcancelled
.
-
trainedTokens
final FineTuningJob.Builder trainedTokens(Long trainedTokens)
The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
-
trainedTokens
final FineTuningJob.Builder trainedTokens(Long trainedTokens)
The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
-
trainedTokens
final FineTuningJob.Builder trainedTokens(Optional<Long> trainedTokens)
The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
-
trainedTokens
final FineTuningJob.Builder trainedTokens(JsonField<Long> trainedTokens)
The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
-
trainingFile
final FineTuningJob.Builder trainingFile(String trainingFile)
The file ID used for training. You can retrieve the training data with the Files API.
-
trainingFile
final FineTuningJob.Builder trainingFile(JsonField<String> trainingFile)
The file ID used for training. You can retrieve the training data with the Files API.
-
validationFile
final FineTuningJob.Builder validationFile(String validationFile)
The file ID used for validation. You can retrieve the validation results with the Files API.
-
validationFile
final FineTuningJob.Builder validationFile(Optional<String> validationFile)
The file ID used for validation. You can retrieve the validation results with the Files API.
-
validationFile
final FineTuningJob.Builder validationFile(JsonField<String> validationFile)
The file ID used for validation. You can retrieve the validation results with the Files API.
-
estimatedFinish
final FineTuningJob.Builder estimatedFinish(Long estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
-
estimatedFinish
final FineTuningJob.Builder estimatedFinish(Long estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
-
estimatedFinish
final FineTuningJob.Builder estimatedFinish(Optional<Long> estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
-
estimatedFinish
final FineTuningJob.Builder estimatedFinish(JsonField<Long> estimatedFinish)
The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.
-
integrations
final FineTuningJob.Builder integrations(List<FineTuningJobWandbIntegrationObject> integrations)
A list of integrations to enable for this fine-tuning job.
-
integrations
final FineTuningJob.Builder integrations(Optional<List<FineTuningJobWandbIntegrationObject>> integrations)
A list of integrations to enable for this fine-tuning job.
-
integrations
final FineTuningJob.Builder integrations(JsonField<List<FineTuningJobWandbIntegrationObject>> integrations)
A list of integrations to enable for this fine-tuning job.
-
addIntegration
final FineTuningJob.Builder addIntegration(FineTuningJobWandbIntegrationObject integration)
A list of integrations to enable for this fine-tuning job.
-
method
final FineTuningJob.Builder method(FineTuningJob.Method method)
The method used for fine-tuning.
-
method
final FineTuningJob.Builder method(JsonField<FineTuningJob.Method> method)
The method used for fine-tuning.
-
additionalProperties
final FineTuningJob.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FineTuningJob.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FineTuningJob.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FineTuningJob.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FineTuningJob.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FineTuningJob build()
-
-
-
-