get_model_attributes - Tinker Documentation
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.
from tinker_cookbook.model_info import get_model_attributes
attrs = get_model_attributes("Qwen/Qwen3-8B")
print(attrs.size_str, attrs.recommended_renderers)