BB.Inference.LoadedModel (bb_inference v0.1.0)

Copy Markdown View Source

A model that has loaded and whose codec fits it, as BB.Inference.loaded_model/2 returns it.

Everything a component needs to run inference through BB.Inference.infer/4. It holds no runtime handle; the model itself stays in its own process.

Summary

Types

t()

@type t() :: %BB.Inference.LoadedModel{
  codec: module(),
  codec_state: term(),
  description: BB.Inference.Description.t(),
  labels: [String.t()],
  name: atom()
}