[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111282":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},111282,"HuggingArch","shenh10\u002FHuggingArch","shenh10","Understand your LLM before deploy","www.huggingarch.com",null,"Python",92,7,1,0,5,30,3,48.21,"MIT License",false,"main",true,[],"2026-11-23 04:49:18","2026-11-22 07:44:02","\u003Cdiv align=\"center\">\n\n\u003Cimg src=\"docs\u002Fassets\u002Flogo.png\" alt=\"HuggingArch\" width=\"72\">\n\n# HuggingArch\n\n**Architecture, cost and capacity of any HuggingFace model — from its model id alone. No weights, optional GPU.**\n\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg)](LICENSE)\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.13+-blue.svg)](https:\u002F\u002Fwww.python.org\u002F)\n[![Live demo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdemo-huggingarch.com-e8891c.svg)](https:\u002F\u002Fwww.huggingarch.com)\n\n[English](README.md) · [简体中文](README.zh-CN.md) · [Docs](docs\u002FREADME.md) · [Live demo](https:\u002F\u002Fwww.huggingarch.com)\n\n\u003C\u002Fdiv>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Farchitecture.svg\" alt=\"HuggingArch architecture: model truth from HuggingFace and hardware truth from the GPU, around three stages — an agent authors a checked spec, one walk evaluates it, every view reads that walk\" width=\"100%\">\n\u003C\u002Fp>\n\nHuggingArch turns a HuggingFace model id into a declarative spec, checks it against the real checkpoint, and evaluates it once. Everything you see — the architecture, per-layer parameters \u002F FLOPs \u002F memory traffic, KV-cache growth, per-GPU memory and latency under a parallel deployment — is read from that one evaluation.\n\n- **Checked against the real model.** An LLM agent writes the spec; it ships only when every tensor's bytes match the checkpoint's safetensors headers and a review against the `forward()` source passes.\n- **Numbers with their formulas.** The same walk is bound once to numbers and once to sympy symbols, so every figure can show how it was computed.\n- **Deployment-aware.** Parallelism (TP \u002F PP \u002F EP \u002F CP \u002F DP), precision, GPU, batch × context and serving framework are inputs; collectives and kernel fusions are derived from the graph, not special-cased per model.\n- **Bounded by hardware, calibrated by measurement.** Latency is a roofline bound; where a kernel has been measured at the per-GPU shape, the measurement sits beside the bound.\n\n**[▶ Try it live](https:\u002F\u002Fwww.huggingarch.com)** — any model id, in the browser.\n\n## What you can do\n\n| | |\n|---|---|\n| **Gallery** | Compare the whole library: size, KV cache and prefill \u002F decode speed against context, side by side. |\n| **Inspector** | Open one model: its block graph, per-op cost, and the formula behind each number. |\n| **Inference Planner** | Will it fit, and how fast — on which GPUs, under which parallel layout. |\n| **Fusion** | Which vLLM \u002F sglang \u002F DeepInfer kernel fusions fire for this model. |\n| **Playground** | Compose modules into a new model and see what it costs. |\n| **Kernel Bench** | Measured kernel timings across FlashAttention, FlashInfer, FlashMLA, DeepGEMM and more. |\n\n## Quickstart\n\nRequires Python ≥ 3.13, [`uv`](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F) and Node.js.\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fshenh10\u002FHuggingArch.git && cd HuggingArch\nuv sync\nnpm ci --prefix web && npm run build --prefix web\nuv run python -m backend.api --port 8000          # open http:\u002F\u002Flocalhost:8000\n```\n\nOr from the command line:\n\n```bash\nuv run huggingarch deepseek-ai\u002FDeepSeek-V3 --seq-len 1024\n```\n\n## Scope\n\nHuggingArch is an analytical planner, not a profiler or a runtime.\n\n- **Structure is ground truth.** Parameter counts, shapes and weight bytes are checked tensor by tensor against the checkpoint.\n- **Latency is a bound.** Without a measured kernel it is a speed-of-light estimate — a planning envelope, not a benchmark.\n- **It reads config, headers and source — not weights.** Behaviour that lives only in weights or custom runtime code is out of reach.\n\n## Coverage\n\n| | |\n|---|---|\n| **Model types** | Text-generation LLMs and image-to-text (vision-language) models. Other modalities — image or audio generation, speech, embedding-only models — are out of scope. |\n| **Models** | 51 architecture families; **58 verified model ids** across 18 orgs — DeepSeek, Kimi, Qwen, Llama, Mistral, Gemma, GLM, MiMo, gpt-oss, Step, LongCat, Nemotron, … An unlisted id gets an agent-drafted spec that must pass validation before it is served. |\n| **Attention** | MHA, GQA, MLA, sparse (DSA), sliding window, linear attention and SSM hybrids — 186 reusable component DAGs. |\n| **Quantization** | FP8, FP4 \u002F MXFP4 \u002F NVFP4, AWQ, GPTQ, ModelOpt, compressed-tensors. |\n| **GPUs** | 15 SKUs: A100 through GB300. |\n| **Frameworks** | vLLM, sglang, and DeepInfer fusion bindings (91 fusion plans). |\n\n## Learn more\n\n- [Design](docs\u002Fdesign.md) — the spec language, the evaluation core, validation, parallelism. Documentation map: [`docs\u002FREADME.md`](docs\u002FREADME.md).\n- [Blog](https:\u002F\u002Fshenhan.cc\u002Fblog\u002Fhuggingarch) — why the project exists, how it works, and how it got here ([中文](https:\u002F\u002Fshenhan.cc\u002Fzh\u002Fblog\u002Fhuggingarch)).\n- [Custom models](docs\u002Fcustom_models.md) · [Deployment](docs\u002Fdeployment.md) (including the optional multi-user mode) · [Kernel Bench](kernel_bench\u002FREADME.md)\n\n## Contributing\n\nThe most useful contributions are a new model family (a YAML in `backend\u002Farch\u002Fmodels\u002F`) and a new reusable component (a YAML in `backend\u002Farch\u002Fcomponents\u002Flibrary\u002F`) — no Python needed. See [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Citation\n\nIf HuggingArch helps your work, please cite:\n\n```bibtex\n@misc{shen2026huggingarch,\n  author       = {Shen, Han},\n  title        = {HuggingArch: Automating Model Architecture Analysis},\n  year         = {2026},\n  howpublished = {\\url{https:\u002F\u002Fshenhan.cc\u002Fblog\u002Fhuggingarch}},\n  note         = {Code: \\url{https:\u002F\u002Fgithub.com\u002Fshenh10\u002FHuggingArch}}\n}\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","HuggingArch 是一个用于深度分析 Hugging Face 模型架构、计算开销与部署容量的工具，无需下载模型权重即可从 model id 推导出精确的结构与性能指标。其核心功能包括：基于真实 checkpoint 校验的声明式模型规格生成、支持符号推导的可解释性成本计算（参数量、FLOPs、KV 缓存、显存占用、延迟）、以及面向实际部署的并行策略（TP\u002FPP\u002FEP\u002FCP\u002FDP）与硬件（GPU 型号、精度、batch×context）联合建模。适用于大模型选型评估、推理服务资源规划、Kernel 融合兼容性判断及教学级模型结构解析等场景。",2,"2026-11-24 04:40:40","CREATED_QUERY"]