benchmark-on-ddp

benchmark-on-ddp is a skill for Claude Code, Codex from google-ai-edge/litert-samples. It costs 124 tokens per session (2,114 once invoked), scanned A, original, Apache-2.0.

A benchmarking workflow for measuring LiteRT TensorFlow Lite model files on Developer Device Platform lab phones or on the local Mac. It uses benchmarkmodel results and logs to create performance leaderboard entries for each model, device, and accelerator.

In plain words
What is it for?
It runs or previews LiteRT benchmark sessions, collects result files and delegate information, and rebuilds the leaderboard data and page. LiteRT-LM bundles are outside its stated scope.
Why use it?
It prevents incomplete performance numbers from being treated as comparable results by requiring the model, device, accelerator, software release, and source benchmark job. It also makes the cost of cloud device runs visible before they start.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is python3 ../driver/run_matrix.py --dry-run --only litert-community/MobileNet-v2.

Good fit It runs or previews LiteRT benchmark sessions, collects result files and delegate information, and rebuilds the leaderboard data and page. LiteRT-LM bundles are outside its stated scope.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/google-ai-edge/litert-samples
agentmods
npx agentmods add skills/google-ai-edge/litert-samples/benchmark-on-ddp

Made for: Claude Code, Codex.

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 benchmark-on-ddp

README.md
[![agentmods](https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/benchmark-on-ddp/github.svg)](https://agentmods.dev/skills/google-ai-edge/litert-samples/benchmark-on-ddp)
Your own site
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/benchmark-on-ddp"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/benchmark-on-ddp/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 benchmark-on-ddp

Your own site · 80×15
<a href="https://agentmods.dev/skills/google-ai-edge/litert-samples/benchmark-on-ddp"><img src="https://agentmods.dev/badge/skills/google-ai-edge/litert-samples/benchmark-on-ddp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 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.
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.00124 $0.02114
Opus 5.5 $0.00050 $0.00846
Sonnet 5.5 $0.00025 $0.00423
Haiku 4.5 $0.00012 $0.00211

Measured 1mo ago against content hash 67ed543134a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

benchmark-on-ddp 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 1mo 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.

skills/benchmark-on-ddp/SKILL.md · 96 lines

How it starts

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

Benchmark on DDP

A board row is done when three things hold:

  1. it comes from the results.pb of one benchmark job, with the delegate and the nodes it replaced (N/M) from that job's runtime_info.pb, or from the log's Replacing N out of M line where a session has no such file,
  2. it names the model file, the platform, the device id, the accelerator and the benchmark_model release,
  3. data/board.json was rebuilt from data/measurements.jsonl and the page shows it.

A number without those is not a row. This skill covers .tflite models on LiteRT; a LiteRT-LM bundle is one litert benchmark <bundle>.litertlm --ddp session per backend, collected by collect_lm.py (the board README, step 5). Every DDP session consumes device time billed to the Google Cloud project; the dry run prints every command it would run, so read it first. A run on the Mac you are on bills nothing.

Before you start

  • python3 with PyYAML, and protoc on PATH (brew install protobuf, or apt install protobuf-compiler).
  • For new DDP sessions: gcloud auth application-default login, a project with the Device Run API enabled (run_matrix.py --gcp-project or LITERT_GCP_PROJECT), and the litert CLI of LiteRT-CLI with the --ddp target (release 0.2.1 or newer; litert-cli-nightly has it too). Its DDP runs default to the LiteRT 2.2.0 benchmark_model (0.2.1); a row carries the version the job ran:
pip install litert-cli
  • For rows from a macOS host (Apple silicon; run_local.py exits on any other machine): nothing more; it fetches the macOS binary of the pinned release.

Loop

Work from the board folder, cd benchmark/leaderboard; every command below is relative to it, and the driver sits in ../driver/.

1. One model, one matrix entry. In ../driver/matrix.yaml add repo (the Hugging Face repo), file (one .tflite; a repo with several variants gets one entry per variant you want on the board), task (the repo's pipeline tag) and accelerators. Platforms and DDP devices are listed once under platforms.

Read the full file on GitHub · 96 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. 1mo ago Changed · +10 lines 67ed543134a0
  2. 1mo ago Changed 01387cc72e20
  3. 2mo ago Changed e9ae6626c200
  4. 2mo ago Changed 3d00a0718729
  5. 2mo ago First seen · 86 lines · 124 tokens per session scan A 2b7b4dbf6ab4

Subscribe to this mod's changes

benchmark-on-ddp is a skill published in the GitHub repository google-ai-edge/litert-samples (508 stars, last pushed 5d ago), licensed Apache-2.0. It adds 124 tokens to every session and 2,114 once invoked, about $0.0005 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-18.

Related

benchmark-on-ddp compared with skills from other repositories

benchmark-on-ddp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
benchmark-on-ddpgoogle-ai-edge/litert-samplesSkill5085d agoApache-2.0A124Claude Code, Codex
kotlin-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A55Claude Code
android-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A64Claude Code
solopi-aialipay/SoloPiSkill6.8kyesterdayApache-2.0A82Codex
argent-react-native-app-workflowsoftware-mansion/argentSkill3.3ktodayApache-2.0A41Claude Code, Codex
argent-tv-interactsoftware-mansion/argentSkill3.3ktodayApache-2.0A57Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill6916d agoMITA80Claude Code, Codex