# tinker_cookbook.weights.generate_model_card *Generated from tinker-cookbook at commit [`4a3a282`](https://github.com/thinking-machines-lab/tinker-cookbook/tree/4a3a2829190b45999021e423bc90b7523108edf4). Source links point at that snapshot.* ### [**tinker_cookbook.weights.generate_model_card**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L46)(*config*, *repo_id*, *model_path*) Generate a HuggingFace model card from config. The returned `~huggingface_hub.ModelCard` can be previewed with `str(card)` or saved with `card.save("README.md")`. **Parameters:** - [**config**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L48) (*[ModelCardConfig](https://tinker-docs.thinkingmachines.ai/cookbook/api-reference/weights/modelcardconfig/index.md)*) – Model card metadata. - [**repo_id**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L49) (*str | None*) – HuggingFace repo ID (e.g. `"user/my-model"`). Used for the card title and usage snippet. If `None`, a generic title is used. - [**model_path**](https://github.com/thinking-machines-lab/tinker-cookbook/blob/4a3a2829190b45999021e423bc90b7523108edf4/tinker_cookbook/weights/_model_card.py#L50) (*str | None*) – Local path to the model directory. If provided, auto-detects whether the output is a LoRA adapter (by checking for `adapter_config.json`) or a merged model, and adjusts the card content accordingly. **Returns:** A `~huggingface_hub.ModelCard` with YAML frontmatter and markdown body.