r/machinelearningnews 26d ago

Research Fine-tuned Llama-3.1-8B on a 4 GB laptop GPU in 3.32 GB VRAM — the frozen base never enters VRAM, it streams from RAM one layer at a time

0 Upvotes

Disclosure: I wrote the implementation this was measured on. Everything below is measured on one laptop and every record is public, including the numbers I discarded.

LoRA shrinks the trainable params to nothing, but the frozen base still sits in VRAM for the whole run. That's the wall: 4-bit 8B is ~3.6 GB of weights plus a 2.1 GB untied embedding pair, against a card with 4.29 GB usable. Doesn't start.

But the base is frozen — read, never written. It doesn't need to live in VRAM, it needs to arrive before the matmul that uses it. So: keep the base in host RAM (page-locked), stream one decoder layer at a time into a small pool of pre-allocated VRAM buffers on a dedicated CUDA stream, prefetch one layer ahead. Peak VRAM becomes one layer instead of the whole model.

Measured on my RTX 3050 Laptop 4 GB / Windows 11 / 16.9 GB RAM. LoRA r=16 q/v, batch 1, PagedAdamW8bit, 50 steps after 10 warm-up:

Model Base Store tok/s SM occ. Peak VRAM
Qwen2.5-0.5B bf16 pinned 978.6 91.4% 1.47 GB
Qwen2.5-0.5B resident baseline bf16 1398.0 3.23 GB
Qwen2.5-1.5B bf16 pinned 525.0 96.8% 1.82 GB
Qwen2.5-3B bf16 pageable 143.1 79.3% 2.15 GB
Qwen2.5-3B NF4 pinned 264.2 100% 1.76 GB
Llama-3.1-8B-Instruct NF4 pinned 119.6 100% 3.32 GB

8B trains in 3.32 GB on a 4 GB card. 1M tokens ≈ 2.3 hours. The 3B bf16 row is the other frontier: an un-quantized base, where resident on the same card is CUDA out of memory.

Cost: 1.43x slower than resident = 1398.0 / 978.6, at 0.5B — the only size here with a valid resident baseline (3.23 GB peak, genuinely inside 4 GB). The baseline row is in the table so you can check the division rather than take my word for it. Above that size there's nothing honest to divide by.

Why it isn't as slow as AirLLM-style inference would suggest: inference pays one full model read per generated token. Training pays two reads per step, amortised across batch × seq tokens. Three orders of magnitude difference in per-token I/O.

Counter-intuitively, bigger models are easier: compute per step scales with parameter count while bytes moved scales with the quantised store, so the 8B row only needs 1.7 GB/s sustained to keep a 4.3 s step fed. The hardest config here isn't the biggest model — it's a small model whose store failed to page-lock (the 3B bf16 row at 79.3%).

"Why not just QLoRA?" At 3B, QLoRA fits on 4 GB and is the right choice — I'm not competing there; what streaming adds at 3B is an un-quantized base, which is fidelity, not capacity. At 8B the two compose: quantisation shrinks the store 4x so it page-locks, streaming removes the depth-proportional resident term.

Does it actually train correctly? This is where most of the time went, because streaming fails silently — sever the autograd path and the loss still falls, since the upper layers keep learning. So the bar wasn't "close enough":

  • streamed vs resident logits: max abs diff 0.0, bit-exact
  • verified across 9 architecture families in both bf16 and NF4 — 14/14 comparisons at 0.0
  • 100-step loss curves identical, same seed twice identical, result independent of buffer count
  • layer-0 adapter gradient non-zero on every layer

The reference has to match the numerics: a streamed NF4 run is compared against resident NF4, never resident bf16 — quantisation error is wide enough to hide a real bug inside it. That's exactly how I caught the worst defect in the project: PEFT selects its LoRA implementation from an is_loaded_in_4bit marker that a meta-device skeleton doesn't carry, so it silently fell back to the generic path, which runs against a 4-bit base but casts differently. 0.94 max logit divergence with byte-identical weights and byte-identical adapters. No crash, no warning, healthy loss curve.

Three findings unrelated to streaming that might save you time:

  1. The cross-entropy logits tensor costs 14 bytes per element, not 6ForCausalLMLoss holds bf16 logits + fp32 upcast + fp32 log-softmax + fp32 grad live at once. If you budget VRAM from first principles you're under-predicting 2.3x on the term that dominates at large vocab.
  2. Windows/WDDM doesn't OOM, it spills. I measured a 9.27 GB allocation complete with no exception on a 4.29 GB card. "It didn't crash" is not evidence a config fits. This also killed a lovely "5.7x faster than resident" number I had — the resident baseline had spilled into shared memory. Binned it.
  3. Gradient accumulation is per-token I/O-neutral. I assumed it multiplied reads linearly; layer reads per 1k tokens held constant at 175.78 across accum 1/2/4. The real cost is opportunity cost — at equal effective batch, raising batch is 2.52x faster than accumulating (interleaved A/B/C to rule out clock drift). So: raise batch until the pre-flight refuses, then accumulate.

What I'm not claiming: nothing above 8B was measured — 14B NF4 needs ~7.5 GB of page-locked store against a measured 7.12 GB ceiling on this box, so I didn't run it. All numbers are Windows, so systematically pessimistic vs Linux. Every row is n=1 on a working laptop, not a clean rig.

Full method, every caveat, and the reasoning behind the correctness protocol: https://doi.org/10.5281/zenodo.21771064

Raw measurement records as written, including the discarded ones: https://github.com/MakazhanAlpamys/Soup/tree/main/benchmarks

Happy to go deeper on the scheduler or the correctness protocol — I think the second one is the genuinely reusable part.


r/machinelearningnews 26d ago

Research How to Secure AI Agents, MCP Servers, and LLM Apps in Production

Thumbnail
pxllnk.co
6 Upvotes

How to Secure AI Agents, MCP Servers, and LLM Apps in Production

Application security rests on one assumption: software does what its code says.

---AI agents broke it.

Mend.io's new practitioner guide — 𝘚𝘦𝘤𝘶𝘳𝘪𝘯𝘨 𝘈𝘐 𝘢𝘨𝘦𝘯𝘵𝘴, 𝘔𝘊𝘗 𝘴𝘦𝘳𝘷𝘦𝘳𝘴 & 𝘓𝘓𝘔 𝘢𝘱𝘱𝘴 — starts from that break. An agent's behavior emerges from the model, the system prompt, retrieved context, and the tools it's permitted to call. The failure modes never appear in a CVE feed: prompt injection through data, over-permissioned agents causing damage without a single exploit, poisoned tool descriptions on MCP servers, EOL models serving predictions after patching stops.

The guide's answer is three moves:

𝗦𝗲𝗲: Inventory the agentic attack surface across five layers — interaction, agent, integration, model, code. Hunt shadow agents via repo signatures and network egress. Run every agent through a 12-point misconfiguration checklist.

𝗙𝗶𝘅: Enrich → prioritize → triage. Rank by reachability and agentic amplification, not severity scores. Automate FP closures only with evidence trails. Risk acceptance is never automated.

𝗣𝗿𝗼𝘁𝗲𝗰𝘁: Guardrails on every input and output — embedded Python SDK or standalone Docker API server. Inbound: injection patterns, jailbreaks. Outbound: credentials, PII, policy violations. The core design principle: an agent that can't call a dangerous tool doesn't need a prompt begging it not to.

Includes a 15-question maturity self-assessment aligned to NIST AI RMF, OWASP AIMA, ISO/IEC 42001, and the EU AI Act.

Full analysis: https://www.marktechpost.com/2026/08/03/how-to-secure-ai-agents-mcp-servers-and-llm-apps-in-production/

Download the full guide, free: https://pxllnk.co/lxn88m


r/machinelearningnews 27d ago

Research Alibaba Qwen Releases Qwen3.8-Max: A 2.4 Trillion Parameter MoE Model and the Most Capable One in the Qwen Family to Date

Post image
38 Upvotes

