tinker_cookbook.model_info.get_model_attributes
tinker_cookbook.model_info.get_model_attributes(model_name)
Get model metadata by name.
Parameters:
- model_name (str) – HuggingFace model identifier (e.g.
"meta-llama/Llama-3.1-8B"). An optional:checkpointsuffix is stripped before lookup.
Returns: A ModelAttributes instance with organization, size, and renderer info.
Raises:
- ConfigurationError: If the model organization is unknown.
- KeyError: If the model version is not found within its organization.