model-reconstruction
БесплатноБез исполняемых скриптовНе проверенGuide Chinese-LLaMA-Alpaca asset selection, checksum validation, tokenizer extension, and LoRA reconstruction into PTH or Hugging Face model formats.
от lza6★ 19 звёзд на GitHubОб этом скилле
Model Reconstruction Router
Use this sub-skill when a user needs to prepare Chinese-LLaMA-Alpaca model assets, merge Chinese LoRA adapters with legally obtained original LLaMA weights, extend tokenizers, choose PTH versus Hugging Face output, or debug reconstruction failures. The commands below assume the current working directory is this sub-skill directory.
The repository releases Chinese LLaMA/Alpaca LoRA adapters and tokenizers, not original full LLaMA weights. Do not imply the skill can supply original LLaMA weights or bypass license restrictions. Real reconstruction is large and should run only after the user confirms asset paths, disk/RAM budget, output format, and license constraints.
Fast Route
- Confirm assets and model family. Read
references/model-assets.mdfor original LLaMA, Chinese LLaMA, Chinese Alpaca, Plus/Pro, tokenizer, and multi-LoRA compatibility. - Verify downloads before merging. Use the root helper
../../scripts/verify_sha256.pywith checksums fromreferences/checksums.md. - Choose the conversion path. Use
references/reconstruction-workflows.md:- standard merge:
python scripts/merge_llama_with_chinese_lora.py ... - low-memory or ordered multi-LoRA merge:
python scripts/merge_llama_with_chinese_lora_low_mem.py ... - tokenizer extension:
python scripts/merge_tokenizers.py ...
- standard merge:
- Use bundled scripts only. The copied scripts in
scripts/replace the source checkout scripts for runtime use. - Troubleshoot before retrying. Read
references/troubleshooting.mdfor tokenizer/vocab mismatch, PEFT version, RAM/disk, shard, and checksum problems.
Bundled Runtime Files
scripts/merge_llama_with_chinese_lora.py: standard LoRA merge topthor Hugging Face format.scripts/merge_llama_with_chinese_lora_low_mem.py: low-memory merge with ordered comma-separated LoRA paths.scripts/merge_tokenizers.py: Chinese tokenizer vocabulary extension; defaults to bundledscripts/chinese_sp.model.references/checksums.md: distilled SHA256 table and verification workflow.
Scope Boundaries
- Route inference, Gradio, FastAPI, OpenAI-compatible API, and LangChain prompts to
../inference-deployment/after a merged or loadable model exists. - Route new LoRA training or SFT data preparation to
../training-finetuning/. - Route C-Eval and example benchmark interpretation to
../evaluation-benchmarks/. - Do not run model reconstruction from a vague request. Ask for base model path, LoRA path(s), tokenizer expectations, output type, output directory, and available memory/disk first.
Установить model-reconstruction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл model-reconstruction?
Guide Chinese-LLaMA-Alpaca asset selection, checksum validation, tokenizer extension, and LoRA reconstruction into PTH or Hugging Face model formats.
Как установить скилл model-reconstruction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл model-reconstruction запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic