Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: 🐛 Bug Report

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are the emojis in the "name" necessary? i don't get it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ecosystem convention — vLLM (bug, feature) and PyTorch (bug, feature) use this exact 🐛/🚀 pair in their template names (SGLang too, with 🐞). They help visual scanning in the template chooser, so keeping them.

description: >
Report something broken, wrong, or slower than it used to be — correctness
issues, crashes, build/install failures, or performance regressions. For new
capabilities or speedups, use 🚀 Kernel / Feature Request instead.
labels: ["bug"]
body:
- type: checkboxes
id: presubmit
attributes:
label: Before submitting
options:
- label: I have searched existing issues and did not find a solution or an existing report.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for future, i believe it's common practice that a bot flags dup issues and "threatens" to close if not justifying against the duplication. e.g. claude code repo

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed — a dedup bot that flags likely duplicates and auto-closes unless the reporter justifies (like anthropics/claude-code) is a good follow-up. Out of scope here; this checkbox is the manual placeholder until then.

required: true
- type: textarea
id: environment
attributes:
label: Environment
description: >
Run `python -m flashinfer.collect_env` (or `flashinfer collect-env`)
in the exact environment (same venv/container) where the bug
reproduces and paste the full output below. If `import flashinfer` itself is broken, download the
standalone script and run it with plain Python:
`curl -OL https://raw.githubusercontent.com/flashinfer-ai/flashinfer/main/flashinfer/collect_env.py && python collect_env.py`.
The report includes which cuDNN/cuBLAS/CUDA libraries are *actually
loaded* vs merely installed — this resolves most "works on my machine"
divergence, so please don't trim it.
value: |
<details>
<summary>Output of python -m flashinfer.collect_env</summary>

```text
PASTE OUTPUT HERE
```

</details>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
validations:
required: true
- type: textarea
id: description
attributes:
label: Bug description
description: What happened, and what did you expect to happen instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 33ebdfd — split a dedicated optional "Error messages / logs" textarea (render: text) out of the reproduction field, following the claude-code structure. The repro field now asks only for the script.

validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Minimal reproduction
description: >
Smallest self-contained script that reproduces the issue — a short
standalone Python script is far more actionable than a full
`vllm serve ...` invocation. Include exact shapes/dtypes and the
backend selected (fa2/fa3/cudnn/trtllm/cutlass/...). If the failure
involves JIT compilation, re-run with `FLASHINFER_JIT_VERBOSE=1` and
attach the log.
render: python
validations:
required: true
- type: textarea
id: extra
attributes:
label: Additional context
description: Stack traces, logs, related issues, workarounds you tried.
186 changes: 186 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
name: 🚀 Kernel / Feature Request
description: >
Request a kernel, hardware enablement, framework integration, API, or
performance improvement. For something broken, wrong, or slower than it
used to be, use 🐛 Bug Report instead.
title: "[Feature]: "
labels: ["feature request"]
body:
- type: markdown
attributes:
value: |
Thanks for helping us understand the request and its impact. Please use
public, non-confidential information. **Only the first four fields are
required** — the optional fields below them help the team scope and
prioritize faster, so fill in what you can.

- type: checkboxes
id: presubmit
attributes:
label: Before submitting
options:
- label: I have searched existing issues and this request has not been filed yet.
required: true

- type: textarea
id: problem
attributes:
label: Problem
description: >
Describe the problem and what is blocked or inefficient today. If you
have a trace/profile or a minimal script that demonstrates it, link or
attach it here.
placeholder: |
Today, users cannot...
The current behavior is...
validations:
required: true

- type: textarea
id: requested-outcome
attributes:
label: Requested outcome
description: >
Describe the capability or behavior you want. Focus on the outcome
rather than prescribing an implementation.
placeholder: |
Add support for...
The public API or framework should be able to...
validations:
required: true

- type: dropdown
id: hardware
attributes:
label: Target hardware
description: Select every confirmed target.
multiple: true
options:
- SM80 / SM86 (A100, A30, RTX 30-series)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SM87 Orin? (avoid getting filed into unknown)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in edd2607 — folded into the Ampere row: SM80 / SM86 / SM87 (A100, A30, RTX 30-series, Jetson Orin).

- SM89 (L4, L40S, RTX 40-series)
- SM90 (H100, H200, H20)
- SM100 (B200, GB200)
- SM103 (B300, GB300)
- SM120 (RTX PRO 6000, RTX 50-series)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SM110 Thor? (avoid getting filed into unknown)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in edd2607 as SM110 (Jetson AGX Thor, DRIVE AGX Thor). Double-checked the number since Thor was renumbered: CC 10.1 (sm_101) in the CUDA 12.x era → CC 11.0 (sm_110) since CUDA 13.0 — consistent with our is_sm110a_supported (major == 11 and CUDA ≥ 13.0) and nvcc 13.x's arch list (compute_110 present, compute_101 gone).

