r/ollama • • 6d ago

I built this! Quantum Morph Laboratory: An Open-Source Rust Research Lab Exploring 1.5–3 Bit LLM Compression on Consumer GPUs

I've been building an open-source neural model compression laboratory in Rust, targeting 1.5–3 effective bits per parameter on consumer GPUs.

I'm working on a personal research project called Quantum Morph Laboratory, exploring alternative mathematical representations of pretrained neural networks and how much useful intelligence can survive extreme compression.

The project currently includes:

- Native Rust CPU and GPU inference.

- A custom QMF neural representation format.

- Activation-aware GPTQ and Hadamard transformations.

- Shared latent representations and vector quantization.

- Evolutionary representation optimization.

- Disk-backed model transformation.

- An interactive 3D scientific laboratory built with WGPU.

One recorded experiment transformed Qwen2.5-7B-Instruct into a complete 2-bit-per-parameter artifact of approximately 1.9 GB, running at 9.1 tokens/sec on my RTX 4070 Laptop GPU.

Quality degradation remains significant at 2 bits, and experiments below 2 bits have exposed some substantial mathematical challenges. I'm documenting the failures alongside the successes.

My eventual goal is to make genuinely useful 27B–32B models accessible on ordinary consumer hardware, without requiring cloud services or expensive graphics cards.

The project is MIT licensed, experimental, AI-assisted in development, and completely local-first.

I'd genuinely appreciate technical criticism, independent testing, mathematical suggestions, and feedback from people working on low-bit quantization.

GitHub:

https://github.com/ShamelesAbyss/Quantum-Morph-Laboratory

21 Upvotes

11 comments sorted by

2

u/aarong691 6d ago

could you post a few outputs from the original model and the compressed versions, using the same prompts? Maybe one everyday request and one that needs careful instruction-following. Seeing the answers side by side would help show where they start to change, and whether the quality drop is gradual or sharp. For me, the important part is whether the models still follow the request correctly across those examples. Sample answers would make the quality tradeoff easier to judge in normal use. Including the prompts too would help people compare the responses fairly, especially if one answer seems noticeably worse than another.

1

u/Shamelescampr559 6d ago

That's a really good suggestion, and something I'd genuinely like to demonstrate. Most of my testing so far has focused on numerical fidelity and, more recently, functional programming tasks rather than everyday conversational use.

I do have recorded outputs across multiple compression levels, but I haven't yet compiled a proper side-by-side comparison against the original uncompressed model using everyday prompts and strict instruction-following requests.

I'll make that a priority in my next round of testing and publish the exact prompts alongside the unedited responses, including the failures.

I appreciate the suggestion. Seeing where a model actually begins losing its ability to understand and follow instructions is arguably more valuable to the average user than a collection of compression statistics.

1

u/aarong691 5d ago

thanks, that'd help

1

u/Shamelescampr559 1d ago

Hey! I wanted to follow up because I actually took your suggestion and conducted two additional experiments based on your feedback.

EXP-008 compares three compressed representations of Qwen2.5-Coder-14B-Instruct at approximately 3.25, 2.25 and 2 effective bits per parameter.

EXP-009 includes an actual original BF16 versus compressed INT4 comparison using Qwen2.5-3B-Instruct, since my available RAM prevented me from safely running the original 14B checkpoint.

Both experiments use the same everyday dinner request and strict JSON-only instruction-following prompt.

Interestingly, both 3B representations returned identical, correctly formatted JSON, while all three compressed 14B representations violated the no-Markdown requirement. The smaller model's compressed dinner response also omitted an ingredient that the original included.

I've published the complete, unedited responses, exact prompts, generation settings, resource measurements and limitations here:

14B compressed comparison: https://github.com/ShamelesAbyss/Quantum-Morph-Laboratory/blob/main/docs/REAL_WORLD_COMPRESSION_PROMPT_EXPERIMENT.md

3B original versus compressed comparison: https://github.com/ShamelesAbyss/Quantum-Morph-Laboratory/blob/main/experiments/exp-009-bf16-baseline/REDDIT_RESPONSE.md

These are preliminary experiments, and I still haven't established a complete compression-quality curve or obtained the original 14B generation baseline.

Thank you again for the suggestion. It directly influenced the direction of this research!

1

u/Shamelescampr559 6d ago

For anyone curious about what we've actually achieved so far, our largest completed experiment is Qwen2.5-7B-Instruct, containing approximately 7.62 billion parameters. Starting with roughly 15.23 GB of original BF16 weights, we achieved the following complete serialized model sizes:

  • 4.501 bits per parameter: 4.29 GB, 90.9% top-1 token agreement.
  • 3.251 bits per parameter: 3.10 GB, 86.3% top-1 agreement.
  • 2.251 bits per parameter: 2.14 GB, 65.7% top-1 agreement.
  • 2.000 bits per parameter: 1.90 GB, 52.6% top-1 agreement.
  • 1.750 bits per parameter: 1.67 GB, but with catastrophic quality degradation.

