model-port
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
Port a new model or model/chip adaptation to Buckyball, coordinating reference preparation, chip design, integration, regressions, and complete P2E validation.
In this repository25 other files it gives its agents.
- agent-runtimeSkill
- ball-alignSkill
- canvas-clientSkill
- checkSkill
- chip-designerSkill
- collaboration-panelSkill
- debug-bemuSkill
- debug-compilerSkill
- debug-p2eSkill
- debug-performanceSkill
- debug-verilatorSkill
- domain-modelingSkill
- graph-contractSkill
- grillingSkill
- grill-with-docsSkill
- ip-designerSkill
- model-optimizeSkill
- model-recipeSkill
- plugin-verifySkill
- programming-principlesSkill
- repo-installSkill
- reportSkill
- role-identitySkill
- waveformSkill
- workload-testsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Read current working implementations and recipes instead of assuming old README instructions still describe the repository.
- Very specific: line 40
Run the full model through bbdev_bemu_sim(chip, model) and compare numerical outputs.
- Very specific: line 43
Run focused small Verilator cases with diff enabled on the first run and waveform capture off.
- Very specific: line 53
Run the full model through bbdev_bebop_p2e_runworkload, check actual UART and exit status, and validate outputs against the declared …
- Very specific: line 55
When performance is required, use $debug-performance to confirm the target.
- Very specific: line 64
Prefer project bbdev_* MCP tools and poll tasks to a terminal result.
- Very specific: line 70
Use FPGA end-to-end model cycles for performance acceptance.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model Port
Model/chip adaptations are designs within a shared framework. This skill owns the porting workflow and completion gates. Use model-optimize for the required chip-design step; keep its layout, bank, and scheduling guidance there.
Establish the port
Identify the target chips/configurations, checkpoint, input shape and preprocessing, reference outputs, numerical requirements, and any explicit performance target. Preserve the original model as the reference before chip-specific rewrites. Use the same prepared checkpoint and input when comparing designs; do not silently retrain an existing model for a new chip adaptation.
Read current working implementations and recipes instead of assuming old README instructions still describe the repository. Preserve unrelated work and existing models.
- Shared preparation, the model definition, and evaluation:
stack/models/models/<model>/; see model-recipe for the model files, importers and frontend steps. - Design recipes:
stack/models/archs/buckyball/<design>/<model>/; reference recipes for x86, nv and gemmini:stack/models/archs/<arch>/<model>/. - Design topology/configuration:
examples/designs/<design>/configs/. - Operator implementations:
examples/prefab/balls/andexamples/prefab/threads/.
Workflow and gates
- Prepare the shared model, input, and reference. Add the chip recipe using the current framework's build, package, and execution interfaces.
- Apply $model-optimize to design each chip recipe. Record the chosen numerical and execution contract. Verify model rewrites against the original reference. Optimization beyond this design step follows the user's declared scope/target.
- Build through
bbdev_model_build(chip, model). Use$debug-compilerfor import or lowering failures; a successful build is not an execution result. - Run the full model through
bbdev_bemu_sim(chip, model)and compare numerical outputs. Use$debug-bemufor mismatches. Add independent small cases for changed semantics using$workload-tests; use$ball-alignwhen a Ball contract spans layers. - Run focused small Verilator cases with diff enabled on the first run and waveform
capture off. Follow
$debug-verilatoron failure. Full models and large BankOps belong on BEMU/P2E. Re-run affected existing operator/model cases and every explicitly required configuration; state actual regression coverage. - Build the native Linux image through
bbdev_kernel_build(chip, model)with hart counts matching the chip. Validate Linux execution when available; use$debug-bemufor Linux DMA residency faults and$debug-p2efor boot/runtime issues. - Export RTL and build a matching P2E bitstream/runtime case. Use
$debug-p2efor artifact identity, workload-to-hex conversion, logical image names, case reuse, resource ownership, and build recovery. Validate focused P2E cases with diff. - Run the full model through
bbdev_bebop_p2e_runworkload, check actual UART and exit status, and validate outputs against the declared numerical contract. When performance is required, use$debug-performanceto confirm the target.
The port is complete only after full-model P2E execution and output validation pass for the requested chips/configurations, including required regressions and any performance acceptance criterion. BEMU, boot success, and small RTL gates are intermediate results. Report an external blocker without claiming completion.
Tools and delivery
Prefer project bbdev_* MCP tools and poll tasks to a terminal result. With
user-authorized fallback for a broken MCP entry, use nix develop -c bbdev and
retain commands, logs, and exit status.
Report checkpoint/input, recipes/artifacts, numerical comparisons, matched P2E
bitstream/image/runtime identities, regression coverage, and remaining limitations.
Use FPGA end-to-end model cycles for performance acceptance; use $debug-p2e for
requested host run durations. Distinguish model weights, executable/package, firmware,
and bitstream sizes. A single-input check does not establish dataset accuracy, and
Top-5 agreement alone does not establish equality of all logits.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

