-
Notifications
You must be signed in to change notification settings - Fork 0
Add pyproject and CI wheel build configuration #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b31f01c
05270d9
68cfaa0
7e38eed
008b58a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Build Wheels | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main ] | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| sm: [80, 90] | ||
| env: | ||
| TORCH_CUDA_ARCH_LIST: ${{ matrix.sm }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.10' | ||
| - name: Install build tooling | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install build | ||
| - name: Build wheel | ||
| run: | | ||
| python -m build --wheel |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| [build-system] | ||
| requires = [ | ||
| "setuptools>=61", | ||
| "wheel", | ||
| "torch==2.1.0", | ||
|
||
| "triton==2.1.0", | ||
|
||
| ] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "stream-attention" | ||
| version = "1.0.0" | ||
| description = "Production-ready multi-GPU FlashAttention implementation with support for extremely long contexts" | ||
| authors = [{name = "StreamAttention Team", email = "streamattention@example.com"}] | ||
| readme = "README.md" | ||
| license = {file = "LICENSE"} | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PyYAML is imported but not declared as a dependency; add "pyyaml" to [project].dependencies to fix ModuleNotFoundError. (Based on your team's feedback about pytest failing with ModuleNotFoundError: yaml.) Prompt for AI agents |
||
| "torch==2.1.0", | ||
| "triton==2.1.0", | ||
| ] | ||
|
|
||
| [tool.stream_attention] | ||
| cuda_version = "12.1" | ||
| triton_version = "2.1.0" | ||
Uh oh!
There was an error while loading. Please reload this page.