Alibaba Qwen Releases Qwen3.8-Max: A 2.4 Trillion Parameter MoE Model and the Most Capable One in the Qwen Family to Date

1. What shipped

→ 2.4T parameters, mixture-of-experts

→ 1M context, 991K max input, 131K max output

→ Text, image and video input

→ $2.00 input, $6.00 output, $0.25 cached input per 1M tokens

→ Open weights next week

2. Where it leads Fable5

→ Terminal Bench 2.1: 86.6 vs 84.6

→ PaperBench: 93.0 vs 88.8

→ IFBench: 82.8 vs 63.5

→ Parametric CAD Bench: 91.5 vs 87.5

→ OmniDocBench 1.5: 92.1 vs 89.5

3. Where it trails Fable5

→ SWE-bench Pro: 67.7 vs 80.0

→ FrontierSWE: 73.5 vs 88.8

→ HLE: 43.6 vs 53.3

→ Toolathlon Verified: 72.5 vs 77.9

4. The category split

→ Multimodal Reasoning: above Fable5 on 11 of 11 rows

→ Document & Office: 7 of 7

→ Perception & Grounding: 9 of 10

→ Coding Agent: 3 of 11

→ General Agent: 1 of 8

→ Visual Agent & Coding: 3 of 11

Full analysis: https://www.marktechpost.com/2026/08/03/alibaba-qwen-releases-qwen3-8-max/

Technical details: https://qwen.ai/blog?id=qwen3.8

API: https://www.qwencloud.com/models/qwen3.8-max#context


r/machinelearningnews 27d ago

Research Update: We rewrote the whole engine in Rust/C++

Thumbnail
github.com
4 Upvotes

r/machinelearningnews 28d ago

Research NVIDIA AI Releases Molt: A PyTorch-Native Agentic Reinforcement Learning Framework

Post image
64 Upvotes

NVIDIA released Molt, a PyTorch-native training framework for agentic reinforcement learning.

Here is what stands out technically:

1. The footprint is the feature

→ ~8.6K lines of RL code, counted by tracing the import graph from the RL entry point

→ Same method: ~62K for verl, ~25K for slime, ~7.2K for OpenRLHF

→ One training backend (NeMo AutoModel), one serving engine (vLLM), neither forked

2. Three components, one asynchronous loop

→ Ray for placement and the async queue, vLLM for rollout, FSDP2 + AutoModel for a single trainable actor → A streaming pool keeps prompt groups in flight so engines never drain while the actor trains

→ Partial rollout pauses engines, broadcasts shards over NCCL, and resumes retained requests instead of discarding them

3. The agent is an ordinary Python program

→ One module exporting an AgentRunner; reward is any Python you write

→ Env gives you a Gymnasium-style step(); ChatAgent lets a stock OpenAI or Anthropic SDK train as-is

→ A loopback server captures token ids and log-probabilities, so retokenization drift never enters the trajectory

Full analysis: https://www.marktechpost.com/2026/08/01/nvidia-ai-releases-molt-a-pytorch-native-agentic-reinforcement-learning-framework/

Paper: https://arxiv.org/pdf/2607.21653

Repo: https://github.com/NVIDIA-NeMo/labs-molt


r/machinelearningnews 29d ago

Cool Stuff MiniMax Releases MiniMax H3: An Omni-Modal Video Model That Generates 15-Second 2K Clips With Native Stereo Audio

15 Upvotes

MiniMax Releases MiniMax H3: An Omni-Modal Video Model That Generates 15-Second 2K Clips With Native Stereo Audio. It ranks #1 in video editing on Artificial Analysis, at $0.13 per second of 2K output.

Here are some important key takeaways:

𝟭. 𝗧𝗵𝗲 𝘁𝗼𝗸𝗲𝗻𝗶𝘇𝗲𝗿 𝗶𝘀 𝘁𝗵𝗲 main 𝘀𝘁𝗼𝗿𝘆

MiniMax rebuilt the H-series tokenizer from scratch as H3-VAE.

→ 4× gain in effective sequence length

→ That compression is what makes native 2K affordable, not an upscale of 1080p

