pub struct FineTuning<'c, C: Config> { /* private fields */ }
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 job that fine-tunes a specified 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 job that fine-tunes a specified 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 job that fine-tunes a specified 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<Q>(
&self,
query: &Q,
) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
pub async fn list_paginated<Q>( &self, query: &Q, ) -> Result<ListPaginatedFineTuningJobsResponse, OpenAIError>
List your organization’s fine-tuning jobs List your organization’s fine-tuning jobs
Sourcepub async fn list_paginated_byot<T0: Serialize, R: DeserializeOwned>(
&self,
query: T0,
) -> Result<R, OpenAIError>
pub async fn list_paginated_byot<T0: Serialize, R: DeserializeOwned>( &self, query: T0, ) -> 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>
Gets info about the fine-tune job.
Learn more about Fine-tuning Gets info about the fine-tune 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>
Gets info about the fine-tune 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 list_events<Q>(
&self,
fine_tuning_job_id: &str,
query: &Q,
) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
pub async fn list_events<Q>( &self, fine_tuning_job_id: &str, query: &Q, ) -> Result<ListFineTuningJobEventsResponse, OpenAIError>
Get fine-grained status updates for a fine-tune job. Get fine-grained status updates for a fine-tune job.
Sourcepub async fn list_events_byot<T0: Display, T1: Serialize, R: DeserializeOwned>(
&self,
fine_tuning_job_id: T0,
query: T1,
) -> Result<R, OpenAIError>
pub async fn list_events_byot<T0: Display, T1: Serialize, R: DeserializeOwned>( &self, fine_tuning_job_id: T0, query: T1, ) -> Result<R, OpenAIError>
Get fine-grained status updates for a fine-tune job.