diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38fc881..dc3730b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -426,6 +426,19 @@ jobs: name: whispercpp.jar path: bindings/java/build/libs/whispercpp-*.jar + quantize: + runs-on: ubuntu-latest + + steps: + - name: Clone + uses: actions/checkout@v3 + + - name: Test quantize + run: | + ./models/download-ggml-model.sh tiny.en + make quantize + ./quantize models/ggml-tiny.en.bin models/ggml-tiny.en-q4_0.bin q4_0 + # - name: Publish package # if: ${{ github.ref == 'refs/heads/master' }} # uses: gradle/gradle-build-action@v2 diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp index 64e8f35..b01d614 100644 --- a/examples/quantize/quantize.cpp +++ b/examples/quantize/quantize.cpp @@ -138,7 +138,7 @@ bool whisper_model_quantize(const std::string & fname_inp, const std::string & f // return false; //} - char word[128]; + char word[129]; for (int i = 0; i < n_vocab; i++) { uint32_t len;