Index of every page on this site: llms.txt
All skills
loom-fun avatar

/loom-optimize

@618f89e
by loom-funloom-fun/loom-skills42 stars
7
Run it yourself

Make a Loom LLM port faster (decode, prefill, long context, concurrency) while proving it stays correct — targets from the best published numbers and the roofline, real per-kernel profiles (HAL dispatch timestamps), bucket budgets, fuse-by-default designs tried in parallel, perf-only iteration rounds with gates once on the winner, and a lane that ends only when every lever has a measured stop reason. Use for "speed up", "beat llama.cpp / vLLM / leader X", "SOTA", "optimize prefill/decode" on a Loom model, or an optimization lane of a campaign.

Use this Skill: https://skilld.dev/gh/loom-fun/loom-skills/loom-optimize

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceflint-moe-exampleREADME.md

≈321 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Flint (RecursiveSI/flint, 40B MoE): hand-tuned MoE prefill generator

gen_moe.py is the one piece of the original hand-written Flint port (int4 Q4_1 weights) whose idea is not in the starter or in loom-port-llm/reference/{flint,lfm2moe}-example (start a MoE port from those). Ideas, not a base:

  • router top-k -> one-workgroup bucketing of the token x slot assignments into 32-row tiles per expert (tile_info = (expert, rows), a rowmap of each padded row's assignment, pos of each assignment's row) -> grouped WMMA gate/up and down GEMMs over the tiles -> weighted combine;
  • MOE_TILE > 32 buckets into bigger tiles that the down GEMM runs as 32-row virtual tiles (down_virtual; empty halves exit).

python gen_moe.py > moe.loom (env: MOE_TILE rows per tile, default 32; FLINT_MOE_FMT q4_k|q4_1; DOWN_GROUPS). It imports dequant16 from loom-port-llm/starter/gen_gemm.py (q4_1 support there exists for it).

The rest of that port (adaptive split-K decode attention, fused RMSNorm + f16 row scale, the listed prefill fallback, per-token RoPE + KV store) has been folded into the starter's gen_llm.py. Its measured numbers (int4 build vs llama.cpp b1355: decode 99-104 vs 62 tok/s) are in the loom-kb roofline topic (kb.py route --topic roofline).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warningtoday3 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    The skill provides a specialized suite of tools for LLM performance optimization, enabling the agent to programmatically generate and modify kernel code and perform network-based benchmarking. It grants the ability to execute local Python scripts and make network requests to evaluate model speed, so it should be used in a controlled environment with trusted model files and endpoints.

  • Sockettoday

    No alerts

  • Snyktoday

    Risk: MEDIUM · 1 issue

Signed by skilld at 618f89e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated last week

README badge

README badge for loom-fun/loom-skills/loom-optimize