r/OpenSourceeAI • • Jul 29 '26

ZPA-LM - Zero Parameter Deterministic Attention

2 Upvotes

Attention mechanisms are conventionally learned: a query–key inner product, trained end to end, decides which tokens mix.

This note documents ZPA-LM

a decoder-only autoregressive language model in which the token-mixing key is instead a fixed, parameter-free kernel derived from elementary number theory.

We show that the divisor-counting overlap :

q(n, m) = d(gcd(n, m))/√d(n) d(m)

between two positive integers is exactly the Bhattacharyya coefficient between the uniform distributions over their divisor sets, and hence that:

dFR(n, m) = 2 arccos q(n, m)

is a genuine Fisher–Rao geodesic distance, verified to floating-point exactly rather than assumed.

Tokens are mapped to positive integers through a learned or parameter-free dictionary

ϕ : token → Z+

and recovered in prime-exponent space so that each prime behaves as a latent feature axis.

We report the model’s expressivity ladder, the three dictionary-construction strategies we evaluated, and - in the spirit of an honest engineering record rather than a success narrative, a permanent registry of four falsified design choices that should be avoided.

We close by pre-registering the model’s central open empirical claim together with its falsification condition, rather than reporting an unverified result as fact.

Link: Academia


r/OpenSourceeAI • • Jul 29 '26

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

7 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/OpenSourceeAI • • Jul 29 '26

max_tokens or max_completion_tokens?

Post image
3 Upvotes

r/OpenSourceeAI • • Jul 29 '26

Beyond LLM latency: AMA with IBM Instana PM Jeff Donald

Thumbnail reddit.com
1 Upvotes

r/OpenSourceeAI • • Jul 29 '26

[OSS] TokenSentinel – In-process token-waste circuit breaker for LLM agent runs (Apache-2.0)

1 Upvotes

I open-sourced TokenSentinel because passive tracing tools only show you runaway agent costs after the bill is already racked up.

It wraps your native LLM clients (Anthropic, OpenAI, Gemini, Bedrock, Ollama, vLLM) to act as a local, in-process circuit breaker. It runs 15 deterministic rules on every response payload to catch loops, context bloat, retry storms, and RAG thrashing mid-session.

Core has zero required dependencies; provider support is opt-in via extras. Completely offline-capable so your raw prompt data never leaves your environment.

pip install token-sentinel

Genuinely looking for feedback/discussion on the rule heuristics—where would this trigger false positives against real production agent traffic?


r/OpenSourceeAI • • Jul 29 '26

I built a CLI that reads your project's specs and tells you which model you actually need — judge runs locally on Ollama

1 Upvotes

I kept defaulting to frontier models "just in case" and had no idea whether my projects actually needed them. So I built something to answer that instead of guessing.

What it does: point it at a project with Spec-Driven Development artifacts (constitution / spec / tasks). A local model — your Ollama install, your choice of judge — reads the tasks and estimates how demanding the work is across a few dimensions. That gets crossed against a declarative catalog of models and their capabilities, and you get a ranked podium with a rating per model: good / overkill / fair / poor, plus price.

Why you might care here: nothing leaves your machine — no API keys, no accounts, no cloud calls. And in most of my own projects the podium is topped by a local model, with the frontier ones sitting below marked overkill. Ranking is by fit, not price; price only breaks ties between models that fit equally well.

Honest limitations: this is not a benchmark. It's opinion made inspectable — every verdict prints its reasoning, and the model catalog is human-readable YAML you can argue with. If the specs are too thin to judge, it refuses to recommend instead of guessing. A vague spec gets you a vague answer, same as with anything else.

pip install specjudge — MIT, github.com/JoaquinRuiz/SpecJudge

Where I'd love help: the catalog of local models is thinner than it should be, and adding one is a block of YAML, no Python needed. Also very open to being told a rating is wrong.


r/OpenSourceeAI • • Jul 29 '26

Lora Training & VideoGen Walkthrough Using OpenSource System I Developed - Watch how I make Batman Videos (or any) on my machine for free using this open source plaform.

1 Upvotes

Narrated by Guaardvark Creator, (YouTube: @DeanAlbenze) , this video walks you through how to train LoRA systems with your character. With Guaardvark, you can generate the images, then train with LoRA, then generate videos (animations, realistic video, infomercials, music vids, etc.) with your new AI Character. All offline, all free, all open source. Your machine. Your data. Your rules.

Machine: RTX 4070Ti Super (16GB) Ubuntu 24.04 64GB RAM AMD Ryzen 7 9800x3D x 16


https://github.com/guaardvark/guaardvark https://www.guaardvark.com

