agentleFS
flashinfer-aiflashinfer-ai/flashinfer-bench/.claude/skills/validate-dataset/SKILL.md

validate-dataset

Skill288 starsChanged 7 months agoApache-2.0View on GitHub

Validate the correctness and completeness of a FlashInfer Trace dataset. Use when checking dataset quality, verifying definitions/workloads/solutions/traces, debugging data issues, or preparing a dataset for release.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run structural, schema, and coverage checks on a FlashInfer Trace dataset.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validate Dataset

Run structural, schema, and coverage checks on a FlashInfer Trace dataset. Produces a JSON report and optional text summary.

Usage

# Full validation (including GPU benchmark)
/validate-dataset

# Skip GPU benchmark
/validate-dataset --disable-gpu

# Validate specific op_type or definition
/validate-dataset --op-types mla_paged --disable-gpu
/validate-dataset --definitions rmsnorm_h4096 --disable-gpu

Parameters

  • --dataset: Dataset root (default: FIB_DATASET_PATH env var)
  • --op-types: Filter by op_type (union with --definitions)
  • --definitions: Filter by definition name
  • --checks: Comma-separated subset of: layout,definition,workload,solution,trace,baseline,benchmark
  • --disable-gpu: Skip benchmark checks (default: GPU enabled)
  • --outputs: Comma-separated output targets: stdout,json,text (default: all three)
  • --output-folder: Report output directory (default: <dataset>/reports/)

Implementation

Files

FilePurpose
flashinfer_bench/data/validate.pyCore validation logic: validate_dataset()
flashinfer_bench/data/validate_render.pyReport models and rendering: render_report()
flashinfer_bench/cli/main.pyCLI entry: flashinfer-bench validate, flashinfer-bench validate-render

Steps

  1. Run validation via CLI:
    flashinfer-bench validate --dataset tmp/flashinfer-trace --disable-gpu
  2. Or call Python API directly:
    from flashinfer_bench.data.validate import validate_dataset
    report = validate_dataset(dataset="tmp/flashinfer-trace", disable_gpu=True)
  3. Re-render an existing report:
    flashinfer-bench validate-render reports/report-20260413-120000.json

Check Categories

CategoryWhat it checks
layoutDuplicate definition names, directory structure, path-field consistency, blob file existence
definitionPydantic schema, reference Python syntax, axis references, descriptions, build reference (GPU)
workloadSchema, axes > 0, shape inference, safetensors blobs, no solution/evaluation
solutionPydantic schema, entry_point format, sources, path-field consistency
traceSchema, must have solution+evaluation, solution existence, workload coverage
baselineBaseline solution/trace existence, build baseline solutions (GPU), PASSED status, workload coverage
benchmarkGPU: run baseline + reference via Benchmark.run_all() (lightweight config)

Report Output

  • JSON and text reports are timestamped (report-YYYYMMDD-HHMMSS.json/.txt) to prevent overwriting
  • Reports go to <dataset>/reports/ by default
  • See docs/flashinfer-trace/validate.mdx for full report structure and examples

See Also

  • docs/flashinfer-trace/validate.mdx — full documentation
  • collect-workloads — collect workloads before validation
  • add-reference-tests — add reference tests for definitions

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.