Repository navigation
wllama v4.0.0 🚀
V4.0 is a big step for performance and model size. Inference is more than 2x faster, and the size limit of a model is gone: a GGUF file of any size can be loaded as-is. Key highlights:
- Up to 2.8x faster prompt processing and 2.5x faster generation (Chrome, CPU)
- No more model size limit: models bigger than 4GB are spread across multiple wasm instances
- Mixed CPU + WebGPU inference for models that do not fit in the GPU
- Faster model loading from the OPFS cache, and faster downloads over multiple connections
- Speculative decoding: MTP, DFlash, DSpark and Eagle3
- LoRA adapters
- Full-duplex realtime audio, video input,
saveSlotState/restoreSlotState, andtokenize/detokenize
The full benchmark (Chrome, Firefox and Safari) can be found in this comment.
View full release note: https://github.com/ngxson/wllama/blob/master/guides/intro-v4.md
What's Changed
- [autosync] llama.cpp b54752d by @ngxson in #322
- autosync: disable version bump by @ngxson in #323
- support video input by @ngxson in #324
- fix load error, read buffer, chat checkpoints; add ngram spec options by @ngxson in #325
- put js glue into wasm by @ngxson in #327
- add saveSlotState and restoreSlotState by @ngxson in #326
- enable wasm SIMD kernels and relaxed SIMD by @ngxson in #331
- fix ci: audio hang, x86 failures, hf space build by @ngxson in #332
- fix memory64 detection on Safari, load hang on abort by @ngxson in #333
- agents.md: add test case requirements by @ngxson in #334
- build: allow parallel docker builds from different worktrees by @ngxson in #335
- resume interrupted downloads by @ngxson in #336
- compat: load gguf files bigger than 2GB by @ngxson in #337
- raise Memory64 cap to 16GB by @ngxson in #339
- webgpu: skip idle queue waits, force device poll on firefox by @ngxson in #341
- run vitest headless by default by @ngxson in #342
- return the native error when an action fails by @ngxson in #343
- fix missing break for raw fields in glue parser by @ngxson in #344
- compat: use wasm exceptions with asyncify by @ngxson in #345
- ci: test the compat build, cache wasm-opt and ccache by @ngxson in #346
- webgpu: upload weights in small chunks, keep token embedding on GPU by @ngxson in #348
- use 32-bit memory for the main build, split big gguf files by @ngxson in #347
- keep token embedding on gpu for split models by @ngxson in #349
- refactor testing by @ngxson in #350
- webgpu: cap max buffer size at 2GB on wasm32 by @ngxson in #351
- split models bigger than 4GB across rpc workers by @ngxson in #352
- docs: recommend loading the GGUF as-is by @ngxson in #353
- less memory when loading on rpc workers by @ngxson in #354
- move dev/native-test to cpp/native-test by @ngxson in #355
- dev server to test on a phone or tablet by @ngxson in #357
- read models from the OPFS cache with a sync access handle by @ngxson in #356
- rpc workers with WebGPU: place the layers with the fit of llama.cpp by @ngxson in #358
- sync llama.cpp cbb1c1c by @ngxson in #359
- add tokenize() and detokenize() back by @ngxson in #360
- sync realtime, tts and systemone with llama-server by @ngxson in #361
- speculative decoding drafts (MTP, DFlash, DSpark, Eagle3) and LoRA adapters as files by @ngxson in #362
- LoRA adapters from Blobs with their scale at load time by @ngxson in #363
- readme: new llama.cpp logo in the banner by @ngxson in #365
- download a big file in parts over several connections by @ngxson in #364
- v4 guide, compat on Firefox only without relaxed SIMD, ignore a caller Range header by @ngxson in #367
- v4.0.0, sync llama.cpp 0b51bb2 by @ngxson in #368
- hf space: push one commit without history, delete the old LFS files first by @ngxson in #369
- npmignore: build caches and dev-only files by @ngxson in #370
- readme: update for v4 by @ngxson in #371
Full Changelog: 3.13.0...4.0.0