- SM121 (GB10 — DGX Spark, RTX Spark)
- Future architecture
- Hardware-independent
- Other or unknown
validations:
required: true

- type: dropdown
id: inference-engine
attributes:
label: Inference engine
description: Select every engine or integration path this applies to.
multiple: true
options:
- vLLM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for future, this info can be used to auto-label stuff with a git action

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed — that's part of why these are dropdowns rather than free text: the selections render machine-parseably in the issue body, so a labeler action can map hardware/engine choices to labels. Good follow-up once the templates land.

- SGLang
- TRT-LLM
- PyTorch native
- Custom / other
- Not applicable
validations:
required: true

- type: markdown
attributes:
value: |
---
**Everything below is optional** — the more you fill in, the faster the
team can act on the request.

- type: input
id: models
attributes:
label: Affected model or model family
description: >
Exact checkpoint or family with a public link, if the request is
model-driven.
placeholder: "Example: Qwen3.5-397B-A17B-NVFP4 - https://huggingface.co/..."
validations:
required: false

- type: textarea
id: workload
attributes:
label: Workload and configuration
description: >
The single most useful section for kernel/performance requests — enough
detail to identify the operator path and representative shapes. For the
environment line, paste the output of `python -m flashinfer.collect_env`.
value: |
- Data type and quantization:
- Batch size or request concurrency:
- Sequence lengths or token counts:
- Parallelism: TP / EP / DP / PP / disaggregated
- Relevant shapes: heads, head dimension, hidden size, experts, top-k, page size, or other
- Environment: output of `python -m flashinfer.collect_env`
validations:
required: false

- type: textarea
id: alternatives
attributes:
label: Current workaround
description: >
The workaround, fallback, or alternative currently used and its
limitations.
placeholder: "Example: We currently use Marlin, but it is slower for these shapes and requires an extra repack."
validations:
required: false

- type: dropdown
id: impact-type
attributes:
label: Impact
description: Select all outcomes that apply.
multiple: true
options:
- Missing model or hardware support
- Production deployment blocker
- Correctness or numerical-quality risk
- Crash, hang, or reliability risk
- Throughput
- Latency
- Memory capacity or bandwidth
- Startup, compilation, or autotuning time
- API usability or integration complexity
- Testing, maintainability, or documentation
- Other
validations:
required: false

- type: textarea
id: acceptance-criteria
attributes:
label: Acceptance criteria
description: >
How maintainers can verify completion — measurable thresholds for
performance requests, correctness tests for new functionality.
placeholder: |
- Passes ... correctness tests across ... shapes and dtypes.
- Achieves at least ... with no more than ... regression elsewhere.
validations:
required: false

- type: textarea
id: scope-and-dependencies
attributes:
label: Related work, dependencies, or suggested scope
description: >
Related issues/PRs, upstream dependencies, prerequisite kernels/APIs,
or an implementation outline.
validations:
required: false

- type: input
id: timing
attributes:
label: Timing or release need
description: A concrete external milestone or required release, only if one exists.
placeholder: "Example: Needed for v0.7.x or public launch on 2026-10-15"
validations:
required: false
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ FlashInfer is a GPU kernel library for LLM serving that uses **JIT (Just-In-Time
| Run multi-GPU test | `mpirun -np 4 pytest tests/comm/test_allreduce_unified_api.py` |
| Run benchmark | `python benchmarks/flashinfer_benchmark.py --routine <name> <flags>` |
| Run linting | `pre-commit run -a` |
| Dump environment report (bug reports) | `python -m flashinfer.collect_env` (or `flashinfer collect-env [--json]`) |
| Install pre-commit hooks | `pre-commit install` |
| Clear JIT cache | `rm -rf ~/.cache/flashinfer/` |
| Enable API logging (basic) | `export FLASHINFER_LOGLEVEL=1` |
Expand Down
19 changes: 19 additions & 0 deletions flashinfer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ def cli(ctx, download_cubin_flag):
found_nvcc = False


@cli.command("collect-env")
@click.option("--json", "as_json", is_flag=True, help="Emit JSON instead of text")
def collect_env_cmd(as_json):
"""Dump a full environment report for bug reports.

Covers versions (flashinfer/torch/vllm/sglang/cudnn/...), GPU and driver
properties, and loaded-vs-installed GPU library disambiguation. Paste the
output into GitHub issues.
"""
from .collect_env import collect_env_info, format_report
import json as json_mod

report = collect_env_info()
if as_json:
click.echo(json_mod.dumps(report, indent=2))
else:
click.echo(format_report(report))


@cli.command("show-config")
def show_config_cmd():
"""Show configuration"""
Expand Down
Loading
Loading