validate-dataset
/validate-dataset
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.
- Author
- flashinfer-ai ↗
- Repository
- flashinfer-bench ↗
- Licence
- Apache-2.0
- Last repository change
- 25.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.09.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
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.
Original author description
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.
How it works
- Usage
- Parameters
- Implementation
- See Also
SKILL.md preview
--- name: validate-dataset description: 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. --- # Validate Dataset Run structural, schema, and coverage checks on a FlashInfer Trace dataset. Produces a JSON report and optional text summary. ## Usage ```bash # 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 | File | Purpose | |------|---------| | `flashinfer_bench/data/validate.py` | Core validation logic: `validate_dataset()` | | `flashinfer_bench/data/validate_render.py` | Report models and rendering: `render_report()` | | `flashinfer_bench/cli/main.py` | CLI entry: `flashinfer-bench validate`, `flashinfer-bench validate-render` | ### Steps 1. **Run validation via CLI**: ```bash flashinfer-bench validate --dataset tmp/flashinfer-trace --disable-gpu ``` 2. **Or call Python API directly**: ```python from flashinfer_bench.data.validate import validate_dataset report = validate_dataset(dataset="tmp/flashinfer-trace", disable_gpu=True) ``` 3. **Re-render an existing report**: ```bash flashinfer-bench validate-render reports/report-20260413-120000.json ``` ### Check Categories | Category | What it checks | |----------|---------------| | `layout` | Duplicate definition names, directory structure, path-field consistency, blob file existence | | `definition` | Pydantic schema, reference Python syntax, axis references, descriptions, build reference (GPU) | | `workload` | Schema, axes > 0, shape inference, safetensors blobs, no solution/evaluation | | `solution` | Pydantic schema, entry_point format, sources, path-field consistency | | `trace` | Schema, must have solution+evaluation, solution existence, workload coverage | | `baseline` | Baseline solution/trace existence, build baseline solutions (GPU), PASSED status, workload coverage | | `benchmark` | GPU: 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](../../docs/flashinfer-trace/validate.mdx) — full documentation - [collect-workloads](../collect-workloads/SKILL.md) — collect workloads before validation - [add-reference-tests](../add-reference-tests/SKILL.md) — add reference tests for definitions
Versions
The database has no other skills named validate-dataset.
Database snapshot: 13.11.2026 · package version 97cd5e22fa93 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95add-reference-tests
Add pytest tests to validate reference implementations in the flashinfer-trace HuggingFace dataset against FlashInfer or SGLang ground truth. Use when validating kernel definitions, adding tests for new op_types, or verifying reference implementations are correct. - 95extract-kernel-definitions
Generate Definition JSON files for the flashinfer-trace HuggingFace dataset by harvesting them from a short SGLang inference pass (FlashInfer's @flashinfer_api(trace=...) dumper) — or, as a fallback, by manually transcribing the schema from SGLang sources when FlashInfer doesn't… - 100generate-data-set-context
Use this skill when the user wants to explore a dataset's context, or write or update documentation for the data it holds. Triggers include: 'explore this data set', 'document this data flow', 'generate dataset documentation', 'update data set context', 'what's in this dataset',… - 98eda-report
Run exploratory data analysis on a dataset and produce a structured report. Use when the user says "explore this dataset", "EDA on X", "analyze this data", "what's in this dataset", "summarize this data", "first look at the data", "understand this dataset before modeling", "data… - 90plot-eda
Design an exploratory data analysis workflow for a dataset. Use when asked to "explore this dataset", "run an EDA", or "what is in this data". - 100data-designer
Use when the user wants to create a dataset, generate synthetic data, or build a data generation pipeline. The argument is the description of the dataset to generate.