CrucibleIR.ModelRef (CrucibleIR v0.2.1)
View SourceReference to a registered model in the model registry.
A ModelRef identifies a specific model that can be used for training,
evaluation, or deployment. It supports multiple providers and frameworks.
Fields
:id- Model identifier (required):name- Human-readable model name:version- Semantic version string:provider- Model source/provider:framework- ML framework:architecture- Model architecture type:task- ML task type:artifact_uri- Path to model artifacts:metadata- Additional metadata:options- Provider-specific options
Examples
iex> ref = %CrucibleIR.ModelRef{id: :gpt2_base, provider: :huggingface}
iex> ref.provider
:huggingface
Summary
Types
@type architecture() :: :transformer | :lstm | :cnn | :mlp | atom()
@type framework() :: :nx | :pytorch | :tensorflow | :onnx | :safetensors | atom()
@type provider() :: :local | :huggingface | :openai | :anthropic | :s3 | :gcs | atom()
@type task() :: :text_classification | :text_generation | :embedding | :qa | :summarization | atom()