ModelIdentifier dataclass and a catalog of pre-defined model IDs.
ModelIdentifier is a frozen dataclass that groups the platform-specific name
variants for a model (HuggingFace, Ollama, WatsonX, MLX, OpenAI, Bedrock) so that
a single constant can be passed to any backend without manual string translation.
The module also ships a curated catalog of ready-to-use constants for popular
open-weight models including IBM Granite 4, Meta Llama 4, Mistral, and Qwen families.
Classes
CLASS ModelIdentifier
The ModelIdentifier class wraps around model identification strings.
Args:
hf_model_name: HuggingFace Hub model repository ID (e.g."ibm-granite/granite-3.3-8b-instruct").ollama_name: Ollama model tag (e.g."granite3.3\:8b").watsonx_name: WatsonX AI model ID (e.g."ibm/granite-3-2b-instruct").mlx_name: MLX model identifier for Apple Silicon inference.openai_name: OpenAI API model name (e.g."gpt-5.1").bedrock_name: AWS Bedrock model ID (e.g."openai.gpt-oss-20b").hf_tokenizer_name: HuggingFace tokenizer ID; defaults tohf_model_nameifNone.