Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Cohere ai Cohere python FinetuningClient Create

From Leeroopedia
Field Value
Type Implementation
Source Cohere Python SDK
Domain Fine-tuning Model Training Job Submission
Last Updated 2026-02-15
Implements Principle:Cohere_ai_Cohere_python_Finetuned_Model_Creation

Overview

Concrete method for submitting fine-tuning jobs to Cohere's training API.

Description

FinetuningClient.create_finetuned_model() accepts a FinetunedModel request object and submits it to the fine-tuning API. Returns a CreateFinetunedModelResponse containing the created model with its ID and initial status.

Code Reference

src/cohere/finetuning/client.py Lines L93-133

Signature

def create_finetuned_model(
    self,
    *,
    request: FinetunedModel,
    request_options: typing.Optional[RequestOptions] = None,
) -> CreateFinetunedModelResponse:

Import

Access via client.finetuning.create_finetuned_model()

Inputs

Parameter Type Required Description
request FinetunedModel Yes The fine-tuning configuration from the previous step

Outputs

CreateFinetunedModelResponse with finetuned_model (containing id, name, status).

Example

response = client.finetuning.create_finetuned_model(request=model_config)
model_id = response.finetuned_model.id
print(f"Fine-tuning started: {model_id}, status: {response.finetuned_model.status}")

Related

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment