The Compressor, LLM output compressor for support bots by Maximo Manriquez LizarragaThe Compressor, LLM output compressor for support bots by Maximo Manriquez Lizarraga

The Compressor, LLM output compressor for support bots

Portfolio project
Maximo Manriquez Lizarraga
Overview
The Compressor is a two-stage LLM output compression pipeline designed to cut token overhead for AI support bots and high-volume chat runtimes without losing answer quality.
Challenge
Flagship language models are priced per output token, and conversational support replies carry heavy formatting and boilerplate. Sending full-length prose directly from a large model drives up inference costs and latency on every turn.
My role
I designed the compression architecture, trained and evaluated the local expansion model, and built the Python and llama.cpp inference pipeline.
Approach
Instead of having a flagship model generate full verbose responses, the system outputs a compact intermediate representation and expands it locally using a fine-tuned LiquidAI LFM3 1.7B model running on llama.cpp. This shifts repetitive token generation from paid cloud APIs to fast local or edge inference.
Key features
Compact intermediate representation format, two-stage generation and local expansion pipeline, fine-tuned LiquidAI LFM3 1.7B model on llama.cpp, and an automated Python evaluation harness.
Technology stack
Python, llama.cpp, LiquidAI LFM3 1.7B, local LLM inference, and evaluation scripts.
Results
In internal benchmark runs documented in the project, the pipeline achieved roughly 7x median output compression (and up to 10x in best-case runs) without requiring flagship model retries. These figures reflect experimental test conditions rather than guaranteed production outcomes.
Commercial relevance
For AI startups and support teams spending heavily on output tokens, compact intermediate representations and local small-model expansion offer a practical path to lower unit costs.
Supporting evidence
Source repository: delaysystem/compress on GitHub

0 likes · 0 views · Nov 22, 2026

LLM output compressor for support bots. The flagship model emits a compact intermediate form, and a small local model expands it back into fluent replies.

Tags