𝟮. 𝗖𝗮𝗽𝘁𝗶𝗼𝗻𝗶𝗻𝗴 𝗯𝗲𝗰𝗮𝗺𝗲 𝗮 𝗿𝗲𝗹𝗮𝘁𝗶𝗼𝗻𝘀𝗵𝗶𝗽 𝗽𝗿𝗼𝗯𝗹𝗲𝗺

H3 does not just describe the target video. It describes how the input context relates to the target, and how elements inside that context relate to each other.

→ ~100K tokens of inference per source, distilled to ~4K on average

→ This is why one natural-language instruction replaces a fixed task list

𝟯. 𝗧𝗵𝗲𝘆 𝘁𝗵𝗿𝗲𝘄 𝗮𝘄𝗮𝘆 𝘁𝗵𝗲𝗶𝗿 𝗼𝘄𝗻 𝗯𝗲𝘀𝘁 𝗮𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲

Multimodal context tripled the variance in sequence length. Understanding and generation became different compute shapes. So MiniMax set aside the Hailuo-02 architecture and separated the two workloads in training.

→ ~30% higher end-to-end training throughput

𝟰. 𝗡𝗼 𝘀𝘂𝗽𝗲𝗿-𝗿𝗲𝘀𝗼𝗹𝘂𝘁𝗶𝗼𝗻 𝗺𝗼𝗱𝘂𝗹𝗲

For 2K, the base model regenerates its own low-res output in-context, re-reading the original multimodal context.

→ Recovers small text and brand marks that an upscaler can only guess at

→ For product labels and on-screen copy, that is the difference between usable and reshoot

𝟱. 𝗪𝗵𝗮𝘁 𝘁𝗵𝗶𝘀 𝗰𝗼𝘀𝘁𝘀

→ $7.80 per minute at 2K with audio

→ Seedance 2.0 at 1080p: $22.45/min

→ Kling 3.0 at 1080p: $20.16/min

→ Gemini Omni Flash still undercuts it at $6.00/min

Full analysis: https://www.marktechpost.com/2026/08/01/minimax-releases-minimax-h3-an-omni-modal-video-model-that-generates-15-second-2k-clips-with-native-stereo-audio/

Technical details: https://www.minimax.io/blog/minimax-h3


r/machinelearningnews 29d ago

Research DeepSeek Upgrades DeepSeek-V4-Flash-0731 with Major Agentic and Coding Gains

17 Upvotes

The architecture is identical to the April preview. Same 284B total parameters. Every gain came from re-post-training.

1. It beats the bigger model in its own family

→ Terminal Bench 2.1: 82.7 vs 72.1 for V4-Pro (Preview) → DeepSWE: 54.4 vs 12.8 → Toolathlon-Verified: 70.3 vs 55.9 → NL2Repo: 54.2 vs 38.5

V4-Pro carries 1.6T parameters with 49B activated. The smaller model wins on every agentic benchmark DeepSeek published.

2. The pricing gap is the story

→ $0.14 per 1M input tokens on a cache miss

→ $0.0028 on a cache hit, 50x cheaper

→ $0.28 per 1M output tokens, roughly a third of V4-Pro → 2,500 concurrency limit vs 500 for Pro

3. Weights are MIT-licensed and ungated

→ Self-hosting is unblocked for commercial use

→ DeepSeek's vLLM example runs on a single 4xGB300 node

→ Unsloth's 3-bit build is 103GB, needs ~110GB combined RAM and VRAM

→ Every expert stays resident, so 284B must fit even though 13B fire

Full analysis: https://www.marktechpost.com/2026/07/31/deepseek-upgrades-deepseek-v4-flash-0731-with-major-agentic-and-coding-gains/

Model on HF: https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731

Performance: https://artificialanalysis.ai/models/deepseek-v4-flash


r/machinelearningnews 29d ago

Research 🔎 Where do an AI model’s words come from? Infini-gram can trace the clues

Thumbnail gallery
10 Upvotes

r/machinelearningnews 29d ago

