Skip to content

Commit

Permalink
Add options & unit tests for cibuildwheel (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-plus authored Oct 30, 2023
1 parent 2552da6 commit 972b0de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/python_compile_wheel.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: cp*
CIBW_SKIP: "*-win32 *_i686 *musllinux*"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {package}/tests/test_chatglm_cpp.py

- uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ pip install git+https://github.com/li-plus/chatglm.cpp.git@main
pip install .
```
Pre-built wheels for CPU backend on Linux / MacOS / Windows are published on [release](https://github.com/li-plus/chatglm.cpp/releases). For CUDA / Metal backends, please compile from source code or source distribution.
**Using pre-converted ggml models**
Here is a simple demo that uses `chatglm_cpp.Pipeline` to load the GGML model and chat with it. First enter the examples folder (`cd examples`) and launch a Python interactive shell:
Expand Down

0 comments on commit 972b0de

Please sign in to comment.