pub struct FineTuning<'c, C: Config> { /* private fields */ }finetuning only.Expand description
Manage fine-tuning jobs to tailor a model to your specific training data.
Related guide: Fine-tune models
Implementations§
Source§impl<'c, C: Config> FineTuning<'c, C>
impl<'c, C: Config> FineTuning<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub async fn create(
&self,
request: CreateFineTuningJobRequest,
) -> Result<FineTuningJob, OpenAIError>
pub async fn create( &self, request: CreateFineTuningJobRequest, ) -> Result<FineTuningJob, OpenAIError>
Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Learn more about fine-tuning Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Sourcepub async fn create_byot<T0: Serialize, R: DeserializeOwned>(
&self,
request: T0,
) -> Result<R, OpenAIError>
pub async fn create_byot<T0: Serialize, R: DeserializeOwned>( &self, request: T0, ) -> Result<R, OpenAIError>
Creates a fine-tuning job which begins the process of creating a new model from a given dataset.
Response includes details of the enqueued job including job status and the name of the fine-tuned models once complete.
Sourcepub async fn list_paginated(
&self,
) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
pub async fn list_paginated( &self, ) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
List your organization’s fine-tuning jobs List your organization’s fine-tuning jobs
Sourcepub async fn list_paginated_byot<R: DeserializeOwned>(
&self,
) -> Result<R, OpenAIError>
pub async fn list_paginated_byot<R: DeserializeOwned>( &self, ) -> Result<R, OpenAIError>
List your organization’s fine-tuning jobs
Sourcepub async fn retrieve(
&self,
fine_tuning_job_id: &str,
) -> Result<FineTuningJob, OpenAIError>
pub async fn retrieve( &self, fine_tuning_job_id: &str, ) -> Result<FineTuningJob, OpenAIError>
Get info about a fine-tuning job.
Learn more about fine-tuning Get info about a fine-tuning job.
Sourcepub async fn retrieve_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn retrieve_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
Get info about a fine-tuning job.
Sourcepub async fn cancel(
&self,
fine_tuning_job_id: &str,
) -> Result<FineTuningJob, OpenAIError>
pub async fn cancel( &self, fine_tuning_job_id: &str, ) -> Result<FineTuningJob, OpenAIError>
Immediately cancel a fine-tune job. Immediately cancel a fine-tune job.
Sourcepub async fn cancel_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn cancel_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
Immediately cancel a fine-tune job.
Sourcepub async fn pause(
&self,
fine_tuning_job_id: &str,
) -> Result<FineTuningJob, OpenAIError>
pub async fn pause( &self, fine_tuning_job_id: &str, ) -> Result<FineTuningJob, OpenAIError>
Pause a fine-tune job. Pause a fine-tune job.
Sourcepub async fn pause_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn pause_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
Pause a fine-tune job.
Sourcepub async fn resume(
&self,
fine_tuning_job_id: &str,
) -> Result<FineTuningJob, OpenAIError>
pub async fn resume( &self, fine_tuning_job_id: &str, ) -> Result<FineTuningJob, OpenAIError>
Resume a fine-tune job. Resume a fine-tune job.
Sourcepub async fn resume_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn resume_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
Resume a fine-tune job.
Sourcepub async fn list_events(
&self,
fine_tuning_job_id: &str,
) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
pub async fn list_events( &self, fine_tuning_job_id: &str, ) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
Get status updates for a fine-tuning job. Get status updates for a fine-tuning job.
Sourcepub async fn list_events_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn list_events_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
Get status updates for a fine-tuning job.
Sourcepub async fn list_checkpoints(
&self,
fine_tuning_job_id: &str,
) -> Result<ListFineTuningJobCheckpointsResponse, OpenAIError>
pub async fn list_checkpoints( &self, fine_tuning_job_id: &str, ) -> Result<ListFineTuningJobCheckpointsResponse, OpenAIError>
List checkpoints for a fine-tuning job. List checkpoints for a fine-tuning job.
Sourcepub async fn list_checkpoints_byot<T0: Display, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
) -> Result<R, OpenAIError>
pub async fn list_checkpoints_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, ) -> Result<R, OpenAIError>
List checkpoints for a fine-tuning job.
pub async fn create_checkpoint_permissions( &self, fine_tuned_model_checkpoint: &str, request: CreateFineTuningCheckpointPermissionRequest, ) -> Result<ListFineTuningCheckpointPermissionResponse, OpenAIError>
pub async fn create_checkpoint_permissions_byot<T0: Display, T1: Serialize, R: DeserializeOwned>( &self, fine_tuned_model_checkpoint: T0, request: T1, ) -> Result<R, OpenAIError>
pub async fn list_checkpoint_permissions( &self, fine_tuned_model_checkpoint: &str, ) -> Result<ListFineTuningCheckpointPermissionResponse, OpenAIError>
pub async fn list_checkpoint_permissions_byot<T0: Display, R: DeserializeOwned>( &self, fine_tuned_model_checkpoint: T0, ) -> Result<R, OpenAIError>
pub async fn delete_checkpoint_permissions( &self, fine_tuned_model_checkpoint: &str, permission_id: &str, ) -> Result<DeleteFineTuningCheckpointPermissionResponse, OpenAIError>
pub async fn delete_checkpoint_permissions_byot<T0: Display, T1: Display, R: DeserializeOwned>( &self, fine_tuned_model_checkpoint: T0, permission_id: T1, ) -> Result<R, OpenAIError>
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for FineTuning<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for FineTuning<'c, C>
_api only.