---
id: pr-flashinfer-2344
repo: flashinfer-ai/flashinfer
pr: 2344
title: 'fix: explicitly set device to CPU for RNG state tensor'
author: cyx-6
date: '2026-01-13'
url: https://github.com/flashinfer-ai/flashinfer/pull/2344
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: c546c9a89321199d1430008bc7f3fba2227b4bb9
inclusion_reason: defer
changed_paths:
- flashinfer/sampling.py
- tests/utils/test_sampling.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2344
head_ref_oid: fb67d06ace528a7fe82b5cfd22dc42d4b9dff836
---
# fix: explicitly set device to CPU for RNG state tensor

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

## Changed Paths

- `flashinfer/sampling.py`
- `tests/utils/test_sampling.py`

## Evidence Bundle

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