Skip to content

Commit

Permalink
Merge remote-tracking branch 'ggerganov/master'
Browse files Browse the repository at this point in the history
* ggerganov/master: (291 commits)
  whisper : fix model path encoding in windows (ggerganov#2086)
  server : return utf-8 (ggerganov#2138)
  node : add audio_ctx and audio buffer params (ggerganov#2123)
  cmake : fix HIP/ROCm build (ggerganov#2102)
  node : add additional params (ggerganov#2000)
  js : remove un-needed request header from fetchRemote (ggerganov#2119)
  cmake : fix metal embed sources path (ggerganov#2110)
  main : dont print timings with --no-prints (ggerganov#2108)
  main : add options for temperature control (ggerganov#2088)
  whisper : switch back to F32 mask (#0)
  whisper.android : update example, add field to print timestamp (ggerganov#2072)
  cmake : fix json INTERFACE library (ggerganov#2069)
  main : fix double quote escaping in csv output (ggerganov#2090)
  metal : tune soft_max number of threads (#0)
  whisper : remove old flash attn code (#0)
  ggml : try fix ppc64 (#0)
  ggml : remove oboslete alibi code (skipme) (#0)
  talk-llama : sync llama.cpp
  sync : ggml
  ggml : optimize for ppc64le using VSX intrinsics (ggml/784)
  ...
  • Loading branch information
bygreencn committed May 14, 2024
2 parents 59bbd71 + d8356a1 commit 639766b
Show file tree
Hide file tree
Showing 176 changed files with 75,166 additions and 47,404 deletions.
2 changes: 2 additions & 0 deletions .devops/main-cuda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ COPY .. .
RUN make

FROM ${BASE_CUDA_RUN_CONTAINER} AS runtime
ENV CUDA_MAIN_VERSION=12.3
ENV LD_LIBRARY_PATH /usr/local/cuda-${CUDA_MAIN_VERSION}/compat:$LD_LIBRARY_PATH
WORKDIR /app

RUN apt-get update && \
Expand Down
176 changes: 174 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,164 @@ jobs:
make
ctest -L gh --output-on-failure'
ubuntu-22-cmake-sycl:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
dwhisper_sycl: [ON]
dcmake_c_compiler: [icx]
dcmake_cxx_compiler: [icpx]
arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]

continue-on-error: true

steps:
- name: Clone
uses: actions/checkout@v3

- name: add oneAPI to apt
shell: bash
run: |
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
- name: install oneAPI dpcpp compiler
shell: bash
run: |
sudo apt update
sudo apt install intel-oneapi-compiler-dpcpp-cpp
- name: install oneAPI MKL library
shell: bash
run: |
sudo apt install intel-oneapi-mkl-devel
- name: Clone
id: checkout
uses: actions/checkout@v3

- name: Build
id: cmake_build
run: |
source /opt/intel/oneapi/setvars.sh
mkdir build
cd build
cmake -DWHISPER_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
cmake --build . --config Release -j $(nproc)
ubuntu-22-cmake-sycl-fp16:
runs-on: ubuntu-22.04

strategy:
fail-fast: false
matrix:
dwhisper_sycl: [ON]
dcmake_c_compiler: [icx]
dcmake_cxx_compiler: [icpx]
arch: [linux/amd64, linux/arm64, linux/arm/v7, linux/ppc64le]

continue-on-error: true

steps:
- name: Clone
uses: actions/checkout@v3

- name: add oneAPI to apt
shell: bash
run: |
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
- name: install oneAPI dpcpp compiler
shell: bash
run: |
sudo apt update
sudo apt install intel-oneapi-compiler-dpcpp-cpp
- name: install oneAPI MKL library
shell: bash
run: |
sudo apt install intel-oneapi-mkl-devel
- name: Clone
id: checkout
uses: actions/checkout@v3

- name: Build
id: cmake_build
run: |
source /opt/intel/oneapi/setvars.sh
mkdir build
cd build
cmake -DWHISPER_SYCL_F16=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ..
cmake --build . --config Release -j $(nproc)
windows-msys2:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
include:
- { sys: UCRT64, env: ucrt-x86_64, build: Release }
- { sys: CLANG64, env: clang-x86_64, build: Release }

steps:
- name: Clone
uses: actions/checkout@v3

- name: Setup ${{ matrix.sys }}
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{matrix.sys}}
install: >-
base-devel
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-cmake
mingw-w64-${{matrix.env}}-SDL2
mingw-w64-${{matrix.env}}-openblas
- name: Build using make
shell: msys2 {0}
run: |
make -j $(nproc)
- name: Clean after building using make
shell: msys2 {0}
run: |
make clean
- name: Build using make w/ OpenBLAS
shell: msys2 {0}
run: |
make WHISPER_OPENBLAS=1 -j $(nproc)
- name: Build using CMake
shell: msys2 {0}
run: |
cmake -B build
cmake --build build --config ${{ matrix.build }} -j $(nproc)
- name: Clean after building using CMake
shell: msys2 {0}
run: |
rm -rf build
- name: Build using CMake w/ OpenBLAS
shell: msys2 {0}
run: |
cmake -B build -DWHISPER_OPENBLAS=ON
cmake --build build --config ${{ matrix.build }} -j $(nproc)
windows:
runs-on: windows-latest

Expand Down Expand Up @@ -416,6 +574,14 @@ jobs:
steps:
- name: Clone
uses: actions/checkout@v3
with:
path: whisper

- name: Clone
uses: actions/checkout@v3
with:
repository: ggerganov/ggml
path: ggml

- name: Install Java
uses: actions/setup-java@v3
Expand All @@ -428,9 +594,15 @@ jobs:

- name: Build
run: |
cd examples/whisper.android
cd whisper/examples/whisper.android
./gradlew assembleRelease --no-daemon
- name: Build with external ggml
run: |
export PATH_TO_GGML=$PWD/ggml
cd whisper/examples/whisper.android
./gradlew assembleRelease --no-daemon -PGGML_HOME=$PATH_TO_GGML
android_java:
runs-on: ubuntu-latest

Expand All @@ -454,7 +626,7 @@ jobs:
- name: Build
run: |
cd examples/whisper.android.java
chmod +x ./gradlew
chmod +x ./gradlew
./gradlew assembleRelease
java:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm install

- name: Compile addon.node
run: npx cmake-js compile -T whisper-addon -B Release
run: npx cmake-js compile -T addon.node -B Release

- name: Download test model
run: |
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
.vs/
.vscode/
.DS_Store
.vimspector.json
/CMakeSettings.json

build/
build-coreml/
Expand Down Expand Up @@ -58,4 +60,4 @@ benchmark_results.csv
cmake-build-debug/
.cxx/
.gradle/
local.properties
local.properties
Loading

0 comments on commit 639766b

Please sign in to comment.