r/OpenSourceeAI • • Sep 27 '25

Sharing my GitHub repos: PyTorch, TensorFlow/Keras, FastAI, Object Detection and ML projects

23 Upvotes

I’m excited to share my complete collection of AI/ML repositories on GitHub. Over the past months, I’ve been curating and publishing hands-on notebooks across multiple deep learning frameworks, covering vision, NLP, GANs, transformers, AutoML and much more.

My PyTorch Works repo focuses on transformers, GANs, speech, LoRA fine-tuning and computer vision, while the TensorFlow/Keras Tutorials repo explores vision, NLP, audio, GANs, transfer learning and interpretability. I also maintain a Machine Learning Projects repo with regression, classification, clustering, AutoML, forecasting, and recommendation systems. For computer vision enthusiasts, I have an Object Detection repo covering YOLO (v4–v11), Faster/Mask R-CNN, DeepSORT and KerasCV implementations. Finally, my FastAI repo includes NLP projects, text summarization, image classification and ONNX inference

#MachineLearning #DeepLearning #PyTorch #TensorFlow #Keras #FastAI #ComputerVision #NLP #OpenSource


r/OpenSourceeAI • • Oct 20 '26

Google just open-sourced TorchTPU, a native PyTorch backend for TPUs (52% MFU on Qwen 3 8B)

Post image
22 Upvotes

r/OpenSourceeAI • • Apr 26 '26

Associative memory system for LLMs that learns during inference

22 Upvotes

I've been working on MDA (Modular Dynamic Architecture), an online associative memory system for LLMs. Here's what I learned building it.

The problem I was trying to solve

RAG can't learn mid-conversation. If you introduce a new fact after indexing, it's invisible to retrieval. I wanted a system that could learn during inference without retraining.

How MDA works

Every concept becomes an Entity with a 512-dim identity vector. Entities are connected through a sparse synapse graph. New knowledge updates weights via the Oja rule with no backpropagation. At query time, relevant entities are activated through chain traversal.

What I found interesting

The Oja rule's quadratic decay term acts as implicit normalization. You get weight stability for free without a separate orthogonalization step.

Benchmark results

against RAG (bge-large-en-v1.5 + ChromaDB):

Overall: MDA 83.1% vs RAG 78.8%

Incremental learning: MDA 60% vs RAG 0%

Long-context retention at turn 200: MDA 92% vs RAG 0%

Code: https://github.com/Rangle2/mda

Happy to answer questions about the architecture or implementation.


r/OpenSourceeAI • • Aug 30 '25

10GB of Cannabis/Strain Images Available for Download

22 Upvotes

For anyone who’s ever needed strain images: I put together a repository with 10GB of images of various cannabis strains.

All images are organized by strain name, perfect for visual references, posts, or research.

Check it out here: https://github.com/linhacanabica/images-strains-weed

Enjoy!


r/OpenSourceeAI • • Aug 01 '25

NVIDIA just released over 26M lines of synthetic data that was used to train the Llama Nemotron Super v1.5 model

Thumbnail
huggingface.co
22 Upvotes

r/OpenSourceeAI • • Jul 24 '26

I'm building a local, symbolic AI assistant without an LLM – and it runs 24/7.

Thumbnail
github.com
21 Upvotes

Hoi allemaal,

Ik wil graag mijn project Nova AI met jullie delen. Het is een persoonlijke AI-compagnon die volledig lokaal draait en geen grote taalmodellen gebruikt. In plaats daarvan is het gebouwd op symbolische AI: een netwerk van expliciete concepten, relaties en patronen die ik zelf kan inzien en aanpassen.

Wat het nu al kan:

· Natuurlijke gesprekken voeren

· Schaken tegen Stockfish (met een gekleurd bord en statistieken)

· Meerdaagse weersverwachtingen ophalen

· Wikipedia raadplegen en automatisch nieuwe concepten leren

· Woordassociaties bouwen met PMI-scoring

· Gedragsmatige patronen herkennen (timing, frequentie)

· Zichzelf opnieuw opstarten zonder gegevens kwijt te raken

· Zijn eigen persoonlijkheid, emoties en manier van uitdrukken

