-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# encodec.cpp | ||
|
||
High-performance inference of [Meta's Encodec](https://github.com/facebookresearch/encodec) deep learning based audio codec model: | ||
|
||
- Plain C/C++ implementation without dependencies using [ggml](https://github.com/ggerganov/ggml) | ||
|
||
The entire implementation of the model is contained in 3 source files: | ||
|
||
Tensor operations: ggml.h / ggml.c | ||
Inference: encodec.h / encodec.cpp | ||
Utils operations: encoder.h / encoder.cpp | ||
|
||
## Roadmap | ||
|
||
- [ ] Mixed F16 / F32 precision | ||
- [ ] 4-bit / 8-bit quantization support | ||
- [ ] Add Encodec's original language model | ||
- [ ] Support of 48khz model | ||
|
||
|
||
## Implementation details | ||
|
||
- The core tensor operations are implemented in C ([ggml.h](ggml.h) / [ggml.c](ggml.c)) | ||
- The encoder-decoder architecture and the high-level C-style API are implemented in C++ ([encodec.h](encodec.h) / [encodec.cpp](encodec.cpp)) | ||
- Sample usage is demonstrated in [main.cpp](examples/main) | ||
|
||
## Quick start |