Repository navigation
Conversation
|
@mirek190 Is this compression format generic and reusable across other models, or is it hardcoded specifically for prarakeet-tdt? |
|
The compression techniques are reusable, but our current implementation is specifically scoped to Bark/Parakeet-TDT. Do you think to use that with other models? We could extend that in the future. |
|
@mirek190 My current thought is: if the Bark format is general and model-independent, we could add a shared framework interface so future models can reuse it. If it is an ad hoc format specific to Bark, I'd prefer to keep conversion to GGUF outside the runtime. Supporting it natively would otherwise set a precedent for maintaining arbitrary model-specific formats. |
Adds native loading of the publisher's original Bark 3.0 Standard and Plus
model.barkcheckpoints to the existingparakeet_tdtcommunity family. The compressed file stays small on disk; the C++ reader reconstructs tensors during model/session preparation without Python inference, an expanded safetensors checkpoint or a temporary GGUF.Standalone on current main, including merged Pro (#1130) and Plus (#1131) support. This PR remains independent of the Standard GGUF port (#1132), which retains its own conversion and package validation. It adds one model-local compressed-loading route for both models, reusing the merged Bark prefix/timestamps, CPU graph allocation policy, VAD/hotwords and buffered streaming.
Implementation
bark-levels-v3reader: row-level K=2/K=3 codebooks, int5/int6 scaled tensors, raw tensors and XZ side blobs; exact compatibility transforms for the existing weight loader.prepare_bark_packed.py --variant standard|plustool: pinned checkpoint/base-sidecar SHA256, vocabulary/config checks, unchanged compressed bytes, English spec v1, tokenizer, provenance, NOTICE and full CC-BY-4.0 license. No unpublished model-manager downloads.barksource-format tag. No shared GGML/CUDA/Vulkan kernels or parallel-runtime changes. Pro and ordinary Parakeet/Phonon GGUF routes are retained.Storage (decimal MB)
.barkWeights still expand in RAM/VRAM. This is compressed loading, not low-bit packed GPU execution. Pro distributes ordinary BF16 safetensors (~1.25 GB), not this compressed format.
Five-minute full-context comparison: exact mixed-F16 GGUF / original packed checkpoint
Windows 11, Ryzen 7950X3D, RTX 3090 24 GiB, eight inference threads; CUDA 12.4 / Vulkan SDK 1.4.350.0. Same 299.99375-second 16 kHz mono input, backend/options and paired fresh processes. GPU timing: median of final two of three full requests after a short warm-up; CPU: one full request after a short warm-up. Memory sampled every 50 ms includes weights, graphs, temporaries and pools; device-wide VRAM can include desktop/WDDM variation. Inference times exclude model loading. Single paired measurements do not establish a general throughput gain.
The tradeoff is about 5-6 seconds of extra cold startup for decoding, paid at model/session preparation rather than every request. CUDA inference is essentially unchanged in this pass; Vulkan packed runs were about 3-4% slower. The C++ runtime files are byte-for-byte identical to the version used for these measurements; the extraction changes preparation tooling and PR scope.
Latest main-merge checks: current main
aeb7bcf1is merged, with the overlapping Plus/Standard docs and variant tests resolved. The compressed-reader and Bark inference C++ sources are unchanged. CPU-only and CUDA/Vulkan builds, 12 focused CTest executions, 23 converter regressions, four packed-package tests and catalog checks pass. All 54 native packed comparisons retain exact text and word timestamps on CPU/CUDA/Vulkan. Public CLI, direct.bark, Pro BF16 and stock Parakeet Q8 regressions also pass. Timing tables are retained from the existing measurements.Validation
.barkpath; Pro BF16 and stock Parakeet Q8 GGUF regressions pass.English only. Buffered streaming/VAD/windowing can change context and recognition; this is not native cache-aware streaming. The publisher emits
Yeah.on the one-second silence fixture; unfiltered inference preserves that behavior. Metal/HIP, corpus WER and compressed GPU kernels are not validated or claimed.Download/build/package/CLI/server instructions | Validation, timing/memory methodology and reproduction commands