hailo_model_zoo: Skill for Claude Code

.claude/skills/hailo-compile/SKILL.md

hailo-compile is a skill for Claude Code from hailo-ai/hailo_model_zoo. It costs 55 tokens per session (1,478 once invoked), scanned A, original, MIT.

A model-compilation step that turns an optimized Hailo HAR file into a HEF binary for deployment on a Hailo accelerator. The HEF is the compiled file that runs on the hardware.

In plain words
What is it for?
It helps compile the optimized model, choose or detect the target hardware architecture, and produce the deployable HEF file.
Why use it?
It converts a quantized model into the device-ready format needed for execution and also saves a compiled HAR with metadata for later tools.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is hailo-ai/hailo_model_zoo's own configuration. It tells Claude Code how to work on hailo_model_zoo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hailo_model_zoo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hailo-ai/hailo_model_zoo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hailo-ai/hailo_model_zoo/master/.claude/skills/hailo-compile/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hailo-ai/hailo_model_zoo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hailo-compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/hailo-ai/hailo_model_zoo/hailo-compile/github.svg)](https://agentmods.dev/skills/hailo-ai/hailo_model_zoo/hailo-compile)
Your own site
<a href="https://agentmods.dev/skills/hailo-ai/hailo_model_zoo/hailo-compile"><img src="https://agentmods.dev/badge/skills/hailo-ai/hailo_model_zoo/hailo-compile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hailo-compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/hailo-ai/hailo_model_zoo/hailo-compile"><img src="https://agentmods.dev/badge/skills/hailo-ai/hailo_model_zoo/hailo-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01478
Opus 5.5 $0.00022 $0.00591
Sonnet 5.5 $0.00011 $0.00296
Haiku 4.5 $0.00006 $0.00148

Measured 5d ago against content hash 0f4c91ebf638, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hailo-compile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/hailo-compile/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hailo Compile

Third stage of the DFC flow: take the quantized <model_name>_optimized.har from /hailo-optimize and produce a <model_name>.hef that runs on the Hailo accelerator.

This skill is shipped with the Hailo Model Zoo. It assumes the DFC wheel (hailo_sdk_client) is installed in the active virtualenv.

Inputs

Arg Required Notes
<optimized.har> yes Output of /hailo-optimize.
[hw_arch] no Read from the HAR if possible; otherwise default hailo10h.

Workflow

1. Resolve inputs

  • Verify <optimized.har> exists.
  • model_name = HAR filename stem (strip a trailing _optimized if present).
  • hw_arch is read from the HAR; if unavailable, ask the user (or default to hailo10h).

2. Run compile

hailomz compile (and runner.compile() when driven through it) rewrites the HAR named after the network in the current directory — the same optimized HAR this stage reads from. Back up the optimized HAR under a distinct name first and checksum the file you're about to compile; losing the optimized HAR to a compile is easy to do and the loss is silent. Compile is also CPU-only, so set CUDA_VISIBLE_DEVICES="" before running it — otherwise it can hold a GPU that an optimization job elsewhere needs.

cp <optimized.har> <optimized.har>.bak
md5sum <optimized.har> > <optimized.har>.md5
from hailo_sdk_client import ClientRunner

runner = ClientRunner(har="<optimized.har>")
hef = runner.compile()
with open("<model_name>.hef", "wb") as f:
    f.write(hef)
runner.save_har("<model_name>_compiled_model.har")

The compiled HAR carries the metadata the profiler and hailo har extract consume. The _compiled_model.har suffix matches the DFC tutorial (DFC_3_Compilation_Tutorial.ipynb) and the compilation.rst documentation — downstream tooling expects this convention.

3. Verify

  • Confirm <model_name>.hef exists and report its size and location.
  • The compile log line Applying selected partition to N contexts gives the context count — report it. It's the number that explains a multi-context model's FPS.
  • Inspect the HEF metadata with hailortcli parse-hef <model_name>.hef (requires HailoRT installed).
  • Per-layer profiler (static) — hailo profiler <model_name>_compiled_model.har produces a static per-layer report. Note: for multi-context models (most large models), this report does not include performance / FPS numbers without runtime data.
  • Profiler with runtime data (full FPS / utilization) — the documented two-step flow for accurate performance on multi-context models:
    hailortcli run2 -m raw measure-fw-actions --output-path runtime.json set-net <model_name>.hef
    hailo profiler <model_name>_compiled_model.har --runtime-data runtime.json --out-path runtime_profiler.html
    
  • Smoke test on the device — hailortcli run2 set-net <model_name>.hef runs inference with random inputs as a quick sanity check (verify the exact form with hailortcli run --help — run2 always requires -m <mode>).

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +8 lines 0f4c91ebf638
  2. 2mo ago First seen · 87 lines · 55 tokens per session scan A 31426e014a65

Subscribe to this mod's changes

hailo-compile is a skill published in the GitHub repository hailo-ai/hailo_model_zoo (722 stars, last pushed 5d ago), licensed MIT. It adds 55 tokens to every session and 1,478 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

hailo-compile compared with skills from other repositories

hailo-compile next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hailo-compilehailo-ai/hailo_model_zooSkill7225d agoMITA55Claude Code
yolo-exportultralytics/skillsSkill35yesterdayAGPL-3.0A120Claude Code, Codex
voyager-launchfxd0h/Axelera-Voyager-Local-AssistantSkill43mo agoMITA162Claude Code
voyager-list-modelsfxd0h/Axelera-Voyager-Local-AssistantSkill43mo agoMITA39Claude Code
voyager-new-pipelinefxd0h/Axelera-Voyager-Local-AssistantSkill43mo agoMITA71Claude Code
voyager-add-modelfxd0h/Axelera-Voyager-Local-AssistantSkill43mo agoMITA45Claude Code
voyager-deployfxd0h/Axelera-Voyager-Local-AssistantSkill43mo agoMITA74Claude Code