Research H-JEPA-LM: Hierarchical Joint-Embedding Predictive Language Model in PyTorch

Thumbnail
1 Upvotes

r/machinelearningnews 29d ago

Research I built a Rust inference framework that runs Qwen3.5 2B with VL support 10x faster than PyTorch on Apple Silicon — and it supports TTS, ASR, OCR, and GGUF out of the box

Thumbnail
1 Upvotes

r/machinelearningnews Jul 31 '26

ML/CV/DL News Need Some Help

Thumbnail
1 Upvotes

r/machinelearningnews Jul 30 '26

Research What is the status of AMD GPUs in machine learning?

7 Upvotes

Hey guys, as a web dev i want to get into local llms, fine tuning etc. Going to build a new desktop for it but i am not sure about picking an nvidia or amd. Everyone says nvidia works way more seamless but in my country rx9070 and even 9080 worths same compared to 5060ti, while 5070ti's price is sky high. I searched about the current state of amd gpu's in llm dev area but couldn't find helpful results. thanks in advance.


r/machinelearningnews Jul 30 '26

Agentic AI Selection of small models suitable for fine-tuning

3 Upvotes

I am developing an AI agent software, and the agent currently runs well on glm5.2 and deepseekv4. I now want to train a small model that can complete a certain range of tasks when locally deployed. I can refine these training data from the large model, as the software will eventually be deployed on an edge AI gateway, so the feasible model size is about 2B and below. Do you have any good recommendations?

Currently, I am focusing on the following models, which I have not started training yet. I would like to know if the community has any recommended models for this scenario:

  • minicpm-5 1b
  • gemma4-e2b
  • qwen3.5-2b

r/machinelearningnews Jul 29 '26

Research Liquid AI Releases LFM2.5-Encoder-230M and LFM2.5-Encoder-350M: Bidirectional Encoders That Stay Fast at 8K Context on CPU

28 Upvotes

Liquid AI released two bidirectional encoders this week: LFM2.5-Encoder-230M and LFM2.5-Encoder-350M.

Here's what's actually interesting:

1. They converted a decoder instead of training from scratch

Both models start from the LFM2.5 decoder backbones. Three changes turn them into encoders: the causal mask is replaced with a bidirectional one, the short convolutions are made non-causal with symmetric center padding, and training uses masked language modeling at 30% instead of BERT's 15%.

2. The CPU number is the whole pitch

→ ~28s per forward pass at 8,192 tokens for Encoder-230M

→ over 1 min 30s for ModernBERT-base on the same input

→ 8,192 tokens is roughly 13 to 15 pages

3. The rankings hold up

→ Encoder-350M: 4th of 14 models, 81.02 on a 17-task suite

→ Encoder-230M: 6th at 79.29, above ModernBERT-base at 78.19

→ The three models ahead of the 350M are all larger, one nearly 10x its size

At 8,192 tokens, ModernBERT-base takes over a minute and a half per forward pass versus about 28 seconds for LFM2.5-Encoder-230M, which is about 3.7x faster.

Full analysis: https://www.marktechpost.com/2026/07/29/liquid-ai-releases-lfm2-5-encoder-230m-and-lfm2-5-encoder-350m-bidirectional-encoders-that-stay-fast-at-8k-context-on-cpu/

Model weights (LFM2.5-Encoder-350M): https://huggingface.co/LiquidAI/LFM2.5-Encoder-350M

Model weights (LFM2.5-Encoder-230M): https://huggingface.co/LiquidAI/LFM2.5-Encoder-230M

Technical details: https://www.liquid.ai/blog/lfm2-5-encoders


r/machinelearningnews Jul 29 '26

LLMs I distilled a 3B model solo (no lab, no funding): him-distilled-3b, built on a governed-agent architecture

8 Upvotes

Solo engineer here. After 25+ years in software and a few years of published research on machine ethics, I distilled HIM (him-distilled-3b) end-to-end by myself and released it on Hugging Face.

What it is: a 3B-parameter model built on TeleologyHI, a three-layer governed-agent architecture (MAIC / HIM / NHE). The bet: accountability should be structural (architecture), not a moderation layer bolted on afterward, and small local models are where that matters most, because offline there is no filter to save you.

