Tinkex.Types.ParsedCheckpointTinkerPath (Tinkex v0.3.4)

View Source

Parsed representation of a checkpoint tinker path.

Provides a reusable parser with consistent validation for CLI and REST helpers.

Summary

Functions

Convert the parsed checkpoint to the REST path segment (weights/<id> etc.).

Parse a tinker path into its components.

Types

checkpoint_type()

@type checkpoint_type() :: String.t()

t()

@type t() :: %Tinkex.Types.ParsedCheckpointTinkerPath{
  checkpoint_id: String.t(),
  checkpoint_type: checkpoint_type(),
  tinker_path: String.t(),
  training_run_id: String.t()
}

Functions

checkpoint_segment(parsed)

@spec checkpoint_segment(t()) :: String.t()

Convert the parsed checkpoint to the REST path segment (weights/<id> etc.).

from_tinker_path(tinker_path)

@spec from_tinker_path(String.t()) :: {:ok, t()} | {:error, Tinkex.Error.t()}

Parse a tinker path into its components.