feat(inference): add parakeet.cpp backend - #844
Open
sozercan wants to merge 1 commit into
Open
Conversation
Signed-off-by: Sertac Ozercan <sozercan@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds LocalAI v4.8.2 Parakeet speech-to-text support for CPU and CUDA runners.
Changes:
- Adds Parakeet backend selection, platform validation, and FFmpeg support.
- Implements secure GGUF downloading, caching, and LocalAI configuration.
- Adds runner definitions, release matrices, and CPU/GPU transcription tests.
Show a summary per file
| File | Description |
|---|---|
runners/parakeet-cpp-cuda.yaml |
Defines the CUDA runner. |
runners/parakeet-cpp-cpu.yaml |
Defines the CPU runner. |
pkg/utils/const.go |
Adds the backend constant. |
pkg/build/build.go |
Validates Parakeet platforms and runtimes. |
pkg/build/build_test.go |
Tests validation rules. |
pkg/aikit2llb/inference/runner.go |
Implements runtime model handling. |
pkg/aikit2llb/inference/runner_test.go |
Tests downloading, validation, and caching. |
pkg/aikit2llb/inference/parakeet.go |
Installs FFmpeg. |
pkg/aikit2llb/inference/parakeet_test.go |
Tests dependency installation. |
pkg/aikit2llb/inference/convert.go |
Selects the runtime base. |
pkg/aikit2llb/inference/convert_test.go |
Tests base selection. |
pkg/aikit2llb/inference/backend.go |
Selects and installs backend artifacts. |
pkg/aikit2llb/inference/backend_test.go |
Tests artifact selection and metadata. |
.github/workflows/test-docker-runner.yaml |
Adds CPU transcription CI. |
.github/workflows/test-docker-runner-gpu.yaml |
Adds CUDA transcription CI. |
.github/workflows/release-runners.yaml |
Adds release targets and size budgets. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 16/16 changed files
- Comments generated: 1
- Review effort level: Balanced
| // Python backends retain Ubuntu for their additional system libraries. | ||
| selfContainedBackend := len(c.Backends) == 0 || | ||
| (len(c.Backends) == 1 && slices.Contains([]string{utils.BackendLlamaCpp, utils.BackendVLLMCpp}, c.Backends[0])) | ||
| (len(c.Backends) == 1 && slices.Contains([]string{utils.BackendLlamaCpp, utils.BackendParakeetCpp, utils.BackendVLLMCpp}, c.Backends[0])) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Adds LocalAI v4.8.2 parakeet.cpp speech-to-text support for CPU and NVIDIA CUDA deployments.
Which issue(s) this PR fixes:
None.
Special notes for your reviewer:
Validation completed:
CUDA execution requires the existing self-hosted GPU workflow. ROCm support is intentionally out of scope.