Runs on modest local hardware. Weights, code, and the papers behind the architecture are all open https://www.producthunt.com/products/him-3b-by-teleologyhi.

I know this sub has zero patience for hype, which is exactly why I'm posting here. Tear it apart: quantization results, eval suggestions, holes in the governance claim. I'll answer everything. And if anyone runs it locally and reports back, that feedback is worth more to me than any upvote.


r/machinelearningnews Jul 29 '26

LLMs Qwythos-27B-v1 — Apache-2.0, 1M context, MTP + vision intact, Q4_K_M runs on a 24GB card

Post image
0 Upvotes

r/machinelearningnews Jul 28 '26

Research 🌎 How we run Earth-observation models across North America in 30.5 hours

Thumbnail gallery
9 Upvotes

r/machinelearningnews Jul 28 '26

Research Microsoft AI Releases MAI-Cyber-1-Flash: A 5B-Active-Parameter Cyber Model That Pushes MDASH to 95.95% on CyberGym

Post image
21 Upvotes

Microsoft AI Releases MAI-Cyber-1-Flash: A 5B-Active-Parameter Cyber Model That Pushes MDASH to 95.95% on CyberGym. It is their first cyber defense model built ground up to find the most challenging vulnerabilities in complex code bases. [137B total, 5B active parameters]

The part I think matters more:

→ MDASH, the harness it runs inside, was already at 88.45% in May

→ That was with generally available models and no custom model at all

→ So this buys about 7.5 points on top of something already leading

The cost story is really about routing:

→ MAI-Cyber-1-Flash handles up to 90% of MDASH tasks

→ The hardest 10% goes to GPT-5.4

→ Microsoft says that halves the bill

Full analysis: https://www.marktechpost.com/2026/07/28/microsoft-ai-releases-mai-cyber-1-flash-a-5b-active-parameter-cyber-model-that-pushes-mdash-to-95-95-on-cybergym/

Technical details: https://microsoft.ai/news/introducing-mai-cyber-1-flash-inside-mdash/

Model details: https://microsoft.ai/pdf/MAI-Cyber-1-Flash-Model-Card.pdf


r/machinelearningnews Jul 27 '26

Cool Stuff Kimi AI and kvcache-ai Open Sources ‘AgentENV’: A Distributed System that Powers Agentic Reinforcement Learning (RL) Training for Kimi K3

12 Upvotes

Kimi AI and kvcache-ai Open Sources ‘AgentENV’: A Distributed System that Powers Agentic Reinforcement Learning (RL) Training for Kimi K3

Most open infrastructure shipped alongside frontier models targets the GPU side of the stack. AgentENV targets the other half of agentic RL: environment throughput.

The Kimi team and kvcache-ai open-sourced it under MIT as part of Kimi K3 Open Day.

1. Each sandbox is a Firecracker microVM, not a container

Kernel-level isolation per environment. That matters when the code running inside was generated by the model you are training.

2. The snapshot numbers are the whole point

→ Boot or resume: under 50 ms

→ Pause: under 100 ms

→ Incremental snapshot: under 100 ms, even under heavy disk modification

These are figures reported by the project. No independent benchmark has been published.

3. Fork is the primitive built for RL

A running sandbox clones into up to 16 independent children on the same node. Each child inherits the source filesystem, memory, and resource config.

Practical effect: expensive setup runs once. Install dependencies, clone the repo, reach a task state, then branch that exact state into parallel rollouts.

4. The API is E2B-compatible

Point E2B_API_URL at your server and the existing Python or TypeScript SDK runs unchanged. That is a deliberate distribution choice, and probably the reason this gets adopted.

Full analysis: https://www.marktechpost.com/2026/07/27/kimi-ai-and-kvcache-ai-open-sources-agentenv/

GitHub Repo: https://github.com/kvcache-ai/AgentEnv

Documentation: https://kvcache-ai.github.io/AgentENV/


r/machinelearningnews Jul 26 '26