The 2-bit representation achieved a reported 9.1 tokens/sec on my RTX 4070 Laptop GPU with 8 GB of VRAM.

These figures include the complete serialized QMF artifact, not just the quantized weight codes. However, token agreement is not equivalent to retained intelligence, and our existing evaluation corpus is relatively small.

The next experiment is targeting Qwen2.5-Coder-14B-Instruct, approximately 14.8 billion parameters, with a particular emphasis on preserving practical coding capabilities.

Our longer-term ambition is to make genuinely useful 27B–32B models accessible on affordable consumer hardware at 1.5–3 effective bits per parameter.

We're not claiming to have solved extreme quantization. We're actively investigating its limitations, publishing our findings, including failures, and building a native Rust research environment where others can explore and reproduce these experiments.

Technical criticism and independent validation are genuinely welcome.

1

u/Shamelescampr559 3d ago

If anyone wants a quick rundown of how to use the modules inside 👇👇👇

I'd learn it in this order:

Q-Scope: Inspect a model and understand its internal tensor structure.

Q-Forge: Experiment with different compression methods.

QMF Explorer: Inspect the resulting compressed representation.

Q-Core: Run the compressed model and test its responses.

Q-Behavior: Compare its behavior against a reference model.

Q-Genesis: Explore evolutionary optimization of model representations.

After that it's just a matter of getting hugging face to accept my new compressed model format LOL 😅

1

u/Shamelescampr559 22h ago

Quantum Morph Laboratory has reached another milestone: our first publicly available QMF model collection is now published on Hugging Face!

Qwen2.5-Coder-14B-Instruct, containing approximately 14.77 billion parameters, is available in three experimental representations:

• INT3 — 6.004 GB
• INT2 — 4.157 GB
• QMR-200 — 3.693 GB

The original BF16 checkpoint is approximately 29.54 GB.

All three representations have undergone native inference testing, with published experimental results, documented limitations, attribution and verified SHA-256 checksums.

These models currently require QML's native Q-Core runtime. Our next major development milestone, PROJECT NEXUS, aims to introduce a persistent inference server, Hugging Face model manager, streaming chat interface and compatible local APIs.

The research remains experimental, but the models are now publicly available for others to investigate.

https://huggingface.co/ShamelesAbyss/Qwen2.5-Coder-14B-Instruct-QMF

https://github.com/ShamelesAbyss/Quantum-Morph-Laboratory

1

u/Shamelescampr559 22h ago

As a follow-up, we're now developing Operation NEXUS, the next major evolution of Quantum Morph Laboratory.

Rather than waiting for third-party inference engines such as llama.cpp or Ollama to adopt our experimental QMF format, we're expanding our existing native Q-Core runtime into a standalone inference service called QML Serve.

Alongside it, we're building an integrated model manager that will allow users to discover, download, verify and run compatible QMF models directly from Hugging Face, including representations published by other community members.

The goal is to create a seamless workflow where users can compress their own models, immediately test them locally, compare their behavior, and share their findings without relying on external inference engines.

We're also introducing streaming conversations, persistent model loading, terminal-based interaction, OpenAI-compatible and Ollama-compatible local APIs, and a substantial visual expansion of our native PRISM interface.

Ultimately, I want Quantum Morph Laboratory to become an independent, open-source ecosystem for experimental neural compression, inference and model distribution, rather than simply another quantization utility.

There's still considerable research and engineering ahead, but I'd rather build the infrastructure necessary to explore these ideas ourselves than wait for established platforms to adopt our format.

1

u/Vxtzq1 4d ago

Do you plan to attempt the training of such models in very low precision? Maybe using evolution strategies like https://qlabs.sh/research/dust or https://arxiv.org/abs/2511.16652 .

2

u/Shamelescampr559 3d ago

Absolutely, that's a direction I'm very interested in exploring.

Quantum Morph Laboratory already contains an experimental evolutionary optimization subsystem called Q-Genesis, although its current focus is evolving mathematical representations and compression strategies rather than training entire neural networks.

I'd love to extend that research toward models that learn directly within extremely low-precision representations, rather than relying exclusively on post-training compression.

Both of these papers look particularly relevant, especially EGGROLL's demonstration of integer-based language model training and Dust's activation-space perturbation approach.

My current hardware limits the scale of training experiments, but starting with smaller models and gradually scaling up would be a realistic approach.

Thank you for sharing these resources. This is exactly the kind of research discussion I was hoping to encourage by making the laboratory public.

1

u/Vxtzq1 3d ago

Thanks for this detailed reply. I was interested in commenting on your post because, if you come to achieve low precision pretraining, it would be useful to my project https://crowdgpt.net😂

The paper i shared to you still have core limitations, requiring 10000x the compute from backprop or something. But maybe if you design an ES algorithm which is based on sign flips for example, the search space would be considerably reduced.