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.Builderid(String id)The object identifier, which can be referenced in the API endpoints. final FineTuningJob.Builderid(JsonField<String> id)The object identifier, which can be referenced in the API endpoints. final FineTuningJob.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) for when the fine-tuning job was created. final FineTuningJob.BuildercreatedAt(JsonField<Long> createdAt)The Unix timestamp (in seconds) for when the fine-tuning job was created. final FineTuningJob.Buildererror(FineTuningJob.Error error)For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.final FineTuningJob.Buildererror(Optional<FineTuningJob.Error> error)For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.final FineTuningJob.Buildererror(JsonField<FineTuningJob.Error> error)For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.final FineTuningJob.BuilderfineTunedModel(String fineTunedModel)The name of the fine-tuned model that is being created. final FineTuningJob.BuilderfineTunedModel(Optional<String> fineTunedModel)The name of the fine-tuned model that is being created. final FineTuningJob.BuilderfineTunedModel(JsonField<String> fineTunedModel)The name of the fine-tuned model that is being created. final FineTuningJob.BuilderfinishedAt(Long finishedAt)The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.BuilderfinishedAt(Long finishedAt)The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.BuilderfinishedAt(Optional<Long> finishedAt)The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.BuilderfinishedAt(JsonField<Long> finishedAt)The Unix timestamp (in seconds) for when the fine-tuning job was finished. final FineTuningJob.Builderhyperparameters(FineTuningJob.Hyperparameters hyperparameters)The hyperparameters used for the fine-tuning job. final FineTuningJob.Builderhyperparameters(JsonField<FineTuningJob.Hyperparameters> hyperparameters)The hyperparameters used for the fine-tuning job. final FineTuningJob.Buildermodel(String model)The base model that is being fine-tuned. final FineTuningJob.Buildermodel(JsonField<String> model)The base model that is being fine-tuned. final FineTuningJob.Builderobject_(JsonValue object_)The object type, which is always "fine_tuning.job". final FineTuningJob.BuilderorganizationId(String organizationId)The organization that owns the fine-tuning job. final FineTuningJob.BuilderorganizationId(JsonField<String> organizationId)The organization that owns the fine-tuning job. final FineTuningJob.BuilderresultFiles(List<String> resultFiles)The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.BuilderresultFiles(JsonField<List<String>> resultFiles)The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.BuilderaddResultFile(String resultFile)The compiled results file ID(s) for the fine-tuning job. final FineTuningJob.Builderseed(Long seed)The seed used for the fine-tuning job. final FineTuningJob.Builderseed(JsonField<Long> seed)The seed used for the fine-tuning job. final FineTuningJob.Builderstatus(FineTuningJob.Status status)The current status of the fine-tuning job, which can be either validating_files,queued,running,succeeded,failed, orcancelled.final FineTuningJob.Builderstatus(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.BuildertrainedTokens(Long trainedTokens)The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.BuildertrainedTokens(Long trainedTokens)The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.BuildertrainedTokens(Optional<Long> trainedTokens)The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.BuildertrainedTokens(JsonField<Long> trainedTokens)The total number of billable tokens processed by this fine-tuning job. final FineTuningJob.BuildertrainingFile(String trainingFile)The file ID used for training. final FineTuningJob.BuildertrainingFile(JsonField<String> trainingFile)The file ID used for training. final FineTuningJob.BuildervalidationFile(String validationFile)The file ID used for validation. final FineTuningJob.BuildervalidationFile(Optional<String> validationFile)The file ID used for validation. final FineTuningJob.BuildervalidationFile(JsonField<String> validationFile)The file ID used for validation. final FineTuningJob.BuilderestimatedFinish(Long estimatedFinish)The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.BuilderestimatedFinish(Long estimatedFinish)The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.BuilderestimatedFinish(Optional<Long> estimatedFinish)The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.BuilderestimatedFinish(JsonField<Long> estimatedFinish)The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. final FineTuningJob.Builderintegrations(List<FineTuningJobWandbIntegrationObject> integrations)A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builderintegrations(Optional<List<FineTuningJobWandbIntegrationObject>> integrations)A list of integrations to enable for this fine-tuning job. final FineTuningJob.Builderintegrations(JsonField<List<FineTuningJobWandbIntegrationObject>> integrations)A list of integrations to enable for this fine-tuning job. final FineTuningJob.BuilderaddIntegration(FineTuningJobWandbIntegrationObject integration)A list of integrations to enable for this fine-tuning job. final FineTuningJob.Buildermethod(FineTuningJob.Method method)The method used for fine-tuning. final FineTuningJob.Buildermethod(JsonField<FineTuningJob.Method> method)The method used for fine-tuning. final FineTuningJob.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final FineTuningJob.BuilderputAdditionalProperty(String key, JsonValue value)final FineTuningJob.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final FineTuningJob.BuilderremoveAdditionalProperty(String key)final FineTuningJob.BuilderremoveAllAdditionalProperties(Set<String> keys)final FineTuningJobbuild()-
-
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
supervisedjobs.
-
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
supervisedjobs.
-
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()
-
-
-
-