weights

Downloads, merges LoRA adapters, and publishes models to HuggingFace Hub.

4.0k|507|Updated Jul 14, 2025
One-click install
npx skills add https://github.com/thinking-machines-lab/tinker-cookbook --skill weights
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weights
Source: https://github.com/thinking-machines-lab/tinker-cookbook/tree/main/.claude/skills/weights
Command: npx skills add https://github.com/thinking-machines-lab/tinker-cookbook --skill weights

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fine-tuned model workflows often require moving weights between systems, merging adapters, and publishing finished models. This Skill standardizes and automates those steps to reduce manual overhead and errors.

Core Features & Use Cases

  • Download trained adapters from Tinker and store them locally.
  • Merge LoRA adapters into base HuggingFace models for deployable artifacts.
  • Publish trained models to HuggingFace Hub for sharing or production use.

Quick Start

Download a LoRA adapter, merge it into a base model, and publish the final model to HuggingFace.

Frequently Asked Questions about weights

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I merge LoRA adapters into a base model for deployment?

To merge LoRA adapters into a base model, the weights Skill uses the build_hf_model function. It takes adapter_path inputs and a base_model selection to combine them into a deployable HuggingFace artifact.

How do I download trained adapters from Tinker?

Downloading trained adapters from Tinker is handled by the weights Skill's download function. It automates retrieving the trained LoRA adapter files from Tinker and stores them locally for subsequent processing.

Can I publish a merged model to HuggingFace Hub?

Yes, you can publish a merged model to HuggingFace Hub using the publish_to_hf_hub function. It supports uploading finished artifacts directly to HFHub, including options for private repository publishing.

What is the best way to automate the fine-tuned model weight lifecycle?

Automating the fine-tuned model weight lifecycle is streamlined by standardizing adapter downloads, LoRA merging, and HuggingFace publishing. This reduces manual overhead and errors when moving weights between systems for deployment.

Does the weight lifecycle workflow support selecting specific data types during merging?

Yes, the weight lifecycle workflow supports dtype options during the merging process. When using build_hf_model to merge LoRA adapters into the base model, you can specify the desired data type for the output artifact.