Skip to content

packaging: ship the 27B's CUDA sources (qwen3_5/cuda/b16.cu, b16.cpp) - #66

Closed
taussoe wants to merge 1 commit into
ashhart:mainfrom
taussoe:fix/qwen27-cuda-package-data
Closed

taussoe wants to merge 1 commit into
ashhart:mainfrom
taussoe:fix/qwen27-cuda-package-data

Conversation

@taussoe

@taussoe taussoe commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Problem

A pip-installed TensorFold 0.3.6.1 (pip install git+https://github.com/ashhart/[email protected], inside
nvcr.io/nvidia/pytorch:26.07-py3 on a DGX Spark) serving turboderp/Qwen3.8-27B-exl3 (3.00bpw) fails at the first
prompt:

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.12/dist-packages/tensorfold/families/qwen3_5/cuda/b16.cpp'

[tool.setuptools.package-data] lists the CUDA sources of every family except tensorfold.families.qwen3_5.cuda.
The test suite runs from the source tree, so it does not see this.

Fix

One line in pyproject.toml: "tensorfold.families.qwen3_5.cuda" = ["*.cu", "*.cpp"].

Checked

With the fix, the same install serves the pack on one DGX Spark: drafted == serial 9/9, a 33k-token prompt at 921
tok/s with the hidden fact found, decode 83.0 / 46.2 / 67.9 / 42.0 tok/s on the standard cells.

🤖 Generated with Claude Code

A pip-installed TensorFold serving a 27B EXL3 pack failed at its first prompt:
FileNotFoundError: .../tensorfold/families/qwen3_5/cuda/b16.cpp, since
package-data listed every CUDA family's sources but this one. Tests run from the
source tree, so they did not see it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RgHrzgLoSTDm9VAdr5jVb7
@ashhart

ashhart commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Thank you, @taussoe. Your fix shipped in 0.3.6.2 under your name (0e9b637a). We added a test that checks every CUDA source
and data file under src against package-data: on 0.3.6.1 it names b16.cu and b16.cpp, and a wheel built from 0.3.6.2
carries all 34 CUDA sources. Thanks for testing the pip install, which our source-tree tests missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

landed Landed on main by the maintainers; the commits keep the contributor's authorship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants