Package-level declarations

Types

Link copied to clipboard
@Serializable
data class FineTune(val id: FineTuneId, val model: ModelId, val createdAt: Long, val events: List<FineTuneEvent>? = null, val fineTunedModel: ModelId? = null, val hyperParams: HyperParams? = null, val organizationId: String?, val resultFiles: List<File>, val status: Status, val validationFiles: List<File>, val trainingFiles: List<File>, val updatedAt: Long)

Fine-tune of a specified model from a given dataset

Link copied to clipboard
@Serializable
data class FineTuneEvent(val createdAt: Long, val level: String, val message: String)

Fine tune event.

Link copied to clipboard
@Serializable
value class FineTuneId(val id: String)
Link copied to clipboard
@Serializable
data class FineTuneRequest(val trainingFile: FileId, val validationFile: FileId? = null, val model: ModelId? = null, val nEpochs: Int? = null, val batchSize: Int? = null, val learningRateMultiplier: Double? = null, val promptLossWeight: Double? = null, val computeClassificationMetrics: Boolean? = null, val classificationNClasses: Int? = null, val classificationPositiveClass: String? = null, val classificationBetas: List<Double>? = null, val suffix: String? = null)

Create a Fine-Tune request.

Link copied to clipboard

Builder of FineTuneRequest instances.

Link copied to clipboard
@Serializable
data class HyperParams(val batchSize: Int? = null, val learningRateMultiplier: Double? = null, val nEpochs: Long, val promptLossWeight: Double, val computeClassificationMetrics: Boolean? = null, val classificationNClasses: Int? = null, val classificationPositiveClass: String? = null)

Fine-Tune hyper parameters.

Functions

Link copied to clipboard

Create a Fine-Tune request.