Thinking Machines Lab
App · 12 actions
Work with Tinker training runs, sessions, samplers and model checkpoints.
Actions
| Action | What it does |
|---|---|
| Assign session to project | Assign session to project. |
| Delete checkpoint | Delete checkpoint. |
| Get checkpoint model details | Get checkpoint model details. |
| Get sampler | Get sampler. |
| Get session | Get session. |
| Get training run | Get training run. |
| List sessions | List sessions. |
| List supported base models | List supported base models. |
| List training run checkpoints | List training run checkpoints. |
| List training runs | List training runs. |
| List your checkpoints | List your checkpoints. |
| Set checkpoint lifetime | Set checkpoint lifetime. |
Assign session to project
Assign session to project.
Inputs
- Session
session_idtextRequired - Session ID.
- Project ID
project_idtextRequired - Project ID.
Outputs
dataobject- Result.
Example output
{
"data": {}
}Delete checkpoint
Delete checkpoint.
Inputs
- Training run
training_run_idtextRequired - Training run ID.
- Checkpoint
checkpoint_idtextRequired - Checkpoint ID from List training run checkpoints.
Outputs
dataobject- Result.
Example output
{
"data": {}
}Get checkpoint model details
Get checkpoint model details.
Inputs
- Tinker path
tinker_pathtextRequired - Tinker path returned by the checkpoint listing.
Outputs
dataobject- Result.
Example output
{
"data": {
"base_model": "example",
"is_lora": false,
"lora_rank": 1,
"optimizer_config": {}
}
}Get sampler
Get sampler.
Inputs
- Sampler ID
sampler_idtextRequired - Sampler ID.
- Access scope
access_scopetext - Show your own resources or every resource you can access.One of:
owned,accessible.
Outputs
dataobject- Result.
Example output
{
"data": {
"base_model": "example",
"model_path": "example",
"sampler_id": "example"
}
}Get session
Get session.
Inputs
- Session
session_idtextRequired - Session ID.
- Access scope
access_scopetext - Show your own resources or every resource you can access.One of:
owned,accessible.
Outputs
dataobject- Result.
Example output
{
"data": {
"display_name": "example",
"sampler_ids": [],
"training_run_ids": [],
"user_metadata": {}
}
}Get training run
Get training run.
Inputs
- Training run
training_run_idtextRequired - Training run ID.
- Access scope
access_scopetext - Show your own resources or every resource you can access.One of:
owned,accessible.
Outputs
dataobject- Item.
Example output
{
"data": {
"base_model": "example",
"corrupted": false,
"is_lora": false,
"last_checkpoint": {
"base_model": "example",
"checkpoint_id": "example",
"checkpoint_type": "example",
"expires_at": "example",
"public": false,
"size_bytes": 1,
"time": "example",
"tinker_path": "example"
},
"last_request_time": "example",
"last_sampler_checkpoint": {
"base_model": "example",
"checkpoint_id": "example",
"checkpoint_type": "example",
"expires_at": "example",
"public": false,
"size_bytes": 1,
"time": "example",
"tinker_path": "example"
},
"lora_rank": 1,
"model_owner": "example",
"training_run_id": "example",
"user_metadata": {}
}
}List sessions
List sessions.
Inputs
- Limit
limitnumber - Number of records in a page.At least 1.
- Offset
offsetnumber - Number of records to skip.At least 0.
- Access scope
access_scopetext - Show your own resources or every resource you can access.One of:
owned,accessible.
Outputs
dataobject- Result.
Example output
{
"data": {
"sessions": []
}
}List supported base models
List supported base models.
Inputs
None.
Outputs
dataobject- Result.
Example output
{
"data": {
"supported_models": []
}
}List training run checkpoints
List training run checkpoints.
Inputs
- Training run
training_run_idtextRequired - Training run ID.
Outputs
dataobject- Result.
Example output
{
"data": {
"checkpoints": []
}
}List training runs
List training runs.
Inputs
- Limit
limitnumber - Number of records in a page.At least 1.
- Offset
offsetnumber - Number of records to skip.At least 0.
- Access scope
access_scopetext - Show your own resources or every resource you can access.One of:
owned,accessible. - Project ID
project_idtext - Project ID.
Outputs
dataobject- Result.
Example output
{
"data": {
"cursor": {
"limit": 1,
"offset": 1,
"total_count": 1
},
"training_runs": []
}
}List your checkpoints
List your checkpoints.
Inputs
- Limit
limitnumber - Number of records in a page.At least 1.
- Offset
offsetnumber - Number of records to skip.At least 0.
Outputs
dataobject- Result.
Example output
{
"data": {
"checkpoints": [],
"cursor": {
"limit": 1,
"offset": 1,
"total_count": 1
}
}
}Set checkpoint lifetime
Set checkpoint lifetime.
Inputs
- Training run
training_run_idtextRequired - Training run ID.
- Checkpoint
checkpoint_idtextRequired - Checkpoint ID from List training run checkpoints.
- TTL seconds
ttl_secondsnumberRequired - Seconds from now before the checkpoint expires.From 3600 to 315360000.
Outputs
dataobject- Result.
Example output
{
"data": {}
}