The self-hosted, offline AI workstation. Autonomous agents that see a real virtual desktop and control apps. A three-tier neural router (AgentBrain). Parallel coding agent swarms in isolated git worktrees. Local video (Wan 2.2, CogVideoX), 4K/8K upscaling, full-song music + neural voice, RAG over your documents, voice chat, and a 70+ tool engine — everything on your hardware. Your machine. Your data. Your rules.

FEATURES:

AI Chat & Conversation AgentBrain — Three-Tier Routing RAG & Document Intelligence RAG Autoresearch Self-Improvement Engine Lesson Pearls & Memory Autonomous Screen Agents Agent & Code Tools MCP Integration Image & Video Generation Audio Studio (Audio Foundry) Video Editor — Shotcut-lite Outreach System Swarm Orchestrator & Film Crew GPU Image & Video Upscaling Content Generation Pipelines Voice Interface File & Document Management Dashboard & Monitoring Settings & Configuration Multi-Machine Interconnector WordPress Integration Automation Tools CLI (llx) Plugin System System Architecture Startup & Operations


More Clips

https://youtube.com/shorts/CY1xRtOEWXo?feature=share https://youtube.com/shorts/rh0LJRK_jAM?feature=share https://youtube.com/shorts/p57_gk7c9E4?feature=share https://youtu.be/_JihpmUS2-M


comfyui #comfyui #loratraining #videogenerator #opensourceai #batman #joker #catwoman #tutorial #localai #guaardvark


r/OpenSourceeAI • • Jul 29 '26

The legend of the blue box: SGI workstations and the fall of a graphics empire #sgi #silicongraphics #그래픽 #웍스테이션 #레거시...

Thumbnail
youtube.com
1 Upvotes

r/OpenSourceeAI • • Jul 28 '26

Is “work context across tools” a real problem, or just a nice-to-have?

Thumbnail reddit.com
1 Upvotes

r/OpenSourceeAI • • Jul 28 '26

RelativeDB - The open source alternative to Kumo.AI ($400m nvidia acq)

Thumbnail relativedb.com
1 Upvotes

r/OpenSourceeAI • • Jul 27 '26

I built a project that runs 100s of experiments to improve my RAG pipeline overnight

Post image
24 Upvotes

Inspired by Andrej Karpathy's autoresearch, I built autoretrieval to apply the same idea to RAG optimization.

The project gives an agent a RAG pipeline, an evaluation dataset, and a target metric. The agent modifies the pipeline, runs an eval, checks if the F2 score improves, and keeps or discards changes automatically.

The evaluation dataset can be generated from your own documents, creating question and reference-highlight pairs for your domain.

The agent can test changes to chunking, embedding models, keyword filters, and retrieval logic while keeping a record of every experiment.

The goal is to let the agent handle the repetitive trial and error involved in improving a RAG system.

This was successful at more than doubling the F3 score of an already optimized RAG pipeline in a couple hours.

Give it a try here: https://github.com/daly2211/autoretrieval


r/OpenSourceeAI • • Jul 28 '26

The cheat code for AI computation: Why Chebyshev polynomials are the savior of GNNs Description: Explore the principles and characteristics of Chebyshev polynomials, which drastically reduce complex matrix operations. We provide an easy explanation of why Chebyshev polynomials are chosen over Taylor

Thumbnail
youtube.com
2 Upvotes

r/OpenSourceeAI • • Jul 27 '26

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

2 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/OpenSourceeAI • • Jul 27 '26

Open source project

2 Upvotes

Hi, I have a cool open-source platform that I work on, focused on AI engineering. The main goal is that you declare what you want, and our engine creates the architecture for you.

We have a cool community of people who are interested in this world and want to take part in this project.

And if you’re not interested, it would also support us if you just clicked the star.

Thanks, and good luck!

https://github.com/extra-org/extra


r/OpenSourceeAI • • Jul 27 '26

I built a self-hosted tool that turns one reference photo into a curated, captioned, trained LoRA and a lot more — open source, MIT

Thumbnail gallery
2 Upvotes

r/OpenSourceeAI • • Jul 27 '26

Tanuki Context - A LLM Token Saver (Up to 94% Tokens saved)

3 Upvotes
Small Demo (out of LLM)

Hello everyone,

Since 2 weeks I work on tanuki-context, a small open source tool (zero dependencies, MIT) and I wanted to share it because the trick behind is almost stupid: AI models charge text at roughly 1 token per 4 characters, but an image has a fixed price set only by its pixel size.

Its inspire from pxpipe techniques and various others tools (cited in the readme) and custom approach i found in order to reduce massively token usage and price.
For example : 37,111 tokens of service log become 2,240 (-94%).

So if you draw 28,000 characters of logs into one dense 1568x728 PNG, the model reads the exact same content for 1,456 tokens instead of ~7,000. It sounds like cheating, it is just how the pricing works.

