Randozart/VITRIOL
حول
Experimental local LLM inference for old hardware: in-tree llama.cpp fork, sparse KV, MTP, VRAM governor, Rust tooling.
الذكاء الاصطناعي وتعلّم الآلةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلVITRIOL
"Visita Interiora Terrae Rectificando Invenies Occultum Lapidem"
(Visit the Interior of the Earth, by Rectifying you will find the Hidden Stone)
Why VITRIOL?
VITRIOL is my attempt at using every optimization possible to run modern AI models on old hardware that would have no business running them otherwise. I am talking here specifically about my old desktop PC with a narrow PCIe bus, an outdated GPU, a CPU without AVX2 instructions, so offloading isn't even practical. With those constraints in mind I had a simple question: Could I stream directly from system RAM to GPU. It took a while, but I managed through a solid direct memory access system and a custom copy engine. Every optimization I am doing now is really one big mad computer science experiment to make old hardware punch above its weight, and possibly introduce those optimizations for newer hardware. This means VITRIOL is not a stable repo in the slighest. Not yet at least. I am trying to use the latest papers and research on LLM inference to squeeze every bit of performance out of my silicon, and I hope this comes to your benefit as well.
Regarding the name, in alchemy, vitriol was considered the ultimate catalyst for transmuting matter. This is something this application aims to do as well. To transform old hardware into a high performant AI transformer. Lead into gold. You know the drill. Aditionally, around the 15th century, the esoteric backcronym was formed: "Visita Interiora Terrae Rectificando Invenies Occultum Lapidem". In a way, this is what we are doing. We are reaching down into the bowels of the computer, rectifying the data streams, and running inference on our newfound philosopher's stone. Yes, I know how incredibly silly this all sounds, but it makes me happy to be using archaic alchemical terminology. Regarding the logo: In alchemical texts and artwork, vitriol was often depicted as a "Green Lion devouring the Sun". This is a metaphor for sulfuric acid dissolving base metals (symbolically represented by the green lion) to extract and purify precious gold (the alchemical symbol for which is the sun).
VITRIOL is an experimental fork of llama.cpp for running GGUF models on hardware with limited VRAM. If the weights fit, keep them on the GPU. For mixture-of-experts models that are too large, VITRIOL can keep expert weights in system RAM and move them to the GPU as needed. There are also options to shrink the KV cache and save session state across restarts.
Quick start
This example is for Linux with an RTX 30-series GPU, the CUDA toolkit, CMake, Make, and a compatible host compiler. See the toolchain notes for the compiler requirements.
git clone https://github.com/Randozart/VITRIOL.git
cd VITRIOL
CUDA_ARCHITECTURES=86 ./scripts/build-llama-server.sh --backend cuda
VITRIOL_MODE=off ./scripts/vitriol serve -m /path/to/model.gguf -c 4096 -p 1 --host 127.0.0.1
Use a model that fits in your available VRAM with room for the KV cache. With a fresh configuration, check the server from a second terminal with curl -f http://127.0.0.1:8279/health. For other GPUs, adjust CUDA_ARCHITECTURES to match your cards.
The launcher reads ~/.vitriol/config. See the configuration reference and example profiles for multi-GPU setups and longer contexts. For systemd and checkpointing, see the operations guide.
Terminal dashboard
Run vitriol tui to see model throughput, slot usage, and GPU placement. The screenshots use demo telemetry and a sample coding session.
Vitriolum is the default theme.

Dashboard in Aethership

Caduceus catalog in Vitriolum

Officina
Officina is the terminal coding agent developed in this repo. It works with upstream llama.cpp as well as VITRIOL. With VITRIOL it can display live inference speed and context usage. Officina setup and docs.

Officina in Aethership

Further reading
- Architecture explains where weights, KV cache, and saved sessions live.
- Benchmarks report throughput at measured context depths. Experiment verdicts record what was tried and why some approaches were dropped.
- Documentation index covers the rest of the repository, including distributed inference.
Provenance
- The engine comes from llama.cpp and ggml. VITRIOL's work on top includes host-RAM expert streaming, expert caching and prefetch, sparse KV eviction, prompt-state persistence, and GPU placement. Engine import and changes.
- VITRIOL uses TurboQuant-style KV compression and several forms of speculative decoding, including MTP and DFlash. Kintsugi contributed the reference for HEAD2, raw-gate Gated Delta Net and cell-level KV tiering. The Escha port uses ExLlamaV3's CUDA headers. Decode and context credits.
- Officina uses pi and includes extensions from little-coder. Its Caduceus integration uses OmniRoute. Officina credits.
The technique inventory links to source files, papers, experiment reports, and third-party notices.
License
VITRIOL is available under Apache 2.0 or MIT. See NOTICE and the bundled engine's upstream MIT license.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…