Skip to content

Adds a GitHub action to check that bitnet runs on Ubuntu, Mac OS, and ARM #274

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

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test-installation-instructions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test installation instructions

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
install:
name: install on (os=${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-24.04-arm", "ubuntu-latest","macos-latest"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
- name: conda setup
shell: bash -el {0}
run: |
conda create -n bitnet-cpp python=3.9
conda activate bitnet-cpp
- name: setup env
shell: bash -el {0}
run: |
pip install -r requirements.txt
huggingface-cli download microsoft/BitNet-b1.58-2B-4T-gguf --local-dir models/BitNet-b1.58-2B-4T
python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s

- name: run
shell: bash -el {0}
run: python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "you are a helpful assistant. what is the sun?"