---
id: pr-flashinfer-2140
repo: flashinfer-ai/flashinfer
pr: 2140
title: Use global TuningConfig, to fix memory leak caused by AutoTuner LRU cache and dynamic lambda TuningConfig
author: juju812
date: '2025-11-25'
url: https://github.com/flashinfer-ai/flashinfer/pull/2140
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: d0d99d219b536f492e3c9bcdaa00f2766463d351
inclusion_reason: defer
changed_paths:
- flashinfer/autotuner.py
- flashinfer/gemm/gemm_base.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2140
head_ref_oid: 79a3721de4cdf0a08e81d3870b57f02b6aa34a13
---
# Use global TuningConfig, to fix memory leak caused by AutoTuner LRU cache and dynamic lambda TuningConfig

- Repository: `flashinfer-ai/flashinfer`
- PR: [2140](https://github.com/flashinfer-ai/flashinfer/pull/2140)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `flashinfer/autotuner.py`
- `flashinfer/gemm/gemm_base.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-2140`