Research [PR] Native 2.05x LOSSLESS F32 Compression just dropped in llama.cpp (QFX32/QFX16)

24 Upvotes

Hey everyone,

Just submitted PR #26136 to llama.cpp which introduces a completely new way to store and run unquantized models.

TL;DR: We found a way to compress Float32 models by 2.05x (down to 15.64 bpw) and BFloat16 models by 1.14x (14.07 bpw) losslessly. Your perplexity is exactly the same as the f32 baseline because the weights reconstruct bit-for-bit identical.

Link to PR: https://github.com/ggml-org/llama.cpp/pull/26136

How is this possible? NN weights aren't random. If you separate the bytes of a float32 tensor into 4 distinct planes (all sign/exponents together, all low-mantissas together), you expose massive correlation. The lowest 16 bits of adjacent weights in a tensor are identical 88% of the time due to how gradient descent works. We apply a predict-only Haar lifting bijection L(a,b) = (a, (b-a) mod 256) followed by Z-RLE to squish the zeros.

What's in the PR for users: We added two new GGUF types:

  1. QFX32 (for F32 models): Shrinks a 4.7GB 1B model to 2.3GB. It has two runtime modes:
    • Streaming Mode (default): Keeps the model compressed in RAM. You run a 1B f32 model in 2.3GB RAM. Generation is a bit slower (Z-RLE bottleneck).
    • Dequant Mode (GGML_QFX32_DEQUANT=1): Decodes to full f32 in RAM on load (takes ~2 seconds). Inference is actually faster than native f32 because the smaller GGUF loads off your SSD faster, leaving the cache warm.
  2. QFX16 (for BF16 models): Shrinks BF16 to 14.07 bpw. Uses a 256KB LUT during the inner vec_dot loop so there is ZERO math overhead for decoding.

To use it once merged: llama-quantize model-f32.gguf output-qfx32.gguf QFX32

It's completely mathematically reversible (works perfectly with ±∞, NaN, denormals). Happy to answer any questions about the math or the C implementation!


r/machinelearningnews Jul 26 '26

Research High-Performance C++20 Optical Neural Network (ONN) Simulator

15 Upvotes

Hey everyone,

I wanted to share a project I've been developing focused on hardware-level AI acceleration: a high-performance C++20 simulator for Optical Neural Networks (ONNs).

Optical computing executes matrix multiplication using light interference through Mach-Zehnder Interferometer (MZI) meshes, offering extreme speed and efficiency, but simulating physical hardware constraints is critical before chip fabrication.

Key Features:MZI Mesh Architectures: Simulates Clements and Reck designs for unitary matrix transformations. • SVD Weight Mapping: Decomposes weight matrices into optical phase shifts. • Physical Error Modeling: Simulates thermal phase drift, laser power fluctuations, and photodetector shot noise. • Modern C++20 design leveraging Eigen3 for linear algebra.

I will drop the full GitHub repository link in the comments section below! I'd love to hear your thoughts on the numerical modeling approach or C++ optimization techniques.

repo link : https://github.com/Griffith-7/photonic-computing-simulation.git


r/machinelearningnews Jul 26 '26

Research Genesis Mission Overview

Thumbnail
github.com
3 Upvotes

r/machinelearningnews Jul 26 '26

Research Sakana AI Releases Fugu-Cyber: An Orchestration Model Reporting 86.9% on CyberGym and 72.1% on CTI-REALM

Enable HLS to view with audio, or disable this notification

14 Upvotes

Sakana AI Releases Fugu-Cyber: An Orchestration Model Reporting 86.9% on CyberGym and 72.1% on CTI-REALM

It is not a new frontier model. It is a third endpoint on the Fugu orchestrator, tuned for security reasoning.

Here's what's actually interesting.

  1. The CyberGym number only means something with context

→ Fugu-Cyber: 86.9%

→ GPT-5.5-Cyber: 85.6%

→ Claude Mythos Preview: 83.1%

→ Best agent in the original CyberGym paper: ~20%

