Skip to content

Commit

Permalink
Check out and build a specific version of bitsandbytes
Browse files Browse the repository at this point in the history
  • Loading branch information
mryab committed Feb 11, 2025
1 parent 801bb4f commit fd69b64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-on-modal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

jobs:
test:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
modal run modal_ci.py::run_tests
codecov:
measure_coverage:
runs-on: ubuntu-latest
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
Expand Down
8 changes: 7 additions & 1 deletion modal_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
.apt_install(["git", "procps", "build-essential", "cmake"])
.pip_install_from_requirements("requirements-dev.txt")
.pip_install_from_requirements("requirements.txt")
.pip_install("bitsandbytes==0.45.2")
.run_commands(
[
"git clone --branch 0.45.2 --depth 1 https://github.com/bitsandbytes-foundation/bitsandbytes.git",
"cd bitsandbytes && cmake -DCOMPUTE_BACKEND=cpu -S . && make && pip --no-cache install . ",
]
)
.add_local_dir("hivemind", remote_path="/root/hivemind/hivemind")
.add_local_file("requirements.txt", remote_path="/root/hivemind/requirements.txt")
.add_local_file("requirements-dev.txt", remote_path="/root/hivemind/requirements-dev.txt")
Expand All @@ -23,6 +28,7 @@

codecov_secret = modal.Secret.from_dict({"CODECOV_TOKEN": os.getenv("CODECOV_TOKEN")})


def setup_environment():
os.chdir("/root/hivemind")

Expand Down

0 comments on commit fd69b64

Please sign in to comment.