papers-in-100-lines-of-code
Routes Papers-in-100-Lines-of-Code catalog lookup, compact ML paper implementation adaptation, dependency planning, backend safety, and troubleshooting.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- papers-in-100-lines-of-code
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes Papers-in-100-Lines-of-Code catalog lookup, compact ML paper implementation adaptation, dependency planning, backend safety, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/dependency-and-backend-guide.md3.7 KB
- 参考文档references/implementation-index.json158.4 KB
- 参考文档references/implementation-index.md20.0 KB
- 参考文档references/repo-provenance.md1.9 KB
- 参考文档references/repo-routing-metadata.json546 B
- 参考文档references/troubleshooting.md2.7 KB
- 脚本scripts/check_skill_assets.py3.4 KB
- 脚本scripts/query_implementation_index.py4.1 KB
03 SKILL.md 正文
Papers-in-100-Lines-of-Code
Use this repo skill when the user asks about the Papers-in-100-Lines-of-Code repository, compact educational implementations of ML papers, or safe planning for adapting/running those implementations. The source is a catalog of 62 standalone paper mini-projects, not one installable Python package.
Start here
- Read repo provenance before checking whether this skill matches a current checkout or before refreshing it.
- Read implementation index, or query implementation-index.json with query_implementation_index.py, when the task names a paper, method, script, symbol, or family.
- Read dependency and backend guide before installing requirements or attempting a full run.
- Read repo-level troubleshooting for installability, dependency conflicts, data/weight downloads, CUDA, and output side effects.
- Run check_skill_assets.py when validating the generated skill tree itself.
Route by user intent
| User task | Route |
|---|---|
| Find whether a paper is implemented, choose an entry, interpret requirements, or plan a safe first run | paper-catalog-and-execution |
| Adapt or explain GANs, VAEs, normalizing flows, diffusion/DDIM/PNDM/DPM-Solver, DreamBooth, Stable Diffusion, image translation, SNL, or AALR | generative-models |
| Work with NeRF, Fourier/SIREN/MFN implicit fields, PlenOctrees/Plenoxels/K-Planes, 3D Gaussian Splatting, Speedy-Splat, Spherical Voronoi, Splatter Image, cameras, rays, or rendering memory | neural-rendering-3d |
| Adapt optimizers, activations, layers, MAML/Reptile/hypergradients, Deep Image Prior, DQN/DDQN/PPO, or long-loop training examples | optimization-meta-rl |
Operating posture
- Do not install every requirements file into one environment. Choose one paper or compatible family first, then use its per-entry pins.
- Do not treat full upstream scripts as quick smoke tests. Many train for thousands to millions of steps, write output images, hard-code CUDA, or need external datasets/weights.
- Do not report full paper reproduction unless the user supplied the data, weights, hardware/backend, output policy, and budget and the run actually passed.
- For algorithm understanding, prefer tiny offline adaptations with explicit
device, data, and output arguments. - For CUDA-heavy rendering/text-to-image/RL tasks, verify the framework/backend separately before starting a long run.
Minimal generated-skill checks
From this skill directory, safe checks are stdlib-only:
python scripts/query_implementation_index.py --query "stable diffusion"
python scripts/query_implementation_index.py --group neural-rendering-3d --limit 5
python scripts/check_skill_assets.py
These checks validate the generated catalog and routing assets. They do not execute or reproduce upstream paper implementations.
When not to use this skill
- Do not use it as a replacement for a specialized production library skill such as Diffusers, PyTorch, Gym, or a full NeRF framework when the user is not working with this paper-code catalog.
- Do not use it to claim benchmark parity with any paper. The repository favors compact educational clarity over exhaustive reproduction infrastructure.
- Do not use it for ordinary repository maintenance unless the change affects the paper catalog, per-paper requirements, or implementation scripts.
Scope limits
This skill distills source evidence into operating guidance and bundled helper scripts. It does not bundle every full upstream training/rendering program, does not fetch datasets or weights, and does not verify optional full CUDA paper runs. When a user needs a full reproduction, use the catalog and owning sub-skill to plan an isolated environment, data/weight acquisition, runtime budget, and backend validation first.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp 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.
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.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
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()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert 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.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match 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).