Architectuur: EventBus + 7-laags geheugen (SQLite, associatief netwerk, patroonherkenning, semantisch redeneren, responsgeneratie, context en persoonlijkheid).

De clou: ik ben een selfmade developer uit België. Een jaar geleden kon ik geen enkele regel code schrijven. Alles is gebouwd met AI-assistentie, maar de visie en de ontwerpkeuzes zijn volledig van mij.

De code is openbaar, maar de repository is vooral een kijkje achter de schermen—geen kant-en-klare plug-and-play package. Ik wilde laten zien wat er mogelijk is als je buiten de LLM-hype denkt.

Ik ben super benieuwd naar jullie vragen en feedback!


r/OpenSourceeAI • • Apr 08 '26

I built a desktop workspace that lets your Agent keep working on long-horizon tasks, and it’s FREE and you don't need a single line of code

21 Upvotes

I’ve been working on this for a while and finally got the OSS desktop/runtime path into a shape I felt good sharing here, it's absolutely helps your way to automation your workflow. And we have released the latest version in the repo and you can install and use it without a single line of code.

It’s called Holaboss. Basically it’s a desktop workspace + runtime that lets Agents hold ongoing work, not just answer a prompt. So instead of just chatting with a local model, you can do things like:

Inbox Management
Runs your inbox end-to-end: drafts, replies, follow-ups, and continuous surfaces + nurtures new leads over time.

Sales CRM
Works off your contact spreadsheet, manages conversations, updates CRM state, and keeps outbound + follow-ups running persistently.

DevRel
Reads your GitHub activity (commits, PRs, releases) and continuously posts updates in your voice while you stay focused on building.

Social Operator
Operates your Twitter / LinkedIn / Reddit: writes, analyzes performance, and iterates your content strategy over time.

move the worker’s setup with the workspace, so the context / tools / skills travel with the work

The whole point is that local model inference is only one layer. Holaboss handles the work layer around it: where the rules live, where unfinished work lives, where reusable procedures live, and where a local setup can come back tomorrow without losing the thread.

Setup is dead simple right now:
Go to the Releases section in the right sidebar of the repo, download the latest version (holaboss-2026.4.8, Holaboss-macos-arm64.dmg), and you can use it, no code required.

Right now the OSS desktop path is macOS-first, with Windows/Linux in progress.

Repo: https://github.com/holaboss-ai/holaboss-ai

Would love for people here to try it. If it feels useful, a ⭐️ would mean a lot.
Happy to answer questions about continuity, session resume, automations.


r/OpenSourceeAI • • Feb 06 '26

built a desktop assistant [fully local] for myself without any privacy issue

21 Upvotes

I spent 15 minutes recently looking for a PDF I was working on weeks ago.

Forgot the name. Forgot where I saved it. Just remembered it was something I read for hours one evening.

That happens to everyone right?

So I thought - why can't I just tell my computer "send me that PDF I was reading 5 days ago at evening" and get it back in seconds?

That's when I started building ZYRON. I am not going to talk about the development & programming part, that's already in my Github.

Look, Microsoft has all these automation features. Google has them. Everyone has them. But here's the thing - your data goes to their servers. You're basically trading your privacy for convenience. Not for me.

I wanted something that stays on my laptop. Completely local. No cloud. No sending my file history to OpenAI or anyone else. Just me and my machine.

So I grabbed Ollama, installed the Qwen2.5-Coder 7B model in my laptop, connected it to my Telegram bot. Even runs smoothly on an 8GB RAM laptop - no need for some high-end LLMs. Basically, I'm just chatting with my laptop now from anywhere, anytime. Long as the laptop/desktop is on and connected to my home wifi , I can control it from outside. Text it from my phone "send me the file I was working on yesterday evening" and boom - there it is in seconds. No searching. No frustration.

Then I got thinking... why just files?

Added camera on/off control. Battery check. RAM, CPU, GPU status. Audio recording control. Screenshots. What apps are open right now. Then I did clipboard history sync - the thing Apple does between their devices but for Windows-to-Android. Copy something on my laptop, pull it up on my phone through the bot. Didn't see that anywhere else.

After that I think about browsers.

Built a Chromium extension. Works on Chrome, Brave, Edge, anything Chromium. Can see all my open tabs with links straight from my phone. Someone steals my laptop and clears the history? Doesn't matter. I still have it. Everything stays on my phone.

Is it finished? Nah. Still finding new stuff to throw in whenever I think of something useful.

But the whole point is - a personal AI that actually cares about your privacy because it never leaves your house.

It's open source. Check it out on GitHub if you want.

And before you ask - no, it's not some bloated desktop app sitting on your taskbar killing your battery. Runs completely in the background. Minimal energy. You won't even know it's there.

If you ever had that moment of losing track of files or just wanted actual control over your laptop without some company in the cloud watching what you're doing... might be worth checking out.

Github - LINK


r/OpenSourceeAI • • Jan 12 '26

We fine-tuned a 4B Text2SQL model that matches a 685B teacher - query your CSV data in plain English, locally

Post image
21 Upvotes

We have been exploring how far you can push small models on narrow, well-defined tasks and decided to focus on Text2SQL. We fine-tuned a small language model (4B parameters) to convert plain English questions into executable SQL queries with accuracy matching a 685B LLM (DeepSeek-V3). Because it's small, you can run it locally on your own machine, no API keys, no cloud dependencies. You can find more information on the GitHub page.

Just type: "How many employees earn more than 50000?" → you get: *SELECT COUNT(*) FROM employees WHERE salary > 50000;*

How We Trained Text2SQL

Asking questions about data shouldn't require knowing SQL. We wanted a local assistant that keeps your data private while matching cloud LLM quality. Small models are perfect for structured generation tasks like SQL, so this became our next testbed after Gitara.

Our goals:

  • Runs locally (Ollama/llamacpp/transformers serve) - your data never leaves your machine

  • Fast responses (<2 seconds on a laptop)

  • Match the accuracy of a 685B model

Examples

"How many employees are in each department?"
→ SELECT department, COUNT(*) FROM employees GROUP BY department;

"What is the average salary by department?"
→ SELECT department, AVG(salary) FROM employees GROUP BY department;

"Who are the top 3 highest paid employees?"
→ SELECT name, salary FROM employees ORDER BY salary DESC LIMIT 3;

"Show total project budget per employee" (with JOINs)
→ SELECT e.name, SUM(p.budget) FROM employees e JOIN projects p ON e.id = p.lead_id GROUP BY e.name;

Results

ModelParamsLLM-as-a-JudgeExact MatchModel link
DeepSeek-V3 (teacher)685B80%48%
Qwen3-4B (fine-tuned)4B80%60%huggingface
Qwen3-4B (base)4B62%16%

Our fine-tuned 4B model matches the 685B teacher on semantic accuracy and actually exceeds it on exact match. The quantized version also responds <2 seconds on an M4 MacBook Pro.

The wrapper script in the GitHub page loads your CSV files, generates SQL, executes it, and returns the results.

Training Pipeline

1. Seed Data: We wrote ~50 examples covering simple queries, JOINs, aggregations, and subqueries. Available in finetuning/data/.

2. Synthetic Expansion: Using our data synthesis pipeline, we expanded to ~10,000 training examples with diverse schemas across e-commerce, HR, healthcare, and other domains.

3. Fine-tuning: We chose Qwen3-4B based on our benchmarking of 12 small language models, which showed it offers the best balance of capability and efficiency for fine-tuning. Training config: 4 epochs, full fine-tuning on ~10k examples.

Qualitative Examples

We compare the base QWEN3-4B with the fine tuned version on a few cherry-picked examples to showcase the difference

Example 1: Missing Aggregation Function

Schema:

CREATE TABLE employees (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL,
  team TEXT,
  base_salary INTEGER,
  bonus INTEGER
);

Question: What is the total compensation (salary + bonus) per team?

ModelPrediction
ReferenceSELECT team, SUM(base_salary + bonus) FROM employees GROUP BY team;
Base qwen3-4bSELECT team, (base_salary + bonus) AS total_compensation FROM employees GROUP BY team;
Tuned qwen3-4bSELECT team, SUM(base_salary + bonus) FROM employees GROUP BY team;

Analysis: The base model omitted the SUM() aggregate function, returning only an arbitrary row's compensation per team rather than the total. The tuned model correctly applies the aggregation.

Example 2: Syntax Error in CASE Expression

Schema:

CREATE TABLE tasks (
  id INTEGER PRIMARY KEY,
  project_id INTEGER,
  title TEXT,
  status TEXT,
  assigned_to INTEGER
);

Question: What percentage of tasks are completed?

ModelPrediction
ReferenceSELECT (COUNT(CASE WHEN status = 'completed' THEN 1 END) * 100.0 / COUNT(*)) FROM tasks;
Base qwen3-4bSELECT (COUNT(CASE WHEN status = 'completed' THEN 1 END. * 100.0) / COUNT(*)) AS percentage_completed FROM tasks;
Tuned qwen3-4bSELECT (COUNT(CASE WHEN status = 'completed' THEN 1 END) * 100.0 / COUNT(*)) FROM tasks;

Analysis: The base model produced invalid SQL with a syntax error (END. instead of END), causing query execution to fail. The tuned model generates syntactically correct SQL matching the reference.

Want to try it?

Repo: https://github.com/distil-labs/distil-text2sql

Quick start (Ollama):

# Download model (~2.5GB quantized)
huggingface-cli download distil-labs/distil-qwen3-4b-text2sql-gguf-4bit --local-dir distil-model
cd distil-model
ollama create distil-qwen3-4b-text2sql -f Modelfile
cd ..

# Query your data
python app.py --csv your_data.csv --question "How many rows have status = active?"

Discussion

Curious to hear from the community:

  • How are you querying local data today? SQL? Pandas? Something else?

  • Anyone else fine-tuning small models for structured output tasks?

  • What other "narrow but useful" tasks would benefit from a local SLM?

Let us know what you think!


r/OpenSourceeAI • • Nov 11 '25

built an open-source, AI-native alternative to n8n that outputs clean TypeScript code workflows

Thumbnail
github.com
21 Upvotes

hey everyone,

Like many of you, I've used workflow automation tools like n8n, zapier etc. they're ok for simpler flows, but I always felt frustrated by the limitations of their proprietary JSON-based nodes. Debugging is a pain, and there's no way to extend into code.

So, I built Bubble Lab: an open-source, typescript-first workflow automation platform, here's how its different:

1/ prompt to workflow: the typescript infra allows for deep compatibility with AI, so you can build/amend workflows with natural language. Our agent orchestrates our composable bubbles (integrations, tools) into a production-ready workflow

2/ full observability & debugging: Because every workflow is compiled with end-to-end type safety and has built-in traceability with rich logs, you can actually see what's happening under the hood

3/ real code, not JSON blobs: Bubble Lab workflows are built in Typescript code. This means you can own it, extend it in your IDE, add it to your existing CI/CD pipelines, and run it anywhere. No more being locked into a proprietary format.

check out our repo (stars are hugely appreciated!), and lmk if you have any feedback or questions!!


r/OpenSourceeAI • • Jul 16 '25

NVIDIA Releases Audio Flamingo 3: An Open-Source Model Advancing Audio General Intelligence

Thumbnail
marktechpost.com
21 Upvotes

r/OpenSourceeAI • • 21d ago

I got tired of the limitations of Windows screen recorders, so I built my own — Rekzora

Thumbnail
gallery
20 Upvotes

I've tried several screen recording applications on Windows, but I kept running into limitations.

Some had limited recording options, some restricted features, and others made simple recording workflows unnecessarily complicated.

Eventually, I decided to build my own solution.

Introducing Rekzora, an open-source Windows screen recorder I've been developing under NEURON TS LABS.

Some of its features:

Fullscreen, window and custom-region recording

Microphone and system audio recording

Webcam picture-in-picture

Pause and resume recording

Global keyboard shortcuts

Floating recording toolbar

Built-in recording library and video player

Crash-recovery support

Portable and Windows installer builds

My goal was to build a screen recorder that gives users more control without unnecessary restrictions or cloud dependencies.

It's completely open source, and I'd genuinely love to hear what other Windows users think.

GitHub: https://github.com/tahirshaikh744-design/Rekzora

I'm especially interested in hearing:

What's the most frustrating limitation you've experienced with existing Windows screen recorders?

What feature do you wish they offered?

Honest feedback and suggestions are welcome!


