From 4e9ada18bd00868bdb45abf26ce784ce7de84f49 Mon Sep 17 00:00:00 2001 From: meloalright Date: Sat, 6 Apr 2024 18:44:35 +0800 Subject: [PATCH] + Sophon CI --- .github/workflows/Sophon.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/Sophon.yml diff --git a/.github/workflows/Sophon.yml b/.github/workflows/Sophon.yml new file mode 100644 index 0000000..b60f419 --- /dev/null +++ b/.github/workflows/Sophon.yml @@ -0,0 +1,31 @@ +name: Sophon + +on: + push: + branches: + - '*' + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + override: true + + - name: Repl + run: | + cargo build --features="repl" + + - name: LLama + run: | + ./target/release/3body -V + git clone https://huggingface.co/huantian2415/vicuna-13b-chinese-4bit-ggml + ./target/release/3body -c 'let 智子 = 智子工程({ "type": "llama", "path": "./vicuna-13b-chinese-4bit-ggml/Vicuna-13B-chinese.bin", "prompt": "你是三体文明的智子" }); 智子.infer(智子, "中国最佳科幻小说是哪个")'