Trainer status writeback
curl --request PUT \
--url https://api.example.com/api/finetune/jobs/{job_id}/status \
--header 'Authorization-PSK: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}
'import requests
url = "https://api.example.com/api/finetune/jobs/{job_id}/status"
payload = {
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}
headers = {
"Authorization-PSK": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Authorization-PSK': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mlflow_run_id: '<string>',
registered_model_name: '<string>',
model_version: '<string>',
error_message: '<string>'
})
};
fetch('https://api.example.com/api/finetune/jobs/{job_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/finetune/jobs/{job_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'mlflow_run_id' => '<string>',
'registered_model_name' => '<string>',
'model_version' => '<string>',
'error_message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization-PSK: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/finetune/jobs/{job_id}/status"
payload := strings.NewReader("{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization-PSK", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/finetune/jobs/{job_id}/status")
.header("Authorization-PSK", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/finetune/jobs/{job_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization-PSK"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"base_model": "<string>",
"owner": "<string>",
"adapter_type": "lora",
"status": "ready",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"hyperparameters": {},
"gpu_resources": {},
"rendered_dag": "<string>",
"airflow_dag_id": "<string>",
"airflow_dag_url": "<string>",
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}{
"error": "<string>",
"code": 500
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Training
Trainer status writeback
Called by the trainer pod at running / complete / failed.
PSK-authenticated to match the AutoML training DAG writeback endpoint.
PUT
/
api
/
finetune
/
jobs
/
{job_id}
/
status
Trainer status writeback
curl --request PUT \
--url https://api.example.com/api/finetune/jobs/{job_id}/status \
--header 'Authorization-PSK: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}
'import requests
url = "https://api.example.com/api/finetune/jobs/{job_id}/status"
payload = {
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}
headers = {
"Authorization-PSK": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Authorization-PSK': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
mlflow_run_id: '<string>',
registered_model_name: '<string>',
model_version: '<string>',
error_message: '<string>'
})
};
fetch('https://api.example.com/api/finetune/jobs/{job_id}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/finetune/jobs/{job_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'mlflow_run_id' => '<string>',
'registered_model_name' => '<string>',
'model_version' => '<string>',
'error_message' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization-PSK: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/finetune/jobs/{job_id}/status"
payload := strings.NewReader("{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization-PSK", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/finetune/jobs/{job_id}/status")
.header("Authorization-PSK", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/finetune/jobs/{job_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization-PSK"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mlflow_run_id\": \"<string>\",\n \"registered_model_name\": \"<string>\",\n \"model_version\": \"<string>\",\n \"error_message\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset_job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"base_model": "<string>",
"owner": "<string>",
"adapter_type": "lora",
"status": "ready",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"hyperparameters": {},
"gpu_resources": {},
"rendered_dag": "<string>",
"airflow_dag_id": "<string>",
"airflow_dag_url": "<string>",
"mlflow_run_id": "<string>",
"registered_model_name": "<string>",
"model_version": "<string>",
"error_message": "<string>"
}{
"error": "<string>",
"code": 500
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Path Parameters
Training job ID.
Body
application/json
Status writeback sent by the trainer pod (PSK-authenticated).
Response
Successful Response
Full state of a fine-tune training job.
Parameter-efficient fine-tuning method.
Available options:
lora, qlora Lifecycle of a fine-tune training job (mirrors the DB enum).
Available options:
ready, queued, running, complete, failed Was this page helpful?