r/OpenSourceeAI • • Aug 16 '25

NVIDIA AI Just Released the Largest Open-Source Speech AI Dataset and State-of-the-Art Models for European Languages

Thumbnail
marktechpost.com
20 Upvotes

r/OpenSourceeAI • • 9d ago

Agentic GraphRAG: an open source library connecting enterprise knowledge and agent memory using a 3D knowledge graph

19 Upvotes

We're building Agentic GraphRAG (https://github.com/ontogr/agentic-graphrag), an open source library for connecting the documents an agent reads with its task history and decisions.

I've worked on RAG systems and LLM training for the past three and a half years. Lately, I've been following how agents retain work across sessions, especially coding agents. Our project explores how that memory can stay connected to the knowledge an agent used, so a later session can recover both a conclusion and its evidence.

The implementation uses Neo4j for three connected graph layers:

  1. Knowledge holds documents, source passages, and extracted entities and relationships. Passages retain their document version and location, including page positions for PDFs.

  2. Working memory records tasks, progress, messages, and tool activity. The built-in agent uses DeepAgents/LangGraph and saves task events so work can continue across sessions.

  3. Decision memory stores conclusions, assumptions, and open questions. Decisions link to source passages, recorded events, or earlier decisions, and keep their history when reviewed or replaced.

For example, an agent can record a contract recommendation with the policy passage it relied on. If that policy changes, the recommendation and its explicit dependent decisions are flagged for review. The change doesn't automatically make the recommendation wrong, but it tells a later session that the decision needs another look.

The document pipeline uses Docling for ingestion and Chonkie for chunking, preserving sections, tables, and passage hierarchy. You define a schema for your domain's entities, properties, and relationships. The schema guides extraction, validation, and entity search. GLiNER supports local extraction, with BAML handling structured LLM extraction for selected chunks.

Retrieval combines Neo4j's native full-text and vector rankings with reciprocal rank fusion. Agents can search original passages even when extraction misses a fact, navigate surrounding sections and table rows with headers, and follow entity relationships back to supporting text.

The built-in agent checks that cited passages were read during the run, belong to the allowed documents, and match the cited versions. You can also connect other agents through MCP.

We're working on a more modular pipeline, additional storage backends, and domain-specific benchmarks.

TL;DR

Agentic GraphRAG is an open source library that stores document knowledge, agent work, and decisions in one connected graph. Agents can resume tasks and trace saved decisions to their original evidence, while source changes flag affected decisions for review.

Are there other open source projects you'd recommend for combining RAG and agent memory? I'd also like to hear what you think of our approach.


r/OpenSourceeAI • • Sep 23 '26

NVIDIA Releases Nemotron 3 Diarization: A 100M-Parameter Open-Weight Model That Tracks 8 Speakers in Real Time

Post image
19 Upvotes

r/OpenSourceeAI • • Apr 18 '26

I hated watching Claude Code burn context on HTML junk, so I built rdrr

19 Upvotes

very time an agent does WebFetch on a docs page it pulls in nav, ads, footer, analytics, cookie banners, and 15 third party scripts. Half the context is gone before it reads a single sentence.

So I built rdrr. One command:

npx rdrr https://react.dev/learn

Clean markdown out. Example on react.dev/learn:

  • 29 KB instead of 265 KB

  • 9k tokens instead of 93k

  • ~10x savings

The trick for Claude Code is one line in ~/.claude/CLAUDE.md:

Use `rdrr "{url}"` via Bash
instead of WebFetch. Returns clean markdown.

Now Claude Code reaches for rdrr automatically on docs, articles, GitHub issues, X posts, YouTube transcripts. Context stays clean, agent doesn't get dumb halfway through the task. Works the same with Codex, Gemini CLI, Kilo, anything that can shell out.

20+ site-specific extractors (Wikipedia, GitHub, HN, Reddit, X, Substack, ChatGPT/Claude share links, and so on), no headless browser, MIT licensed.

PRs welcome


r/OpenSourceeAI • • Apr 02 '26

I scanned 10 popular vibe-coded repos with a deterministic linter. 4,513 findings across 2,062 files. Here's what AI agents keep getting wrong.

19 Upvotes