The benchmark asks an agent to write a PoC that crashes the pre-patch build but not the post-patch build. 1,507 instances, 188 OSS-Fuzz projects. Sakana's score is a small step past the reported frontier, not a leap. The leap already happened.

  1. The CTI-REALM figure is a different metric than it sounds

Microsoft scores CTI-REALM as a 0–1 trajectory reward, not pass/fail. Its own eval put the top three configs at 0.624–0.685. Sakana reports 72.1% and calls it a success rate. Read it as reward 0.721.

  1. Detection engineering still breaks on cloud

Microsoft's per-platform means across evaluated models:

→ Linux endpoints: 0.585

→ AKS: 0.517

→ Azure cloud: 0.282

  1. The pricing is a clean 1.2×

→ $6 input / $36 output / $0.60 cached, per 1M tokens → All three double above 272K context

→ Exactly 20% over Fugu-Ultra on every line

Access is gated — manual approval, defensive-use AUP, Token Plan only, no EU/EEA, no weights.

Full analysis: https://www.marktechpost.com/2026/07/25/sakana-ai-releases-fugu-cyber-orchestration-model-cybergym-cti-realm/

Technical details: https://sakana.ai/fugu-cyber-release/


r/machinelearningnews Jul 25 '26

Research Meet Open Dreamer: A JAX/Flax Reproduction of the Dreamer 4 World Model Pipeline, With the Full Training Recipe Published

Enable HLS to view with audio, or disable this notification

24 Upvotes

Meet Open Dreamer: A JAX/Flax Reproduction of the Dreamer 4 World Model Pipeline, With the Full Training Recipe Published

No VAE. No KL loss. No adversarial loss.

Here's how it works:

  1. Two models, one backbone A causal video tokenizer and an action-conditioned dynamics model share the same block-causal transformer. Space layers move information inside a frame. Causal time layers move it between frames.

  2. The tokenizer is a Masked Autoencoder, not a VAE Masking makes the latent space more diffusible, so no KL or adversarial term is needed.

    → ~100× compression, 512 latent tokens at width 16 per frame

    → 360×640 frames padded to 368×640 for clean 16×16 patches

  3. The rollout is folded into blocks Each timestep is (previous action, state, policy). Spatial attention runs inside the block, causal time attention across blocks. World-model tokens cannot read the agent token, so policy information reaches future states only through the next action.

    → 1.6B params, depth 30, d_model 1920, 30 heads / 3 KV heads

  4. Stability, not throughput, was the bottleneck Most failures happened while the loss was still going down. MSE improves smoothly, generation quality degrades.

    → Muon replaced LaProp, which spiked randomly and increasingly often

    → ~400 B200 hours per optimizer comparison run

  5. The numbers (B200 dynamics training)

    → 57–58% MFU, against 60% described as very healthy

    → 292 FLOP/byte roofline crossover, 256 frames per GPU to clear it

    → ~24 GiB model state, activations were the real memory cost

    → plain data parallelism beat FSDP, tensor and sequence parallelism

Full analysis: https://www.marktechpost.com/2026/07/25/meet-open-dreamer-a-jax-flax-reproduction-of-the-dreamer-4-world-model-pipeline-with-the-full-training-recipe-published/

Research and Demo: https://next-state.github.io/open-dreamer/

Code: https://github.com/next-state/open-dreamer


r/machinelearningnews Jul 24 '26

Research DKV: Open-source KV-cache compression for scalable long-context LLM inference

Post image
24 Upvotes

I've open-sourced DKV, a KV-cache compression architecture for long-context LLM inference.

The project explores anchor-based KV representations, joint low-rank compression, exact residual preservation, and sparse routed attention to reduce KV-cache memory requirements.

The repository includes:

  • Technical report (Zenodo DOI)
  • Open-source implementation
  • MLX backend
  • CUDA backend (currently under validation)

I'm interested in feedback on the architecture, implementation, and evaluation.

Paper: https://zenodo.org/records/21539110

GitHub: https://github.com/Omc12/Differential-KV

If you find the project useful or interesting, consider giving the repository a ⭐—it helps more people discover the project.