Test Parakeet CLI on Linux (OpenBLAS) #1
This file contains hidden or 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: Test Parakeet CLI on Linux (OpenBLAS) | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test-linux-inference: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential cmake libopenblas-dev wget ffmpeg git | |
| - name: Compile Patched Parakeet C++ | |
| run: | | |
| git clone --recursive https://github.com/mudler/parakeet.cpp.git | |
| cd parakeet.cpp | |
| # Apply the same patch we put in the AppImage | |
| sed -i 's/if (factor == 4)/if (true)/g' src/subsampling.cpp | |
| mkdir -p build && cd build | |
| cmake .. -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS | |
| make -j$(nproc) | |
| - name: Download Model & Prepare Audio | |
| run: | | |
| # Download model to workspace root | |
| wget "https://huggingface.co/Singla0009/Parakeet-models/resolve/main/indicconformer-hindi.f32.gguf?download=true" -O model.gguf | |
| # Create a valid 16kHz Mono WAV file | |
| ffmpeg -f lavfi -i anullsrc=r=16000:cl=mono -t 2 -c:a pcm_s16le test_audio.wav | |
| - name: Run Inference Test | |
| run: | | |
| CLI_PATH=$(find parakeet.cpp/build -name parakeet-cli -type f -executable | head -n 1) | |
| echo "Found CLI at: $CLI_PATH" | |
| echo "Running inference using OpenBLAS..." | |
| $CLI_PATH transcribe --model model.gguf --input test_audio.wav --decoder ctc --lang hi | |
| echo "TEST PASSED SUCCESSFULLY! No core dumps!" |