I build a lot with Claude Code. Across 8 different projects. At some point I noticed a pattern: every codebase had the same structural issues showing up again and again. God functions that were 200+ lines. Empty catch blocks everywhere. console.log left in production paths. any types scattered across TypeScript files.

These aren't the kind of things Claude does wrong on purpose. They're the antipatterns that emerge when an LLM generates code fast and nobody reviews the structure.

So I built a linter specifically for this.

What vibecop does:

22 deterministic detectors built on ast-grep (tree-sitter AST parsing). No LLM in the loop. Same input, same output, every time. It catches:

  • God functions (200+ lines, high cyclomatic complexity)

  • N+1 queries (DB/API calls inside loops)

  • Empty error handlers (catch blocks that swallow errors silently)

  • Excessive any types in TypeScript

  • dangerouslySetInnerHTML without sanitization

  • SQL injection via template literals

  • Placeholder values left in config (yourdomain.com, changeme)

  • Fire-and-forget DB mutations (insert/update with no result check)

  • 14 more patterns

I tested it against 10 popular open-source vibe-coded projects:

ProjectStarsFindingsWorst issue
context751.3K11871 console.logs, 21 god functions
dyad20K1,104402 god functions, 47 unchecked DB results
bolt.diy19.2K949294 any types, 9 dangerouslySetInnerHTML
screenpipe17.9K1,340387 any types, 236 empty error handlers
browser-tools-mcp7.2K420319 console.logs in 12 files
code-review-graph3.9K4106 SQL injections, 139 unchecked DB results

4,513 total findings. Most common: god functions (38%), excessive any (21%), leftover console.log (26%).

Why not just use ESLint?

ESLint catches syntax and style issues. It doesn't flag a 2,557-line function as a structural problem. It doesn't know that findMany without a limit clause is a production risk. It doesn't care that your catch block is empty. These are structural antipatterns that AI agents introduce specifically because they optimize for "does it work" rather than "is it maintainable."

How to try it:

npm install -g vibecop
vibecop scan .

Or scan a specific directory:

vibecop scan src/ --format json

There's also a GitHub Action that posts inline review comments on PRs:

yaml

- uses: bhvbhushan/vibecop@main
  with:
    on-failure: comment-only
    severity-threshold: warning

GitHub: https://github.com/bhvbhushan/vibecop MIT licensed, v0.1.0. Open to issues and PRs.

If you use Claude Code for serious projects, what's your process for catching these structural issues? Do you review every function length, every catch block, every type annotation? Or do you just trust the output and move on?


r/OpenSourceeAI • • May 31 '25

Looking for Open Source Resume/CV Parsing Tools (Self-Hosted or API-based)

19 Upvotes

I’m helping a friend who runs a recruitment agency and receives 100+ CVs daily via email. We’re looking to build a resume parsing system that can extract structured data like name, email, phone, skills, work experience, etc., from PDF and DOC files.

Ideally, we want an open-source solution that we can either: • Self-host • Integrate via API • Or run locally (privacy is important)

I’ve come across OpenResume, which looks amazing for building resumes and parsing them client-side. But we’re also exploring other options like: • Affinda API (good, but not open source) • spaCy + custom NLP • Docparser/Parseur (not fully open source) • Rchilli (proprietary)

Any recommendations for: 1. Open-source resume parsing libraries or projects? 2. Tools that work well with PDFs/DOCX and return JSON? 3. Anything that could be integrated with Google Sheets, Airtable, or a basic recruiter dashboard?

Appreciate any input, especially from those who’ve built similar tools. Thanks in advance!


r/OpenSourceeAI • • Apr 13 '26

I scaled a pure Spiking Neural Network (SNN) to 1.088B parameters from scratch. Ran out of budget, but here is what I found.

18 Upvotes

Hey everyone. I’m an 18yo indie dev, and I’ve been experimenting with Spiking Neural Networks (SNNs) for language modeling. A lot of papers (like SpikeBERT) mention that training 1B+ SNNs directly from random initialization fails due to vanishing gradients, so people usually do ANN-to-SNN conversion or distillation. I wanted to see if I could force it to converge purely in the spike domain.

