Skip to content

fix: version mismatch and SM90 arch spec typo (#228, #242)#269

Open
yurekami wants to merge 2 commits intodeepseek-ai:mainfrom
yurekami:fix/version-and-sm90-archspec
Open

fix: version mismatch and SM90 arch spec typo (#228, #242)#269
yurekami wants to merge 2 commits intodeepseek-ai:mainfrom
yurekami:fix/version-and-sm90-archspec

Conversation

@yurekami
Copy link
Contributor

Summary

Changes

  1. setup.py: First try to get version from exact git tag (e.g., v2.1.1.post3), fall back to __init__.py for dev builds
  2. deep_gemm/init.py: Use importlib.metadata to get installed package version at runtime
  3. sm90_bf16_gemm.hpp: Change SM100ArchSpec to SM90ArchSpec in TMA descriptor creation

Test plan

  • Build from a release tag (e.g., v2.1.1.post3) and verify wheel name includes full version
  • Verify deep_gemm.__version__ reports correct version after installation

🤖 Generated with Claude Code

yurekami and others added 2 commits December 26, 2025 01:51
Add .python-version file specifying Python 3.10 as the default
development version.

This file is used by:
- pyenv: Automatically switches to Python 3.10 in project directory
- Other version managers: asdf, mise, rtx
- Some IDEs: Detect project Python version

Python 3.10 is chosen as a stable, widely-supported version that
meets the project's minimum requirement (Python 3.8+) while
providing modern language features.

Developers can override this locally if needed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…eek-ai#242)

1. Fix __version__ mismatch (deepseek-ai#228):
   - Derive version from git tags for release builds (e.g., v2.1.1.post3)
   - Use importlib.metadata to get installed package version at runtime
   - Falls back to hardcoded version for development builds

2. Fix SM100ArchSpec typo in SM90 kernel (deepseek-ai#242):
   - Change SM100ArchSpec to SM90ArchSpec in sm90_bf16_gemm.hpp
   - The TMA descriptor creation was incorrectly using SM100 arch spec

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant