[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78TR04XV5936TDQA2WMDN47":3,"skill-same:01M78TR04XV5936TDQA2WMDN47":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M78TR04XV5936TDQA2WMDN47","inference-deployment",null,"Guide Chinese-LLaMA-Alpaca Hugging Face inference, Gradio chat, OpenAI-compatible API serving, and optional LangChain integrations.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: inference-deployment\ndescription: \"Guide Chinese-LLaMA-Alpaca Hugging Face inference, Gradio chat,\n  OpenAI-compatible API serving, and optional LangChain integrations.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Inference and Deployment Router\n\nUse 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\u002Fsummarization. The commands below assume the current working directory is this sub-skill directory.\n\nDo not launch a long-running server, download model weights, or load a large 7B+ model unless the user confirms model paths, backend use, port\u002Fnetwork exposure, and runtime budget. If the user only has LoRA adapters and no loadable base\u002Fmerged model, route first to `..\u002Fmodel-reconstruction\u002F`.\n\n## Fast Route\n\n1. **Pick the model family.** Chinese LLaMA is base\u002Fcontinuation-oriented; Chinese Alpaca is instruction\u002Fchat-oriented. Use [`references\u002Fhf-inference.md`](references\u002Fhf-inference.md) for prompt and flag details.\n2. **Run batch or interactive HF inference** with [`scripts\u002Finference_hf.py`](scripts\u002Finference_hf.py) when a HF model\u002Fbase+LoRA path is available.\n3. **Use Gradio or API serving only with explicit launch approval.** See [`references\u002Fgradio-and-api-server.md`](references\u002Fgradio-and-api-server.md) before running [`scripts\u002Fgradio_demo.py`](scripts\u002Fgradio_demo.py) or [`scripts\u002Fopenai_api_server.py`](scripts\u002Fopenai_api_server.py).\n4. **Use LangChain guidance for optional app demos.** See [`references\u002Flangchain-integrations.md`](references\u002Flangchain-integrations.md); these scripts require extra packages and model\u002Fembedding paths.\n5. **Debug failures with exact symptoms.** Use [`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md) for tokenizer mismatch, CPU\u002FGPU, 8-bit, NTK, xFormers, Gradio, FastAPI request schema, and optional dependency errors.\n\n## Bundled Runtime Files\n\n- [`scripts\u002Finference_hf.py`](scripts\u002Finference_hf.py): HF batch and single-turn interactive inference.\n- [`scripts\u002Fgradio_demo.py`](scripts\u002Fgradio_demo.py): Gradio chat UI.\n- [`scripts\u002Fopenai_api_server.py`](scripts\u002Fopenai_api_server.py) and [`scripts\u002Fopenai_api_protocol.py`](scripts\u002Fopenai_api_protocol.py): OpenAI-compatible completions\u002Fchat\u002Fembeddings server and schemas.\n- [`scripts\u002Fpatches.py`](scripts\u002Fpatches.py): local attention and NTK scaling patch module used by inference\u002Fserver scripts.\n- [`scripts\u002Flangchain_qa.py`](scripts\u002Flangchain_qa.py), [`scripts\u002Flangchain_sum.py`](scripts\u002Flangchain_sum.py), and [`scripts\u002Fdoc.txt`](scripts\u002Fdoc.txt): optional LangChain examples.\n\n## Scope Boundaries\n\n- Model conversion, tokenizer extension, SHA256 checks, and LoRA merging belong to `..\u002Fmodel-reconstruction\u002F`.\n- Training or SFT of new adapters belongs to `..\u002Ftraining-finetuning\u002F`.\n- C-Eval scoring and example benchmark interpretation belong to `..\u002Fevaluation-benchmarks\u002F`.\n- 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.\n","# Inference and Deployment Router\n\nUse 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\u002Fsummarization. The commands below assume the current working directory is this sub-skill directory.\n\nDo not launch a long-running server, download model weights, or load a large 7B+ model unless the user confirms model paths, backend use, port\u002Fnetwork exposure, and runtime budget. If the user only has LoRA adapters and no loadable base\u002Fmerged model, route first to `..\u002Fmodel-reconstruction\u002F`.\n\n## Fast Route\n\n1. **Pick the model family.** Chinese LLaMA is base\u002Fcontinuation-oriented; Chinese Alpaca is instruction\u002Fchat-oriented. Use [`references\u002Fhf-inference.md`](references\u002Fhf-inference.md) for prompt and flag details.\n2. **Run batch or interactive HF inference** with [`scripts\u002Finference_hf.py`](scripts\u002Finference_hf.py) when a HF model\u002Fbase+LoRA path is available.\n3. **Use Gradio or API serving only with explicit launch approval.** See [`references\u002Fgradio-and-api-server.md`](references\u002Fgradio-and-api-server.md) before running [`scripts\u002Fgradio_demo.py`](scripts\u002Fgradio_demo.py) or [`scripts\u002Fopenai_api_server.py`](scripts\u002Fopenai_api_server.py).\n4. **Use LangChain guidance for optional app demos.** See [`references\u002Flangchain-integrations.md`](references\u002Flangchain-integrations.md); these scripts require extra packages and model\u002Fembedding paths.\n5. **Debug failures with exact symptoms.** Use [`references\u002Ftroubleshooting.md`](references\u002Ftroubleshooting.md) for tokenizer mismatch, CPU\u002FGPU, 8-bit, NTK, xFormers, Gradio, FastAPI request schema, and optional dependency errors.\n\n## Bundled Runtime Files\n\n- [`scripts\u002Finference_hf.py`](scripts\u002Finference_hf.py): HF batch and single-turn interactive inference.\n- [`scripts\u002Fgradio_demo.py`](scripts\u002Fgradio_demo.py): Gradio chat UI.\n- [`scripts\u002Fopenai_api_server.py`](scripts\u002Fopenai_api_server.py) and [`scripts\u002Fopenai_api_protocol.py`](scripts\u002Fopenai_api_protocol.py): OpenAI-compatible completions\u002Fchat\u002Fembeddings server and schemas.\n- [`scripts\u002Fpatches.py`](scripts\u002Fpatches.py): local attention and NTK scaling patch module used by inference\u002Fserver scripts.\n- [`scripts\u002Flangchain_qa.py`](scripts\u002Flangchain_qa.py), [`scripts\u002Flangchain_sum.py`](scripts\u002Flangchain_sum.py), and [`scripts\u002Fdoc.txt`](scripts\u002Fdoc.txt): optional LangChain examples.\n\n## Scope Boundaries\n\n- Model conversion, tokenizer extension, SHA256 checks, and LoRA merging belong to `..\u002Fmodel-reconstruction\u002F`.\n- Training or SFT of new adapters belongs to `..\u002Ftraining-finetuning\u002F`.\n- C-Eval scoring and example benchmark interpretation belong to `..\u002Fevaluation-benchmarks\u002F`.\n- 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.\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill inference-deployment",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill inference-deployment",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill inference-deployment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002FSKILL.md",[47,53,57,61,65,71,75,79,83,87,91,95],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fgradio-and-api-server.md","REFERENCE","参考文档",3609,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Freferences\u002Fgradio-and-api-server.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fhf-inference.md",3836,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Freferences\u002Fhf-inference.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Flangchain-integrations.md",2747,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Freferences\u002Flangchain-integrations.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Ftroubleshooting.md",4054,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Freferences\u002Ftroubleshooting.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fdoc.txt","SCRIPT","脚本",6154,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Fdoc.txt",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fgradio_demo.py",11350,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Fgradio_demo.py",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Finference_hf.py",7235,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Finference_hf.py",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Flangchain_qa.py",4268,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Flangchain_qa.py",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Flangchain_sum.py",2806,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Flangchain_sum.py",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fopenai_api_protocol.py",2294,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Fopenai_api_protocol.py",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002Fopenai_api_server.py",8009,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Fopenai_api_server.py",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fpatches.py",8629,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fchinese-llama-alpaca\u002Fsub-skills\u002Finference-deployment\u002Fscripts\u002Fpatches.py",[100,107,114,121,128,135],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]