I built Project Nord v5.0 (1.088B parameters). I used surrogate gradients, LeakyClamp, and neuromodulation-gated STDP to keep the gradients flowing across 10 timesteps. I did the dev work locally on my laptop (RTX 5070 8GB, 64GB RAM, Arch Linux) and spent my entire $670 budget renting cloud GPUs for the actual training run.

I had to stop at 27k steps because my wallet is literally empty lol, but the loss converged to 4.4.

Here are the most interesting things that happened:

  1. Massive Sparsity: It maintains ~93% sparsity. Only about 7% of neurons fire per token. It's incredibly cheap on memory during inference compared to dense models.

  2. Cross-lingual emergence: Around step 25K, it randomly started generating structurally correct Russian text, even though it wasn't explicitly targeted/weighted for it in the dataset mix.

  3. Memory routing shift: As I scaled the architecture past 600M to 1B, the model spontaneously shifted 39% of its activation routing into the persistent memory module. It basically learned on its own that memory is more valuable at a larger scale.

Limitations (Being honest):
The text generation is still janky and nowhere near GPT-2 fluency yet. The loss (4.4) is high, mostly because I couldn't train it longer. But proving that a 1B pure SNN can converge from random init feels like a solid milestone.

I'm sharing this because I'd love some harsh technical feedback.

  1. Does anyone here have experience with neuromorphic hardware? Would an architecture like this map well to Loihi?

  2. If anyone has tips on pushing SNN loss lower or stabilizing surrogate gradients further, I'm all ears.

The code, architecture details, and the 12GB full training checkpoint (weights + optimizer states) are on my GitHub:https://github.com/gtausa197-svg/-Project-Nord-Spiking-Neural-Network-Language-Model.git


r/OpenSourceeAI • • Feb 08 '26

Building a Modern LLM from Scratch: Pretraining, SFT and RLHF

18 Upvotes

I recently worked on building a large language model (LLM) from scratch using a modern 2026-style training pipeline. Due to limited compute resources, I couldn’t fully train the model, but I successfully implemented the complete end-to-end workflow used in today’s advanced LLM systems.

The process began with pretraining a base language model using causal language modeling. Because of resource constraints, this stage was limited to only two epochs, leaving the base model undertrained. I then applied supervised fine-tuning to convert the base model into an instruction-following model using prompt–response pairs and cross-entropy loss, which was also restricted to two epochs.

Next, I collected human preference data by generating multiple responses per prompt and ranking them based on quality, helpfulness, and safety. Using this data, I trained six separate reward models, all initialized from the supervised fine-tuned weights, using pairwise preference loss to learn human-aligned scoring functions.

Finally, I performed reinforcement learning fine-tuning with Proximal Policy Optimization. The supervised fine-tuned model was optimized using the reward signal while applying a KL-divergence penalty to control policy drift and maintain response coherence. Due to compute limits, this stage was restricted to around 500 PPO steps and included a value model for advantage estimation.

Although the final model is undertrained and not production-ready, this project was focused on understanding the real-world mechanics of modern LLM training and alignment rather than achieving benchmark performance. Building the full RLHF pipeline from scratch under tight resource constraints was challenging, but the learning experience was invaluable.

Github ==> https://github.com/jarif87/corellm


r/OpenSourceeAI • • Jul 21 '25

NVIDIA AI OPEN SOURCED DiffusionRenderer: An AI Model for Editable, Photorealistic 3D Scenes from a Single Video

Thumbnail
pxl.to
18 Upvotes

r/OpenSourceeAI • • Oct 10 '26

I Built a O(NlogN) attention system that retains 97% accuracy over long context (MQAR)

Thumbnail
github.com
17 Upvotes

ALHR- Adaptive learnable Hierarchical Routing is a static binary tree based system that uses learnable functions to REDUCE the amount of keys used.

It takes less memory and SCALES much better VRAM with tokens


r/OpenSourceeAI • • Oct 06 '26

Muse and Grok bot are a privacy nightmare, so I created a self-hosted alternative called Eidon

17 Upvotes

With the recent explosion of agentic tools like Grok bot, Muse, OpenAI Dots, I've started looking into local options with self-hosted models. I tried Hermes and OpenClaw, but I wasn't too happy with the multi-device experience, and with how many pieces you need to glue together to get a usable, solid experience.

The hosted options also meant handing an agent my accounts, files and browsing, which I wasn't comfortable with. So I built Eidon: a self-hosted, all-in-one AI platform with a team of agents. It's one install via Docker, it works across your devices, and your data stays on your server.

https://eidonai.app

Agent team first

  • Every Eidon starts with a Chief of Staff. Ask it for anything. It answers directly, hands the job to the right agent, or creates a new agent when nobody fits.

  • Agents hand work to each other automatically (or type @ to pass a job along).

  • Each agent has its own browser, conversation, files, memory and routines. There's also a folder the whole team shares.

  • Agents can search and browse the web on their own, read pages in full, and cite sources.

  • They run on schedules and keep every run. When one finishes, you can get notified by browser push, ntfy, Slack or webhook.

  • Agents can write their own skills and use your apps through MCP.

You still have some control:

  • Take over an agent's browser for a login or a tricky step. It waits, then carries on when you hand it back.

  • Anything that sends on your behalf waits as a draft until you press Send.

  • Commands and tools ask first: allow once, allow always, or no.

  • Rewind a conversation, or fork it from any message.

The examples on the site are a travel scout, inbox triage, a research desk and a coding assistant. You can make an agent for pretty much anything: bookkeeping, a study buddy, a news digest, a meal planner.

It's also a regular ChatGPT-style app for day to day questions.

You might not always need a full team so you can just chat in a normal “ChatGPT like” interface with all the belts and whistles:

  • Persistent Memory

  • Folders and search

  • Voice input with LLM post-processing

  • Files and images

  • Personas

  • Temporary chats

  • Share links

  • Web search

  • Deep research

  • Code with syntax highlighting, Mermaid diagrams and math rendered inline

  • Image generation

  • Installs as a PWA on your phone and realtime sync across your devices (a native mobile app is coming !)

Self-Hosted

  • Multi-user support, with private data per user

  • Agents run in their own sandbox

  • Nothing leaves your server

  • Bring your own local or cloud model: OpenAI, Anthropic, OpenRouter, Ollama, LM Studio, GitHub Copilot, Gemini, DeepSeek, Mistral, Kimi, Z.ai, Minimax, Perplexity, Grok, Azure, AWS, and any compatible API

  • Free, open source (AGPL-3.0), and setup is one Docker command

GitHub (setup guide, full feature list): https://github.com/Quack6765/Eidon-AI

I'd like to hear what you think ! What's missing, what breaks, and what agents you'd want to build. Issues and discussions are open on GitHub as well.


r/OpenSourceeAI • • Jul 10 '26

I made Claude's web research 18× cheaper with 2 lines of setup

17 Upvotes

I've been using Claude Code daily, and one thing kept bothering me.

Whenever Claude calls WebFetch, it often dumps 3,000–15,000 tokens from an entire web page into the context window, even if the answer is buried in a single section.

Multiply that across a few documentation pages, and you're spending thousands of unnecessary tokens just to answer one question.

So I built Webify.

Instead of sending the whole page to Claude, Webify parses the HTML into a DOM graph, identifies the parts relevant to your query using BM25 and a BFS traversal, and returns only the relevant subtree.

In practice, Claude usually gets 80–300 tokens instead of several thousand.

I ran a blind benchmark on 15 unseen queries (Sonnet as the judge):

  • Webify: 68/75 (91%)

  • Deep Research: 73/75 (97%)

The gap wasn't accuracy, it was completeness. Deep Research simply reads more pages. For most developer workflows, the answers were effectively the same while using a fraction of the tokens.

The pipeline is pretty simple:

  • Parse HTML into a DOM hierarchy

  • Score nodes using BM25

  • Traverse nearby nodes with BFS to preserve context

  • For search, build graphs from multiple pages in parallel and synthesize the results

No embeddings. No vector database. Just retrieving the part of the page that's actually relevant instead of making Claude read everything.

Installation takes about 30 seconds:

pip install webify-mcp
claude mcp add webify -- webify-mcp

Github Link: https://github.com/kunal12203/webify-mcp/

No config files. It works with Claude Code, Cursor, Windsurf, VS Code, Zed, or anything that supports MCP.

It's totally open source under an MIT license, and I'd love to hear where it breaks or how it can be improved; PRs are welcome.