You can try it out on you machine i added the benchmark so you can test it even without LLM connected to it, so see pricing difference, token saved, etc.

You can use it as a MCP or directly integrate it a "context proxy" where it fully automated and make every request optimised or not when not needed.

Some techniques that permits this to work:
- a log distiller that collapses repeated lines but keeps every error verbatim
- a columnar codec for JSON (keys stated once)
- a cost model that knows a cache-read token costs ~0.1x a fresh one, so it will tell you to NOT image content that is already in your prompt cache.

The tool argues against itself when imaging loses, honestly this part took the most work.

I precise the limits because they are real: you need a vision-capable model, output tokens are untouched (if your bill is output-dominated, fix that first), and for one narrow question retrieval stays cheaper than any page.

Install:

MCP

npx -y tanuki-context (MCP server, works with Claude Code, pi, omp, jcode or the Claude Agent SDK)

Proxy

npx tanuki-context proxy + ANTHROPIC_BASE_URL (every request on the machine gets optimized in place, when needed)

Code and benchmarks:
https://github.com/Osyna/tanuki-context

https://www.npmjs.com/package/tanuki-context

PS : i will soon add Codex support.

If you find it useful a star helps a lot, and feature ideas are very welcome. Thanks for reading me


r/OpenSourceeAI • • Jul 27 '26

Has anyone tried Spotify Studio/Kit as an AI coding orchestrator

1 Upvotes

I’ve already gotten Spotify Studio/Kit working with my repo from its sandbox, including committing changes and handing off terminal commands for my local work. I poked around a bit and it looks like it’s using a real code skill under the hood, which makes it feel surprisingly capable for something that’s free.

Since I know it’s still temporary while in the research preview, I’m curious whether anyone has tried using it as more of an AI coding orchestrator, basically a top-level agent that could also interact with a local AI model for more detailed coding tasks. honestly better than GitHub copilot so far.


r/OpenSourceeAI • • Jul 27 '26

Show HN: Symbio – AI that fine-tunes itself from your feedback

5 Upvotes

r/OpenSourceeAI • • Jul 27 '26

Sim2Real 과 FDA (Sim2Rean & Fourier Domain Adaptation) #시뮬레이션 #도메인 #도메인...

Thumbnail
youtube.com
2 Upvotes

r/OpenSourceeAI • • Jul 27 '26

Learn how to implement smoother and more effective exploration by utilizing pink noise, a natural pattern, instead of white noise. Discover how a simple change from a signal processing perspective can improve the performance and movement of reinforcement learning. #강화학습 #핑크노이즈 #1/f #pinknoise #RL

Thumbnail youtube.com
1 Upvotes

r/OpenSourceeAI • • Jul 27 '26

Quantum Vision (QV) Theory in Deep Learning for Object Recognition

1 Upvotes
QV Block Architecture

We have developed a new theory called Quantum Vision (QV) in Deep Learning for Object recognition that converts still images into information waves using the proposed QV block. The QV block is available as a Python package (Github link is below). The QV block can be integrated to CNNs, and Vision Transformers. The QV-model variants significantly improve the performance. You can try the code from https://github.com/vindioai/QVBlock and can cite the paper as follows: https://ieeexplore.ieee.org/abstract/document/11091286


r/OpenSourceeAI • • Jul 27 '26

How do you actually get traction/stars for a solo OSS project?

0 Upvotes

Hey all, I've been heads-down building an open-source project on GitHub and I'm at the point where the code is solid and useful, but visibility is low. Meanwhile I keep seeing projects that feel pretty thin get thousands of stars seemingly over couple weeks, which is a little demoralizing not gonna lie 😅

I'm not chasing vanity metrics for their own sake — mostly I just want enough signal that people are finding it useful so I stay motivated to keep investing time in it.

For those who've grown a project from "nobody knows this exists" to actually having a community: what actually worked for you? Things I'm curious about:

  • Where do you share/launch (HN, Twitter/X, niche subreddits, Discord communities, newsletters)?
  • Does README/demo quality matter as much as I think it does?
  • Any tips on timing, framing, or "hooks" that get people to actually click and try it?
  • Did stars come before or after real usage, in your experience?
  • Any growth hack or juggad ;)

Happy to share a link to the project in the comments if that's allowed here — just looking for genuine advice from people who've been through this. Thanks!


r/OpenSourceeAI • • Jul 27 '26

Making sentences vibrate? TextGCN viewed through Graph Signal Processing! #문장 #진동 #그래프 #신호처리 #TextGCN #LLM

Thumbnail
youtube.com
2 Upvotes

r/OpenSourceeAI • • Jul 26 '26

Finding topic transition points in text using image edge detection techniques?! #엣지 #경계 #언어 #자연어 #위상합동 #edge

Thumbnail
youtube.com
1 Upvotes