Skip to content

Conversation

Irfnfnkemed
Copy link
Contributor

  • Modify the device type check to allow kDLCUDAHost in addition to kDLCPU.
  • This change ensures that token bitmasks can be stored in pinned memory (kDLCUDAHost).

- Modify the device type check to allow kDLCUDAHost in addition to kDLCPU.
- This change ensures that token bitmasks can be stored in pinned memory (kDLCUDAHost)
…check

- Modify the device type check to allow kDLCUDAHost in addition to kDLCPU and kDLROCMHost.
-This change ensures that logits and mask can be stored in pinned memory.
Copy link
Collaborator

@Ubospica Ubospica left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@Irfnfnkemed Irfnfnkemed requested a review from Ubospica March 16, 2025 11:57
@Ubospica Ubospica merged commit e21a9f6 into mlc-ai:main Mar 18, 2025
13 checks passed
Seven-Streams pushed a commit to Seven-Streams/xgrammar that referenced this pull request Mar 18, 2025
…lc-ai#242)

- Modify the device type check to allow kDLCUDAHost in addition to
kDLCPU.
- This change ensures that token bitmasks can be stored in pinned memory
(kDLCUDAHost).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants