# tinker_cookbook.scripts.merge_tinker_adapter_to_hf_model [Source on GitHub](https://github.com/thinking-machines-lab/tinker-cookbook/blob/main/tinker_cookbook/scripts/merge_tinker_adapter_to_hf_model.py) Merge Tinker adapter weights to a HuggingFace model, and save the new model to a given path. Please refer to the following documentation for how to download a Tinker sampler adapter weights: https://tinker-docs.thinkingmachines.ai/download-weights Usage: python merge_tinker_adapter_to_hf_model.py --hf-model --tinker-adapter-path --output-path NOTE: This script is a thin CLI wrapper around tinker_cookbook.weights.build_hf_model(). For programmatic use, prefer importing from tinker_cookbook.weights directly.