Tinkex.API.Weights (Tinkex v0.3.1)

View Source

Weight management endpoints.

Uses :training pool for weight operations.

Summary

Functions

Load model weights.

Load model weights with a typed response.

Save model weights.

Save weights for sampler.

Save weights for sampler with typed response.

Save model weights with a typed response.

Functions

load_weights(request, opts)

@spec load_weights(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}

Load model weights.

load_weights_typed(request, opts)

@spec load_weights_typed(
  map(),
  keyword()
) :: {:ok, Tinkex.Types.LoadWeightsResponse.t()} | {:error, Tinkex.Error.t()}

Load model weights with a typed response.

save_weights(request, opts)

@spec save_weights(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}

Save model weights.

save_weights_for_sampler(request, opts)

@spec save_weights_for_sampler(
  map(),
  keyword()
) :: {:ok, map()} | {:error, Tinkex.Error.t()}

Save weights for sampler.

save_weights_for_sampler_typed(request, opts)

@spec save_weights_for_sampler_typed(
  map(),
  keyword()
) ::
  {:ok, Tinkex.Types.SaveWeightsForSamplerResponse.t()}
  | {:error, Tinkex.Error.t()}

Save weights for sampler with typed response.

save_weights_typed(request, opts)

@spec save_weights_typed(
  map(),
  keyword()
) :: {:ok, Tinkex.Types.SaveWeightsResponse.t()} | {:error, Tinkex.Error.t()}

Save model weights with a typed response.