What problem does it solve?
Auto-collect real-world workloads produced by SGLang inferences using FlashInfer logging, then sanitize results for inclusion in the flashinfer-trace dataset and preparation for PR submissions.
Core Features & Use Cases
- Auto-detect and collect workloads from definitions across op_types using SGLang + FlashInfer Level 10 logging.
- Sanitize per-call dumps into flashinfer-trace JSONL and safetensors for compact, reproducible workloads.
- Default to sglang mode for end-to-end collection, with a direct mode fallback when FlashInfer APIs are not wired into SGLang.
- Map raw dumps to the flashinfer-trace schema, align plan/run dumps, and prepare metadata for PRs to HuggingFace.
- Output is ready for per-definition HuggingFace PRs, including workload JSONL, safetensors, and definition metadata.
Quick Start
Run the collect_workloads.py script in sglang mode with your target definitions and a flashinfer-trace directory to start automatic collection, sanitization, and optional PR submission.