Thinking Machines Lab

App · 12 actions

Work with Tinker training runs, sessions, samplers and model checkpoints.

Actions

ActionWhat it does
Assign session to projectAssign session to project.
Delete checkpointDelete checkpoint.
Get checkpoint model detailsGet checkpoint model details.
Get samplerGet sampler.
Get sessionGet session.
Get training runGet training run.
List sessionsList sessions.
List supported base modelsList supported base models.
List training run checkpointsList training run checkpoints.
List training runsList training runs.
List your checkpointsList your checkpoints.
Set checkpoint lifetimeSet checkpoint lifetime.

Assign session to project

Assign session to project.

Inputs

Sessionsession_idtextRequired
Session ID.
Project IDproject_idtextRequired
Project ID.

Outputs

dataobject
Result.
Example output
{
  "data": {}
}

Delete checkpoint

Delete checkpoint.

Inputs

Training runtraining_run_idtextRequired
Training run ID.
Checkpointcheckpoint_idtextRequired
Checkpoint ID from List training run checkpoints.

Outputs

dataobject
Result.
Example output
{
  "data": {}
}

Get checkpoint model details

Get checkpoint model details.

Inputs

Tinker pathtinker_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 IDsampler_idtextRequired
Sampler ID.
Access scopeaccess_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

Sessionsession_idtextRequired
Session ID.
Access scopeaccess_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 runtraining_run_idtextRequired
Training run ID.
Access scopeaccess_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

Limitlimitnumber
Number of records in a page.At least 1.
Offsetoffsetnumber
Number of records to skip.At least 0.
Access scopeaccess_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 runtraining_run_idtextRequired
Training run ID.

Outputs

dataobject
Result.
Example output
{
  "data": {
    "checkpoints": []
  }
}

List training runs

List training runs.

Inputs

Limitlimitnumber
Number of records in a page.At least 1.
Offsetoffsetnumber
Number of records to skip.At least 0.
Access scopeaccess_scopetext
Show your own resources or every resource you can access.One of: owned, accessible.
Project IDproject_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

Limitlimitnumber
Number of records in a page.At least 1.
Offsetoffsetnumber
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 runtraining_run_idtextRequired
Training run ID.
Checkpointcheckpoint_idtextRequired
Checkpoint ID from List training run checkpoints.
TTL secondsttl_secondsnumberRequired
Seconds from now before the checkpoint expires.From 3600 to 315360000.

Outputs

dataobject
Result.
Example output
{
  "data": {}
}

On this page