inference-deployment
БесплатноЗапускает вложенные скриптыНе проверенGuide Chinese-LLaMA-Alpaca Hugging Face inference, Gradio chat, OpenAI-compatible API serving, and optional LangChain integrations.
от lza6★ 19 звёзд на GitHubОб этом скилле
Inference and Deployment Router
Use this sub-skill when a user has, or is preparing, Chinese-LLaMA-Alpaca model assets for local generation, batch prediction, interactive instruction mode, Gradio chat, an OpenAI-compatible FastAPI server, embeddings, or LangChain QA/summarization. The commands below assume the current working directory is this sub-skill directory.
Do not launch a long-running server, download model weights, or load a large 7B+ model unless the user confirms model paths, backend use, port/network exposure, and runtime budget. If the user only has LoRA adapters and no loadable base/merged model, route first to ../model-reconstruction/.
Fast Route
- Pick the model family. Chinese LLaMA is base/continuation-oriented; Chinese Alpaca is instruction/chat-oriented. Use
references/hf-inference.mdfor prompt and flag details. - Run batch or interactive HF inference with
scripts/inference_hf.pywhen a HF model/base+LoRA path is available. - Use Gradio or API serving only with explicit launch approval. See
references/gradio-and-api-server.mdbefore runningscripts/gradio_demo.pyorscripts/openai_api_server.py. - Use LangChain guidance for optional app demos. See
references/langchain-integrations.md; these scripts require extra packages and model/embedding paths. - Debug failures with exact symptoms. Use
references/troubleshooting.mdfor tokenizer mismatch, CPU/GPU, 8-bit, NTK, xFormers, Gradio, FastAPI request schema, and optional dependency errors.
Bundled Runtime Files
scripts/inference_hf.py: HF batch and single-turn interactive inference.scripts/gradio_demo.py: Gradio chat UI.scripts/openai_api_server.pyandscripts/openai_api_protocol.py: OpenAI-compatible completions/chat/embeddings server and schemas.scripts/patches.py: local attention and NTK scaling patch module used by inference/server scripts.scripts/langchain_qa.py,scripts/langchain_sum.py, andscripts/doc.txt: optional LangChain examples.
Scope Boundaries
- Model conversion, tokenizer extension, SHA256 checks, and LoRA merging belong to
../model-reconstruction/. - Training or SFT of new adapters belongs to
../training-finetuning/. - C-Eval scoring and example benchmark interpretation belong to
../evaluation-benchmarks/. - This sub-skill can plan CPU-only checks, but CPU generation for 7B+ models is often very slow and is not a substitute for GPU performance validation.
Установить inference-deployment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл inference-deployment?
Guide Chinese-LLaMA-Alpaca Hugging Face inference, Gradio chat, OpenAI-compatible API serving, and optional LangChain integrations.
Как установить скилл inference-deployment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inference-deployment запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic