Repository navigation
feat: build a DeepSelect wheel (sm_90a + sm_100a + sm_103a) - #17
Open
faresobeid wants to merge 1 commit into
Open
faresobeid wants to merge 1 commit into
faresobeid wants to merge 1 commit into
Conversation
faresobeid
marked this pull request as ready for review
October 13, 2026 17:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
deep-selectwheel to the kernel release, built from deepseek-ai/DeepSelect @ bfa4507 (v1.0.0 + Ascend).prime-rl wants it for the GLM-5.x / DeepSeek-V4 DSA indexer top-k (
fp8_indexer.py, todaytorch.topkover fp32 rows up to 131k wide).sm_100a/sm_103a. Thesm_90agencode line is commented out upstream only to save compile time. The script turns it on, so one wheel covers H100/H200 and B200/B300. There is nosm_120.setup.pycallslspcibefore it readsDEEP_SELECT_BUILD_TARGET_PLATFORM. Build containers have neitherlspcinor a GPU, so the script puts a one-linelspcistub onPATH.deep_select.topkvstorch.topk(same index sets) on sm_90/100/103, skipped elsewhere.Validated on H200 (CUDA 13.0, torch 2.13.0+cu130):
cuobjdumpshows sm_90a, sm_100a and sm_103a cubins.scripts/smoke_test.py deep-selectpasses.end). The selected values match torch.topk exactly in every row; index sets differ only where logits tie at the k boundary.Consumer PR in prime-rl: PrimeIntellect-ai/prime-rl#3958 (it needs a release of this wheel before it can pin it).