Fix bugs for Whisper models (#99) #328
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Clean up diskspace | |
run: sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" | |
- uses: Jimver/cuda-toolkit@v0.2.16 | |
id: cuda-toolkit | |
with: | |
cuda: '11.8.0' | |
linux-local-args: '["--toolkit"]' | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.5' | |
- run: nvcc -V | |
- uses: actions/checkout@v3 | |
- name: Build ffmpeg | |
run: cd third_party && bash install_ffmpeg.sh | |
- name: Install cutlass | |
run: cd third_party && bash install_cutlass.sh | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build | |
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
-DWITH_CUDA=ON | |
-DWITH_FFMPEG=ON | |
-DWITH_CUTLASS=ON | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Test | |
run: ctest --verbose -C ${{env.BUILD_TYPE}} --test-dir ${{github.workspace}}/build/src/libllm | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: linux-build | |
path: ${{github.workspace}}/build | |
release: | |
permissions: | |
contents: write | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: download | |
uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
- name: Create release package | |
run: ls -lh artifacts/linux-build/ && | |
cd artifacts/linux-build/ && | |
chmod +x llm && | |
tar -cvzf release-linux-x64-cuda.tar.gz | |
llm | |
libllm.so | |
libllmplugincublas.so | |
libllmpluginffmpeg.so | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: linux-package | |
path: artifacts/linux-build/release-linux-x64-cuda.tar.gz | |
- name: create-release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
artifacts/linux-build/release-linux-x64-cuda.tar.gz |