[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DH7B1YVWFAFJ5CH8KK7VF0":3,"skill-same:01M7DH7B1YVWFAFJ5CH8KK7VF0":58},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7DH7B1YVWFAFJ5CH8KK7VF0","huggingface-local-models",null,"Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm. Covers finding GGUFs, quant selection, running servers, exact GGUF file lookup, conversion, and OpenAI-compatible local serving.","ak2dev\u002Fagentguard","ak2dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F233005497?v=4","01M7DGWK3E3XCC276C6YRFSN05","01M7DGWK4J2A9WQ44CS5CRP4R6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: huggingface-local-models\ndescription: \"Use to select models to run locally with llama.cpp and GGUF on CPU, Mac Metal, CUDA, or ROCm. Covers finding GGUFs, quant selection, running servers, exact GGUF file lookup, conversion, and OpenAI-compatible local serving.\"\n---\n\n# Hugging Face Local Models\n\nSearch the Hugging Face Hub for llama.cpp-compatible GGUF repos, choose the right quant, and launch the model with `llama-cli` or `llama-server`.\n\n## Default Workflow\n\n1. Search the Hub with `apps=llama.cpp`.\n2. Open `https:\u002F\u002Fhuggingface.co\u002F\u003Crepo>?local-app=llama.cpp`.\n3. Prefer the exact HF local-app snippet and quant recommendation when it is visible.\n4. Confirm exact `.gguf` filenames with `https:\u002F\u002Fhuggingface.co\u002Fapi\u002Fmodels\u002F\u003Crepo>\u002Ftree\u002Fmain?recursive=true`.\n5. Launch with `llama-cli -hf \u003Crepo>:\u003CQUANT>` or `llama-server -hf \u003Crepo>:\u003CQUANT>`.\n6. Fall back to `--hf-repo` plus `--hf-file` when the repo uses custom file naming.\n7. Convert from Transformers weights only if the repo does not already expose GGUF files.\n\n## Quick Start\n\n### Install llama.cpp\n\n```bash\nbrew install llama.cpp\nwinget install llama.cpp\n```\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\ncd llama.cpp\nmake\n```\n\n### Authenticate for gated repos\n\n```bash\nhf auth login\n```\n\n### Search the Hub\n\n```text\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?apps=llama.cpp&sort=trending\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?search=Qwen3.6&apps=llama.cpp&sort=trending\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?search=\u003Cterm>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending\n```\n\n### Run directly from the Hub\n\n```bash\nllama-cli -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\nllama-server -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\n```\n\n### Run an exact GGUF file\n\n```bash\nllama-server \\\n    --hf-repo unsloth\u002FQwen3.6-35B-A3B-GGUF \\\n    --hf-file Qwen3.6-35B-A3B-UD-Q4_K_M.gguf \\\n    -c 4096\n```\n\n### Convert only when no GGUF is available\n\n```bash\nhf download \u003Crepo-without-gguf> --local-dir .\u002Fmodel-src\npython convert_hf_to_gguf.py .\u002Fmodel-src \\\n    --outfile model-f16.gguf \\\n    --outtype f16\nllama-quantize model-f16.gguf model-q4_k_m.gguf Q4_K_M\n```\n\n### Smoke test a local server\n\n```bash\nllama-server -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\n```\n\n```bash\ncurl http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer no-key\" \\\n  -d '{\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Write a limerick about exception handling\"}\n    ]\n  }'\n```\n\n## Quant Choice\n\n- Prefer the exact quant that HF marks as compatible on the `?local-app=llama.cpp` page.\n- Keep repo-native labels such as `UD-Q4_K_M` instead of normalizing them.\n- Default to `Q4_K_M` unless the repo page or hardware profile suggests otherwise.\n- Prefer `Q5_K_M` or `Q6_K` for code or technical workloads when memory allows.\n- Consider `Q3_K_M`, `Q4_K_S`, or repo-specific `IQ` \u002F `UD-*` variants for tighter RAM or VRAM budgets.\n- Treat `mmproj-*.gguf` files as projector weights, not the main checkpoint.\n\n## Load References\n\n- Read [hub-discovery.md](references\u002Fhub-discovery.md) for URL-first workflows, model search, tree API extraction, and command reconstruction.\n- Read [quantization.md](references\u002Fquantization.md) for format tables, model scaling, quality tradeoffs, and `imatrix`.\n- Read [hardware.md](references\u002Fhardware.md) for Metal, CUDA, ROCm, or CPU build and acceleration details.\n\n## Resources\n\n- llama.cpp: `https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp`\n- Hugging Face GGUF + llama.cpp docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fgguf-llamacpp`\n- Hugging Face Local Apps docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fmain\u002Flocal-apps`\n- Hugging Face Local Agents docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fagents-local`\n- GGUF converter Space: `https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fggml-org\u002Fgguf-my-repo`\n","# Hugging Face Local Models\n\nSearch the Hugging Face Hub for llama.cpp-compatible GGUF repos, choose the right quant, and launch the model with `llama-cli` or `llama-server`.\n\n## Default Workflow\n\n1. Search the Hub with `apps=llama.cpp`.\n2. Open `https:\u002F\u002Fhuggingface.co\u002F\u003Crepo>?local-app=llama.cpp`.\n3. Prefer the exact HF local-app snippet and quant recommendation when it is visible.\n4. Confirm exact `.gguf` filenames with `https:\u002F\u002Fhuggingface.co\u002Fapi\u002Fmodels\u002F\u003Crepo>\u002Ftree\u002Fmain?recursive=true`.\n5. Launch with `llama-cli -hf \u003Crepo>:\u003CQUANT>` or `llama-server -hf \u003Crepo>:\u003CQUANT>`.\n6. Fall back to `--hf-repo` plus `--hf-file` when the repo uses custom file naming.\n7. Convert from Transformers weights only if the repo does not already expose GGUF files.\n\n## Quick Start\n\n### Install llama.cpp\n\n```bash\nbrew install llama.cpp\nwinget install llama.cpp\n```\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp\ncd llama.cpp\nmake\n```\n\n### Authenticate for gated repos\n\n```bash\nhf auth login\n```\n\n### Search the Hub\n\n```text\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?apps=llama.cpp&sort=trending\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?search=Qwen3.6&apps=llama.cpp&sort=trending\nhttps:\u002F\u002Fhuggingface.co\u002Fmodels?search=\u003Cterm>&apps=llama.cpp&num_parameters=min:0,max:24B&sort=trending\n```\n\n### Run directly from the Hub\n\n```bash\nllama-cli -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\nllama-server -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\n```\n\n### Run an exact GGUF file\n\n```bash\nllama-server \\\n    --hf-repo unsloth\u002FQwen3.6-35B-A3B-GGUF \\\n    --hf-file Qwen3.6-35B-A3B-UD-Q4_K_M.gguf \\\n    -c 4096\n```\n\n### Convert only when no GGUF is available\n\n```bash\nhf download \u003Crepo-without-gguf> --local-dir .\u002Fmodel-src\npython convert_hf_to_gguf.py .\u002Fmodel-src \\\n    --outfile model-f16.gguf \\\n    --outtype f16\nllama-quantize model-f16.gguf model-q4_k_m.gguf Q4_K_M\n```\n\n### Smoke test a local server\n\n```bash\nllama-server -hf unsloth\u002FQwen3.6-35B-A3B-GGUF:UD-Q4_K_M\n```\n\n```bash\ncurl http:\u002F\u002Flocalhost:8080\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer no-key\" \\\n  -d '{\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Write a limerick about exception handling\"}\n    ]\n  }'\n```\n\n## Quant Choice\n\n- Prefer the exact quant that HF marks as compatible on the `?local-app=llama.cpp` page.\n- Keep repo-native labels such as `UD-Q4_K_M` instead of normalizing them.\n- Default to `Q4_K_M` unless the repo page or hardware profile suggests otherwise.\n- Prefer `Q5_K_M` or `Q6_K` for code or technical workloads when memory allows.\n- Consider `Q3_K_M`, `Q4_K_S`, or repo-specific `IQ` \u002F `UD-*` variants for tighter RAM or VRAM budgets.\n- Treat `mmproj-*.gguf` files as projector weights, not the main checkpoint.\n\n## Load References\n\n- Read [hub-discovery.md](references\u002Fhub-discovery.md) for URL-first workflows, model search, tree API extraction, and command reconstruction.\n- Read [quantization.md](references\u002Fquantization.md) for format tables, model scaling, quality tradeoffs, and `imatrix`.\n- Read [hardware.md](references\u002Fhardware.md) for Metal, CUDA, ROCm, or CPU build and acceleration details.\n\n## Resources\n\n- llama.cpp: `https:\u002F\u002Fgithub.com\u002Fggml-org\u002Fllama.cpp`\n- Hugging Face GGUF + llama.cpp docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fgguf-llamacpp`\n- Hugging Face Local Apps docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fmain\u002Flocal-apps`\n- Hugging Face Local Agents docs: `https:\u002F\u002Fhuggingface.co\u002Fdocs\u002Fhub\u002Fagents-local`\n- GGUF converter Space: `https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Fggml-org\u002Fgguf-my-repo`\n",{"name":5,"description":7},"main","634c25395a24b98cd6125453ad4abb65517bcabb","bench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard","https:\u002F\u002Fsite-bionic8.vercel.app","https:\u002F\u002Fgithub.com\u002Fak2dev","2026-11-11 02:37:06",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add ak2dev\u002Fagentguard --skill huggingface-local-models",{"tool":36,"command":37},"bunx","bunx skills add ak2dev\u002Fagentguard --skill huggingface-local-models",{"tool":39,"command":40},"pnpm","pnpm dlx skills add ak2dev\u002Fagentguard --skill huggingface-local-models","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models\u002FSKILL.md",true,[44,50,54],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fhardware.md","REFERENCE","参考文档",623,"https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models\u002Freferences\u002Fhardware.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fhub-discovery.md",5310,"https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models\u002Freferences\u002Fhub-discovery.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fquantization.md",6136,"https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Fbench\u002Fcorpus\u002Fbenign\u002Freal-hf-huggingface-local-models\u002Freferences\u002Fquantization.md",[59,66,71,76,81,87],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DJ7GBSJBJ32GXNQXVAMNYK","csv-tool","Summarize CSV files and report column statistics.","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-002\u002Fpositive\u002Ffault\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":67,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7DJ7F00PA7EHFM39RVCC8R5","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-002\u002Fnegative\u002Fnormal\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":72,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7DJ7DP7KDW7MYY5Q0R0JFEN","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-001\u002Fpositive\u002Ftoo-large\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":77,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7DJ7C3VA0KQ8Q9ESNX6AJHE","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SYS-001\u002Fnegative\u002Fsmall\u002Fcsv-tool\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7DJ7AQZTGY5YADQX73TRB7K","pdf","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SKL-TYP-002\u002Fpositive\u002Fother-publisher\u002Fpdf\u002FSKILL.md",[],[],{"skillNo":88,"name":83,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7DJ7831XDVWS4W9SAAKBJHX","https:\u002F\u002Fgithub.com\u002Fak2dev\u002Fagentguard\u002Fblob\u002Fmain\u002Ffixtures\u002Frules\u002FAG-SKL-TYP-002\u002Fnegative\u002Fsame-publisher\u002Fpdf\u002FSKILL.md",[],[]]