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:Mistralai Client python FineTuningJobs Start Cancel

From Leeroopedia
Revision as of 13:15, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Mistralai_Client_python_FineTuningJobs_Start_Cancel.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains Fine_Tuning, Job_Management
Last Updated 2026-02-15 14:00 GMT

Overview

Concrete tool for starting queued and cancelling active fine-tuning jobs provided by the FineTuningJobs resource.

Description

FineTuningJobs.start() transitions a queued fine-tuning job to the running state. FineTuningJobs.cancel() requests cancellation of an active job. Both methods accept a job_id and return the updated job status.

Usage

Call client.fine_tuning.jobs.start(job_id=...) to begin training, or client.fine_tuning.jobs.cancel(job_id=...) to abort.

Code Reference

Source Location

  • Repository: client-python
  • File: src/mistralai/client/fine_tuning_jobs.py
  • Lines: L897-981 (start sync), L983-1067 (start async), L725-809 (cancel sync), L811-895 (cancel async)

Signature

class FineTuningJobs:
    def start(self, *, job_id: str) -> JobsAPIRoutesFineTuningStartFineTuningJobResponse: ...
    async def start_async(self, *, job_id: str) -> JobsAPIRoutesFineTuningStartFineTuningJobResponse: ...
    def cancel(self, *, job_id: str) -> JobsAPIRoutesFineTuningCancelFineTuningJobResponse: ...
    async def cancel_async(self, *, job_id: str) -> JobsAPIRoutesFineTuningCancelFineTuningJobResponse: ...

Import

from mistralai import Mistral
# Access via: client.fine_tuning.jobs.start(...) or client.fine_tuning.jobs.cancel(...)

I/O Contract

Inputs

Name Type Required Description
job_id str Yes Fine-tuning job UUID

Outputs

Name Type Description
response Response Updated job status

Usage Examples

Start and Cancel Jobs

from mistralai import Mistral

client = Mistral(api_key="your-key")

# Start a queued job
client.fine_tuning.jobs.start(job_id="job-abc123")

# Cancel a running job
client.fine_tuning.jobs.cancel(job_id="job-abc123")

Related Pages

Implements Principle

Requires Environment

Uses Heuristic

Page Connections

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