# tinker_cookbook.weights.ModelCardConfig *Generated from tinker-cookbook at commit [`4a3a282`](https://github.com/thinking-machines-lab/tinker-cookbook/tree/4a3a2829190b45999021e423bc90b7523108edf4). Source links point at that snapshot.* ## *class* [**tinker_cookbook.weights.ModelCardConfig**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L12)() Configuration for auto-generating a HuggingFace model card. Contains only standard HuggingFace metadata fields. List fields default to empty (omitted from the card when empty). Additional tags are appended to the auto-generated defaults (`tinker`, `tinker-cookbook`, and `peft`/`lora` for adapters). ```python config = ModelCardConfig( base_model="Qwen/Qwen3-8B", datasets=["my-org/my-dataset"], tags=["sft"], license="apache-2.0", ) ``` **Fields:** - [**base_model**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L30) (*str*) – HuggingFace model ID used as the base (e.g. `"Qwen/Qwen3-8B"`). - [**datasets**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L33) (*list[str]*, default: `field(default_factory=list)`) – HuggingFace dataset IDs used for training. - [**tags**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L36) (*list[str]*, default: `field(default_factory=list)`) – Additional tags to include (appended to auto-generated defaults). - [**license**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L39) (*str | None*, default: `None`) – SPDX license identifier (e.g. `"apache-2.0"`). - [**language**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L42) (*list[str]*, default: `field(default_factory=list)`) – Language codes (e.g. `["en"]`). ## Referenced by - [tinker_cookbook.weights.generate_model_card](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/weights/generate_model_card/index.md) - [tinker_cookbook.weights.publish_to_hf_hub](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/weights/publish_to_hf_hub/index.md)