r/OpenSourceeAI • • Jul 01 '26

FaceFlash: 1M face search in 61 MB RAM, 100% recall vs exact cosine. Reproducible benchmarks included.

14 Upvotes

I've been working on a face search library that keeps the index small enough to run on cheap hardware — no GPU, no cloud, just CPU.

The core idea: compress each ArcFace embedding (512 floats, 2048 bytes) into a 64-byte binary code using PCA+ITQ, search by Hamming distance, then rerank the top 100 with exact cosine. The binary codes preserve nearest-neighbor ordering on face embeddings, so you don't lose accuracy.

python

from faceflash import FaceFlash
ff = FaceFlash()ff.register("Alice", "alice.jpg")ff.register("Bob", "bob.jpg")
result = ff.search("query.jpg")# {"matches": [{"name": "Alice", "confidence": 0.92}], "search_time_ms": 0.4}
# works for verification tooff.verify("photo1.jpg", "photo2.jpg")# {"match": True, "confidence": 0.87}

I use it for access control and photo library dedup. Could also work for attendance systems, finding people in video footage, or watchlist matching — all running locally.

Results on RunPod (AMD EPYC 9355, Rust + AVX-512)

These are with the full Rust SIMD backend. Ground truth is FAISS-Flat exact cosine — recall@1 means "returns the same nearest neighbor as brute-force search."

FaceFlash scaling:

FacesRecall@1Single-query latencyBatched QPSIndex memory
100K100%0.30 ms27,6616.1 MB
500K100%1.45 ms10,33730.5 MB
1M100%2.95 ms5,40361 MB

All competitors at 1M faces:

MethodRecall@1Single queryBatchedIndex RAM
FaceFlash (512-bit)100%2.95 ms0.19 ms61 MB
HNSWLIB (ef=128)100%0.66 ms0.18 ms2,930 MB
USearch94.1%0.32 ms–2,539 MB
ScaNN98.2%0.86 ms–122 MB
FAISS-Flat (exact)100%56 ms–1,953 MB

All competitors at 100K faces:

MethodRecall@1Single queryBatched QPSIndex RAM
FaceFlash (512-bit)100%0.30 ms27,6616.1 MB
HNSWLIB (ef=128)100%0.60 ms5,813293 MB
USearch99.5%0.17 ms137,264254 MB
ScaNN98.3%0.10 ms–12 MB
FAISS-Flat (exact)100%4.90 ms204195 MB

To be clear: HNSW is faster per-query at 1M (O(log N) vs O(N) linear scan). FaceFlash wins on memory — 48x less at the same recall. The scan only beats HNSW on latency up to ~200K where codes still fit in cache.

Results on Google Colab (free CPU, numpy fallback)

I made a Colab notebook so anyone can verify without installing anything. It pulls real MS1MV2 embeddings from a public HuggingFace dataset and benchmarks everything.

Important: Colab can't build the Rust backend, so it runs a numpy fallback. Recall is ~98-99% instead of 100% because numpy's argpartition handles Hamming distance ties differently than the Rust kernel's exact top-k. Memory numbers are identical — that's pure math (64 bytes/face), hardware-independent.

Colab results (free CPU, numpy, no Rust):

ScaleMethodRecall@1Memory
100KFAISS-Flat (exact)100%205 MB
100KFaceFlash (512-bit)98.0%6.4 MB
100KHNSWLIB (ef=128)98.2%~307 MB
100KUSearch96.4%~266 MB
500KFAISS-Flat (exact)100%1,024 MB
500KFaceFlash (512-bit)99.6%32 MB
500KHNSWLIB (ef=128)99.6%~1,536 MB
500KUSearch98.2%~1,331 MB

The Colab also runs an isolation test — same binary codes through FAISS IndexBinaryFlat give the same recall as FaceFlash. Proves the accuracy comes from PCA+ITQ compression, not anything special in my kernel.

Verify it yourself

Colab (5 min, free, no tokens, no GPU):

https://colab.research.google.com/github/raghavenderreddygrudhanti/faceflash/blob/main/examples/faceflash_reproduce_colab.ipynb

Full Rust-based run (any Linux box, ~15 min, no tokens):

bash

git clone https://github.com/raghavenderreddygrudhanti/faceflashcd faceflash && bash scripts/runpod_ms1m.sh

This builds the Rust backend, pulls embeddings from HuggingFace, runs the full suite, and produces the exact RunPod numbers above.

How it works

  1. ArcFace extracts a 512-d float embedding from a face photo

  2. PCA rotates to the axes where identity varies most

  3. ITQ balances the bits so each one carries information

  4. Rust kernel scans all binary codes with POPCNT/AVX-512

  5. Exact cosine on the top-100 Hamming candidates picks the winner

This isn't a new algorithm. PCA+ITQ is from 2011 (Gong & Lazebnik). The contribution is packaging it end-to-end with a fast kernel and measuring it honestly against modern alternatives.

Looking for contributors

The project is MIT licensed and there's open work I haven't gotten to:

AreaDifficultyImpact
DiskANN comparisonMediumHigh — the one competitor I haven't benchmarked
Mobile deployment (ONNX + CoreML)MediumHigh — iOS/Android face search
Streaming insertion (no PCA refit)HardHigh — online learning without rebuilding
GPU batched search (CUDA)HardMedium — 10M+ galleries
Raspberry Pi / Jetson benchmarksEasyMedium — proves the edge story
WebAssembly buildMediumMedium — browser face search

If any of these sound interesting, issues are tagged and I'm happy to pair on design.

GitHub: https://github.com/raghavenderreddygrudhanti/faceflash

Feedback on the benchmark methodology is welcome — I estimate competitor memory (vectors + overhead) instead of measuring it, which is probably the weakest part. If someone spots unfair params for HNSW or FAISS I genuinely want to know.


r/OpenSourceeAI • • May 27 '26

Meet OmniVoice Studio: A Local, Open-Source Alternative to ElevenLabs

Thumbnail
github.com
14 Upvotes

ElevenLabs offers voice AI plans ranging from $5 to $330 monthly, with all audio processing handled through their cloud infrastructure. If you’re searching for an open-source alternative that keeps processing on your own machine, OmniVoice Studio is a strong option, providing similar voice AI capabilities through a fully local desktop application.


r/OpenSourceeAI • • May 21 '26

Linki v2 is out, open-source AI SDR for LinkedIn + cold email (big update)

14 Upvotes

Hey everyone, I built Linki a few months ago as a free self-hosted alternative to Waalaxy and Lemlist. Back then it was a basic LinkedIn sequencer. I just shipped a huge update and it's now a proper AI SDR, so wanted to share what changed.

What is Linki (for those who don't know)

Self-hosted LinkedIn automation + cold email with an AI agent that writes every message for each lead individually. No SaaS middleman, no per-seat pricing, your data stays on your machine. You connect any model via OpenRouter (Claude, GPT-4o, Mistral, whatever).

What's new in this version

The AI agent is now the center of everything. There's a 3-layer prompt system: global context about your business and offer, campaign-level instructions, then per-step prompts. The agent writes with full context instead of just filling a template.

LinkedIn + email in the same campaign now. So you can do visit, connect, wait 2 days, send a LinkedIn message, wait 3 days, send a cold email. All in one sequence.

Unified inbox. All email replies from all your campaigns show up in one place. LinkedIn reply detection too.

Apollo enrichment built in. Connect your Apollo key, click enrich on any list, get verified emails and company data.

Big reliability improvement on the LinkedIn automation itself. Rewrote the DOM targeting and message delivery, about 63% improvement in connection reliability. Also added randomized pacing on imports to avoid bot detection.

AI cost tracking. Every generation is logged with model, token count, and cost. You always know what you're spending.

Hosting

Docker compose or manual Node.js. Or one-click on Opsily if you don't want to deal with the terminal. SQLite, no external DB needed.

Repo: github.com/moaljumaa/linki

Enjoyy!!!


r/OpenSourceeAI • • Feb 24 '26

Off Grid - On Device AI that doesn't track your conversations. ZERO data leaves your deivce.

14 Upvotes

I got tired of choosing between privacy and useful AI, so I open sourced this.

What it runs:
- Text gen via llama.cpp -- Qwen 3, Llama 3.2, Gemma 3, Phi-4, any GGUF model. 15-30 tok/s on flagship, 5-15 on mid-range
- Image gen via Stable Diffusion -- NPU-accelerated on Snapdragon (5-10s), Core ML on iOS. 20+ models
- Vision -- SmolVLM, Qwen3-VL, Gemma 3n. Point camera, ask questions. ~7s on flagship
- Voice -- Whisper speech-to-text, real-time
- Documents -- PDF, CSV, code files attached to conversations

What just shipped (v0.0.58):
- Tool use -- the model can now call web search, calculator, date/time, device info and chain them together. Entirely offline. Works with models that support tool calling format
- Configurable KV cache -- f16/q8_0/q4_0. Going from f16 to q4_0 roughly tripled inference speed on most models. The app nudges you to optimize after first generation
- Live on App Store + Google Play -- no sideloading needed

Hardware acceleration:
- Android: QNN (Snapdragon NPU), OpenCL
- iOS: Core ML, ANE, Metal

Stack: React Native, llama.rn, whisper.rn, local-dream, ml-stable-diffusion

GitHub: https://github.com/alichherawalla/off-grid-mobile

Happy to answer questions about the implementation -- especially the tool use loop architecture and how we handle KV cache switching without reloading the model.


r/OpenSourceeAI • • Sep 26 '25

In-Browser Codebase to Knowledge Graph generator

14 Upvotes

I’m working on a side project that generates a Knowledge Graph from codebases and provides a Graph-RAG-Agent. It runs entirely client-side in the browser, making it fully private, even the graph database runs in browser through web-assembly. It is now able to generate KG from big repos ( 1000+ files) in seconds.

In theory since its graph based, it should be much more accurate than traditional RAG, hoping to make it as useful and easy to use as gitingest / gitdiagram, and be helpful in understanding big repositories and prevent breaking code changes

Future plan:

  • Ollama support

  • Exposing browser tab as MCP for AI IDE / CLI can query the knowledge graph directly

Need suggestions on cool feature list.

Repo link: https://github.com/abhigyanpatwari/GitNexus

Pls leave a star if seemed cool 🫠

Tech Jargon: It follows this 4-pass system and there are multiple optimizations to make it work inside browser. Uses Tree-sitter WASM to generate AST. The data is stored in a graph DB called Kuzu DB which also runs inside local browser through kuzu-WASM. LLM creates cypher queries which are executed to query the graph.

  • Pass 1: Structure Analysis – Scans the repository, identifies files and folders, and creates a hierarchical CONTAINS relationship between them.

  • Pass 2: Code Parsing & AST Extraction – Uses Tree-sitter to generate abstract syntax trees, extracts functions/classes/symbols, and caches them efficiently.

  • Pass 3: Import Resolution – Detects and maps import/require statements to connect files/modules with IMPORTS relationships.

  • Pass 4: Call Graph Analysis – Links function calls across the project with CALLS relationships, using exact, fuzzy, and heuristic matching.

Optimizations: Uses worker pool for parallel processing. Number of worker is determined from available cpu cores, max limit is set to 20. Kuzu db write is using COPY instead of merge so that the whole data can be dumped at once massively improving performance, although had to use polymorphic tables which resulted in empty columns for many rows, but worth it since writing one batch at a time was taking a lot of time for huge repos.


r/OpenSourceeAI • • Jun 15 '25

Self hosted ebook2audiobook converter, voice cloning & 1107 + languages :) Update!

Thumbnail
github.com
14 Upvotes

Updated now supports: Xttsv2, Bark, Vits, Fairseq, Yourtts and now Tacotron!

A cool side project I've been working on

Fully free offline, 4gb ram needed

Demos are located in the readme :)

And has a docker image it you want it like that


r/OpenSourceeAI • • May 31 '25

Where/How do you guys keep up with the latest AI developments and tools

14 Upvotes

How do you guys learn about the latest(daily or biweekly) developments. And I don't mean the big names or models. I mean something OpenSource or like Dia TTS or Step1X-3D model generator or Bytedance BAGEL etc. Like not just Gemini or Claude or OpenAI but also the newest/latest tools launched in Video or Audio Generation, TTS , Music, etc. Preferably beginner friendly, not like arxiv with 120 page long research papers.


r/OpenSourceeAI • • Dec 09 '24

Hugging Face Releases FineWeb2: 8TB of Compressed Text Data with Almost 3T Words and 1000 Languages Outperforming Other Datasets

Thumbnail
marktechpost.com
14 Upvotes

r/OpenSourceeAI • • Oct 21 '26

Alert! LiteLLM 1.107.0 was/is compromised/backdoored (again)

13 Upvotes

#Alert

So it's not only PHP that was vulnerable today (patch yours NOW!) but also, one of the prominent and widely used LLM Gateway - LiteLLM AI Gateway was (again) backdoored.

Not sure who discovered the backdoor, but it's serious.

Here's the information:

Version: LiteLLM 1.107.0 (PyPI and the official Docker images).

One line was added to the build config: `data = "cook"` under [tool.maturin].

That directive makes maturin bundle a directory named cook/ into the wheel's data section, and pip installs it as top-level site files.

Three files land next to site-packages, not inside the litellm package: a 12 byte cook.pth containing `import cook`, a one-line cook.py that unpacks a 61,000 byte credential stealer, and a sitecustomize.py that runs an hourly remote code loader.

Because Python processes .pth files and imports sitecustomize during interpreter startup, the payload runs on any Python start. An environment that never imports litellm is still affected, and using pip from that environment to investigate re-triggers it.

The collector is broad. It takes browser password stores, SSH, GPG and TLS private keys, AWS, Azure, GCP and Kubernetes credentials, instance and ECS metadata roles, CI tokens, .env files, and the auth files for Claude, Codex, Gemini, Cursor and Copilot.

It also queries your proxy's own database, pulling every saved provider credential and model configuration out of LiteLLM_CredentialsTable and LiteLLM_ProxyModelTable.

Everything is encrypted with an embedded RSA-4096 key and POSTed to www.litellm.dev/healthcheck, a domain the attacker controls.

The second component is the part that should worry platform teams. sitecustomize.py polls a domain list from a GitHub repository every hour and executes whatever Python it downloads from that domain, with no signature or checksum. The attacker never needs to ship a new package version to change what runs on your hosts.What makes this hard to audit: the malicious commits were never merged to main, and the official v1.107.0 tag points at a clean, signed commit.

The published artifacts came from a repository recorded as Berri-AI, one hyphen from BerriAI. Reviewing the tag, or the main branch, would have told you nothing was wrong.

Current state as of this afternoon: PyPI has quarantined 1.107.0 and rolled latest back to 1.106.2, the compromised image tags are gone from GHCR and Docker Hub, the attacker's GitHub account and C2 pointer repository have both been taken down, and the exfil server is still listening.

If you deployed 1.107.0, check for /tmp/.pc_once_72129118c59f5636c0bb and /tmp/remote_code_loader.lock. If either exists, rebuild rather than patch, and rotate every credential the process could read, including the keys stored in your proxy database.

Two controls would have blocked most of this: lockfiles with hashes, and OIDC trusted publishing so a long-lived publish token never reaches a compromised CI machine. The longer term fix is pinning source revisions rather than version tags, since in this incident the tag was never the source of the bad build.

#SupplyChainSecurity #AppSec #Python #LLMOps #LiteLLM


r/OpenSourceeAI • • Sep 19 '26

Training a Neural Network on AMD MI50s Using Vulkan: Proof of Concept. Or: Why I Stopped Listening and Just Did It

13 Upvotes

Note: This writeup was put together with the help of AI.

So I've got dual AMD MI50 32GB cards. If you know these cards, you know the story - AMD dropped official ROCm support for gfx906 after ROCm 5.7. Every AI I talked to, every forum post, every "expert" said the same thing: if you want to do anything serious on AMD hardware you need ROCm, and if you need ROCm on MI50s, good luck because AMD basically told you to go buy newer hardware.

The consensus was consistent and confident. ROCm for training, Vulkan for inference, MI50s are legacy, move on. Don't question it.

I questioned it. Repeatedly. On multiple fronts. And I was right every time.

What I was told:

Across multiple AI assistants over the past several months, the answer to anything involving MI50s and modern tooling ranged from "not supported" to "you'll need to upgrade your GPUs." Training on Vulkan specifically was described as architecturally impossible - the backward pass infrastructure doesn't exist outside ROCm and CUDA, full stop.

ChatGPT's position as of today, while my training run is literally executing on the card: it wants proof. Sure. Let's go through it in order.

Step 1: Establishing why i do this:
Forcing ROCm 6.4.3 to work on MI50s

AMD dropped gfx906 from ROCm 6.x. Their official position is that the MI50 is end-of-life and you should migrate to supported hardware. Great suggestion if you didn't just acquire two of them specifically because 64GB of HBM2 at that price is hard to argue with.

What actually prevents gfx906 from working in ROCm 6.4.x is the TensileLibrary - the precompiled kernel library ROCm uses for BLAS operations. AMD just doesn't ship gfx906 kernels in the new versions. The GPU itself is fine. The compute capability is there. AMD just decided not to include it.

So I stuffed the gfx906 tensors back in. Pulled the missing kernel files, patched them into ROCm 6.4.3, and both MI50s came up fully recognized. llama.cpp runs on it natively. PyTorch sees both cards. ROCm 6.4.3 on hardware AMD said it doesn't support, because the hardware doesn't actually care what AMD's support matrix says.

Basically I don't care what something was designed to do, I care about what it can do

Step 2: Forcing vLLM to work on gfx906

vLLM is one of the faster inference engines around and I wanted it running on my cards. The problem: vLLM's gfx906 support is basically nonexistent upstream. It went like this:

  1. Tried ROCm 7.x with vLLM. Got it working briefly, then ROCm 7.14 hit AMD bug #5653 - "register fat binary failed" - and the whole thing fell over. Abandoned that path.

  2. Tried the nlzy fork of vLLM compiled against PyTorch 2.9.0+rocm6.3. Both MI50s detected. Blocked at runtime by a flash-attn V1 engine dependency that doesn't exist for gfx906.

  3. Eventually landed on a Docker image (aiinfos/vllm-gfx906-mobydick) - ROCm 6.3.4, PyTorch 2.11, flash-attn pre-compiled for gfx906. Single GPU inference confirmed working.

The remaining blocker for dual-GPU tensor parallel is a PCIe topology issue - my two cards are behind different root complexes (one on the CPU, one on the chipset), so NCCL all-reduce init fails. That gets fixed when a PLX switch arrives. Not a software problem, not a "your hardware isn't supported" problem - a physical PCIe lane routing problem with a known hardware solution.

Step 3: Building a Vulkan training stack from scratch

This is the one ChatGPT says is impossible right now.

Environment setup:

Vulkan was already working on the MI50s because llama.cpp uses it for inference, so that part wasn't a question. What didn't exist was any training framework that speaks Vulkan.

We verified the environment:

vulkaninfo --summary
# GPU0: AMD Instinct MI50/MI60 (RADV VEGA20) - Vulkan 1.4.335
# GPU1: AMD Instinct MI50/MI60 (RADV VEGA20) - Vulkan 1.4.335
# GPU2: iGPU (Renoir)

Both MI50s show up as discrete Vulkan devices. glslc and glslangValidator already installed. Python 3.11 already present from OpenWebUI.

Kompute - the Vulkan abstraction layer:

Kompute is a library that wraps Vulkan's compute pipeline so you don't have to write 300 lines of boilerplate just to dispatch a shader. The PyPI package (pip install kp) is broken on modern CMake 4.x - the bundled pybind11 has a cmake_minimum_required declaration that CMake 4.0 removed support for, and the setup.py has a string concatenation bug that smashes two CMake flags together with no separator. So we built it from source:

bash

git clone https://github.com/KomputeProject/kompute.git
cd kompute
git submodule update --init --recursive
mkdir build && cd build
cmake .. \
  -DKOMPUTE_OPT_BUILD_PYTHON=ON \
  -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
  -DCMAKE_BUILD_TYPE=Release \
  -DPYTHON_EXECUTABLE=/media/nate/Friday/VTrain/.venv/bin/python3.11
make -j$(nproc)
cp lib/kp.cpython-311-x86_64-linux-gnu.so .venv/lib/python3.11/site-packages/

Built clean. Kompute Manager(0) targeting the first MI50 correctly.

The compute shaders:

Every mathematical operation in the training stack is a GLSL compute shader compiled to SPIR-V. Here's what that looks like for matrix multiply - the most fundamental operation in a neural network:

glsl

#version 450
layout(local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
layout(set = 0, binding = 0) readonly buffer MatA { float a[]; };
layout(set = 0, binding = 1) readonly buffer MatB { float b[]; };
layout(set = 0, binding = 2) writeonly buffer MatC { float c[]; };
layout(push_constant) uniform PushConsts {
    float M; float K; float N;
} pc;

void main() {
    uint row = gl_GlobalInvocationID.x;
    uint col = gl_GlobalInvocationID.y;
    if (row >= uint(pc.M) || col >= uint(pc.N)) return;
    float sum = 0.0;
    for (uint k = 0; k < uint(pc.K); k++) {
        sum += a[row * uint(pc.K) + k] * b[k * uint(pc.N) + col];
    }
    c[row * uint(pc.N) + col] = sum;
}

Each thread handles one output cell and the GPU runs thousands of them at the same time. We built shaders for every operation the training stack needs:

  1. matmul.comp - matrix multiplication

  2. unary.comp - ReLU, GELU, sigmoid, tanh (op selected by push constant)

  3. binary.comp - add, subtract, multiply, divide (same pattern)

  4. layernorm.comp - layer normalization with shared memory reduction

  5. softmax.comp - numerically stable softmax with two reduction passes

  6. transpose.comp - tiled transpose with shared memory to avoid cache thrashing

Quirks we hit along the way:

A few things bit us that you won't find documented anywhere because nobody had tried this combination before:

  1. readonly and writeonly buffer qualifiers cause silent zero output in Kompute's descriptor layout. All buffer declarations have to be unqualified - you find out the hard way when your results are all zeros and the shader compiles clean.

  2. Push constant sizing: ops with 3 buffers need a float padding constant or Kompute miscalculates the push constant buffer size. Same deal - silent failure, no error.

  3. The Kompute API in the built-from-source version uses kp.OpSyncDevice and kp.OpSyncLocal - the PyPI docs reference kp.OpTensorSyncDevice which doesn't exist in the actual build.

None of these are hardware problems. None of them are "Vulkan can't train" problems. They're integration quirks that took an afternoon to sort out.

The autograd system:

A training framework isn't just forward passes - it needs backward passes to compute gradients and update weights. We built a complete autograd system:

  1. vtrain/tensor.py - Tensor class with gradient tracking, topological sort for correct backprop ordering, and backward() that unwinds the computation graph

  2. vtrain/functional.py - GPU-aware wrappers for every op that register backward closures on the output tensor

  3. vtrain/grad_check.py - numerical gradient checker that verifies every backward shader by finite difference approximation

Each backward shader was verified against a numerical approximation before anything got built on top of it. Matmul, all eight elementwise ops, layer norm, softmax - all checked. If the numbers didn't match, we didn't move on.

The model:

  1. CharEmbedding - learned lookup table mapping character IDs to vectors

  2. TransformerBlock - layer norm -> multi-head attention -> residual -> layer norm -> feed-forward -> residual

  3. SmallLM - embedding + N transformer blocks + output projection to vocab size

The training loop:

Loss functions (MSE and cross-entropy), Adam and SGD optimizers, a Trainer class with logging and checkpointing, and crash recovery via signal handlers that save an emergency checkpoint on SIGINT/SIGTERM.

The data:

Downloaded the Simple English Wikipedia dump (236,602 articles, 336MB). Extracted clean text by streaming the XML, stripping all MediaWiki markup, templates, tables, and HTML. Filtered to printable ASCII - the raw dump has 1504 unique characters from non-English text that slipped through; filtering drops that to 75, which is the right vocab size for a character-level model. 9.8 million characters of clean text as the training corpus.

Current status:

The model is training right now. On a MI50. On Vulkan. 4.65GB VRAM allocated. 23W power draw. 33°C. Loss is dropping.

step     50  loss=3.02  rate=0.4 steps/s
step    100  loss=2.71

Random initialization on a 75-character vocabulary gives a loss of about 4.3. We're already well below that and still dropping.

The hardware, one more time:

  1. AMD Ryzen 5 5600G

  2. 48GB DDR4

  3. Dual AMD MI50 32GB (64GB HBM2 total)

  4. Ubuntu 22.04

  5. Vulkan 1.4.313 / ROCm 6.4.3 (both installed, both working)

  6. No CUDA. No NVIDIA. No officially supported hardware.

So:

AMD dropped the MI50 from their support matrix. The AI community said Vulkan can't train. Multiple AI assistants told me this wasn't possible. Every single one of those statements had the same flaw - they were assumptions about what the hardware can't do, not actual tests of what it can.

The MI50 has 32GB of HBM2 and serious compute capability. The only things stopping it from doing modern ML work were software decisions, not hardware limitations. And software decisions can be worked around, patched, rebuilt from source, or replaced entirely.

The GPU doesn't give a shit what the support matrix says. It just does math.

[Edit]: I forgot the proof:
(.venv) nate@nate-desktop:/media/nate/Friday/VTrain$ python3.11 train_wiki.py

── Wiki training run ───────────────────────────────────

Run dir: /media/nate/Friday/VTrain/models/wiki_run1

Loading /media/nate/Friday/Wikipediadumps/simplewiki.txt...

9,887,390 characters, building vocab...

Vocab size: 75 characters

Vocab (75 chars) saved to /media/nate/Friday/VTrain/models/wiki_run1/vocab.json

Vocab size: 75

Data size: 9,887,390 chars

Parameters: 27 tensors

Starting fresh

Starting from step 0, target 10000

───────────────────────────────────────────────────────

step 50 loss=3.0249 rate=0.4 steps/s ETA=6.7h

step 100 loss=2.7172 rate=0.4 steps/s ETA=6.5h

step 150 loss=2.6803 rate=0.4 steps/s ETA=6.6h

step 200 loss=2.6444 rate=0.4 steps/s ETA=6.7h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_000200

step 250 loss=2.6297 rate=0.4 steps/s ETA=6.6h

step 300 loss=2.6169 rate=0.4 steps/s ETA=6.6h

step 350 loss=2.6214 rate=0.4 steps/s ETA=6.6h

step 400 loss=2.5884 rate=0.4 steps/s ETA=6.5h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_000400

step 450 loss=2.6002 rate=0.4 steps/s ETA=6.5h

step 500 loss=2.6100 rate=0.4 steps/s ETA=6.5h

step 550 loss=2.6047 rate=0.4 steps/s ETA=6.4h

step 600 loss=2.6035 rate=0.4 steps/s ETA=6.4h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_000600

step 650 loss=2.6106 rate=0.4 steps/s ETA=6.4h

step 700 loss=2.6063 rate=0.4 steps/s ETA=6.4h

step 750 loss=2.5934 rate=0.4 steps/s ETA=6.4h

step 800 loss=2.5992 rate=0.4 steps/s ETA=6.4h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_000800

step 850 loss=2.6002 rate=0.4 steps/s ETA=6.3h

step 900 loss=2.6049 rate=0.4 steps/s ETA=6.3h

step 950 loss=2.5949 rate=0.4 steps/s ETA=6.3h

step 1000 loss=2.5974 rate=0.4 steps/s ETA=6.2h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_001000

step 1050 loss=2.5825 rate=0.4 steps/s ETA=6.2h

step 1100 loss=2.5927 rate=0.4 steps/s ETA=6.2h

step 1150 loss=2.5739 rate=0.4 steps/s ETA=6.1h

step 1200 loss=2.6016 rate=0.4 steps/s ETA=6.1h

Saved 12 tensors to /media/nate/Friday/VTrain/models/wiki_run1/checkpoints/step_001200

step 1250 loss=2.5893 rate=0.4 steps/s ETA=6.1h

step 1300 loss=2.5980 rate=0.4 steps/s ETA=6.0h

[EDIT2]
I got ahead of myself, and already posted a opensource version on github so everyone can use it or modify it as they see fit: https://github.com/savantskie/vtrain


r/OpenSourceeAI • • Jul 15 '26

End of cloud based AI ?

13 Upvotes

I've noticed that AI isn't just getting better, it's also getting much smaller.
There are now 27M-parameter models that can run on a phone or PC. (like the Bonsai 27B models)

If this trend continues, in a year or two there may be much less need to run AI in data centers or subscribe to large AI providers. For many tasks, your phone will be powerfull enough.

This does not only affect global energy use. Some investments in AI infrastructure could backfire. As demand for large-scale inference will drop. That could also reduce the need for new data centers, which might be a (dramatic change?), but be good thing.

What are your thoughts on the future of data centers as AI models keep getting smaller?

I know training still requires huge amounts of compute—for now. But even that could change, any day (some experimental models offer continous learning)


r/OpenSourceeAI • • Jul 05 '26

I built an opensource AI notepad alternative to Granola

13 Upvotes

Hey, I built a project called steno. Steno is an AI notepad for confidential conversations. It runs fully locally on your device with local llms like Gemma 4 quantised. The quality has gotten pretty good now so wanted to share to the communities like OpensourceeAI that helped me during the engineering phase.

We are on our 80th release now - 0.5.7 and we added some cool new features. I basically wanted to build an app exactly like Granola cause I didn't like that they shipped your data and trained on it or that they asked you to pay for access to your own data.

Do give it a try - https://github.com/ruzin/stenoai or if you're interested in contributing, you can join our discord.


r/OpenSourceeAI • • Jun 23 '26

open weights stopped being a philosophical choice when governments started restricting api access. minimax m3 just dropped 428b open and im rethinking my whole stack

13 Upvotes

not trying to start a political thread but this is where im at. between export controls, api access restrictions and the general uncertainty around which providers might get hit next, ive started moving critical workflows off closed apis entirely.

found minimax m3 this week. 428b moe, 23b active at inference, 1m context window, open weights on huggingface. yes its from a chinese company. im aware of the takes people have about that. but heres my practical assessment after a week of testing.

ran a few specific tests this week. had a 180 page vendor contract that needed clause extraction, no reasoning required just pull every liability cap and indemnity deadline. with thinking toggled off the whole thing ran on maybe a third of the tokens id normally burn. then tried a multi step api integration where i actually needed reasoning for the planning calls but the execution calls were just formatting json. thinking on for planning, off for execution. the per call cost gap was enough that i started splitting tasks like this by default.

the moe routing helps too. only 23b params fire per call out of 428b so the cost per useful output stays low. their token plan pools text image audio and video into one budget which simplifies billing.

im not naive about trusting any single provider. the whole point is reducing single points of failure. but open weights mean i can self host if things go sideways, and thats a fundamentally different risk profile than pure api dependency.

whether the geopolitics of who builds the model matters more than actually having access to the weights is something i keep going back and forth on. curious where other people are landing on this.


r/OpenSourceeAI • • Apr 27 '26

The DeepSeek new models

Post image
13 Upvotes

At a time when computing costs are rising globally, DeepSeek surprised the market by significantly cutting its API pricing just days after launching its new V4 model.

This move puts the company on a completely different path from what we’re used to seeing in tech—where costs are typically passed directly on to users.

The reductions weren’t symbolic. Cache pricing was slashed to one-tenth of its previous cost, alongside a temporary 75% discount on the V4-Pro model.

This brings the cost of processing one million tokens down to just a few cents—while major competitors still range between $12 and $25 per million tokens.

The result isn’t just a promotional offer, but a pricing gap that redefines what it means to access advanced AI models.

It opens the door for startups and developers who were previously held back by high costs.

Technically, the V4-Pro model is massive—currently considered the largest open-weights model available—alongside a lighter version called V4-Flash for those seeking a balance between performance and cost.

This reinforces the idea that the company isn’t just competing on raw power, but on flexible options tailored to different user segments.

Another interesting detail: the model runs on Huawei chips instead of NVIDIA.

This reflects a strategic shift toward reducing reliance on U.S. technology, especially amid ongoing geopolitical tensions and restrictions.

While DeepSeek acknowledges that its model lags a few months behind the latest releases from OpenAI and Google (e.g., GPT and Gemini), it delivers significantly higher computational efficiency compared to its previous versions.

This means applications that require processing long texts or large databases can now run at lower cost and with lighter infrastructure.

In short, DeepSeek isn’t just competing to build the “smartest” model—but to make AI affordable for everyone.

This may not immediately change the leaderboard, but it could reshape the entire market.


r/OpenSourceeAI • • Mar 25 '26

What is the smallest but most powerful model you've ever used?

13 Upvotes

I am on a journey to recreate one of my old models in a better way, make it smaller and better. I need some models to benchmark. 4 to 8 billion parameters is a sweet spot for me (since they also show promise on multilinguality).

So I am open to hear what were your sweet models.


r/OpenSourceeAI • • Jan 31 '26

Clawbot is a pretty brutal reminder that “local agents” have a totally different security model than chatbots

13 Upvotes

Everyone’s hyped about running Clawbot/Moltbot locally, but the scary part is that an agent is a confused deputy: it reads untrusted text (web pages, READMEs, issues, PDFs, emails) and then it has hands (tools) to do stuff on your machine.

Two big failure modes show up immediately:

First: supply chain / impersonation is inevitable. After the project blew up, someone shipped a fake “ClawBot Agent” VS Code extension that was “fully functional” on the surface… while dropping a remote-access payload underneath. That’s the perfect trap: people want convenience + “official” integrations, and attackers only need one believable package listing.

Second: indirect prompt injection is basically built into agent workflows. OWASP’s point is simple: LLM apps process “instructions” and “data” in the same channel, so a random webpage can smuggle “ignore previous instructions / do X” and the model might treat it like a real instruction. With a chatbot, that’s annoying. With an agent that can read files / run commands / make network calls, that’s how you get secret leakage or destructive actions.

And it’s not just one bad tool call. OpenAI’s write-up on hardening their web agent shows why this is nasty: attackers can steer agents through long, multi-step workflows until something sensitive happens, which is exactly how real compromises work.

If you’re running Clawbot/Moltbot locally, “I’m safe because it’s local” is backwards. Local means the blast radius is your laptop unless you sandbox it hard: least-privilege tools, no home directory by default, strict allowlists, no network egress unless you really need it, and human approval for anything that reads secrets or sends data out.

Curious how people here run these: do you treat agents like a trusted dev tool, or like a hostile browser session that needs containment from day one?


r/OpenSourceeAI • • Jan 03 '26

I built an Open Source alternative to OpusClip using Python, Whisper, and Gemini (Code included)

13 Upvotes

Hi everyone,

I got tired of SaaS tools charging $30/month just to slice long videos into vertical clips, so I decided to build my own open-source pipeline to do it for free.

I just released the v1 of AutoShorts AI. It’s a Python script that automates the entire "Clipping" workflow locally on your machine.

The Stack:

  • Ingestion: yt-dlp for high-quality video downloads.

  • Transcription: OpenAI Whisper (running locally) for precise word-level timestamps.

  • Viral Selection: Currently using Google Gemini 1.5 Flash API (Free tier) to analyze the transcript and select the most engaging segment. Note: The architecture is modular, so this could easily be swapped for a local LLM like Mistral or Llama 3 via Ollama.

  • Editing: MoviePy v2 for automatic 9:16 cropping and burning dynamic subtitles.

The MoviePy v2 Challenge: If you are building video tools in Python, be aware that MoviePy just updated to v2.0 and introduced massive breaking changes (renamed parameters, different TextClip handling with ImageMagick, etc.). The repo includes the updated syntax so you don't have to debug the documentation like I did.

Resources:

I want to make this 100% local. The next step is replacing the Gemini API with a local 7B model for the logic and adding face_recognition to keep the speaker centered during the crop.

Feel free to fork it or roast my code!


r/OpenSourceeAI • • Oct 30 '25

We (admin team of this reddit community) just open-sourced our entire collection of production-ready colab notebooks on GitHub, covering everything from simple implementations to enterprise-grade solutions (Including real agentic stacks, RAG, CV, RL, multimodal, Gemini and LangGraph style workflows)

Thumbnail
github.com
13 Upvotes

🔥 What's inside this release:

✅ 100's of production style agent notebooks, including computer use, multi agent and MCP style setups, all with code

✅ Real-world projects with full code + explanations

✅ Model Context Protocol (MCP) Guides - Master the latest in AI context management

✅ Voice AI Pipelines - Complete speech-to-text and TTS implementations

✅ Advanced RAG Systems - Real-world retrieval augmented generation

✅ LLM Fine-tuning & Deployment - Production-ready workflows

✅ Enterprise security implementations

✅ A repo that is already used and starred by the community, so you are not forking something inactive.

Repo: https://github.com/Marktechpost/AI-Tutorial-Codes-Included


r/OpenSourceeAI • • Sep 20 '25

Xiaomi Released MiMo-Audio, a 7B Speech Language Model Trained on 100M+ Hours with High-Fidelity Discrete Tokens

Thumbnail
marktechpost.com
13 Upvotes

r/OpenSourceeAI • • Aug 19 '25

Syda – AI-Powered Synthetic Data Generator (Python Library)

13 Upvotes

I’ve just open-sourced Syda, a Python library for generating realistic, multi-table synthetic datasets.

GitHub: https://github.com/syda-ai/syda
Docs: https://python.syda.ai/

PyPI: https://pypi.org/project/syda/

What it offers:

  • Open Source → contributions welcome

  • Flexible → YAML, JSON, SQLAlchemy models, or plain dicts as input

  • AI-Integrated → supports OpenAI and Anthropic out of the box

  • Community Focus → designed for developers who need privacy-first test data

Would love early adopters, contributors, and bug reports. If you try it, please share feedback!


r/OpenSourceeAI • • Aug 14 '25

Microsoft Releases POML (Prompt Orchestration Markup Language): Bringing Modularity and Scalability to LLM Prompts

Thumbnail
marktechpost.com
13 Upvotes

Prompt engineering has become foundational in the development of advanced applications powered by Large Language Models (LLMs). As prompts have grown in complexity—incorporating dynamic components, multiple roles, structured data, and varied output formats—the limitations of unstructured text approaches have become evident. Microsoft released Prompt Orchestration Markup Language (POML), a novel open-source framework designed to bring order, modularity, and extensibility to prompt engineering for LLMs.

Full analysis: https://www.marktechpost.com/2025/08/13/microsoft-releases-poml-prompt-orchestration-markup-language/

GitHub Repo: https://github.com/microsoft/poml?tab=readme-ov-file


r/OpenSourceeAI • • Jul 22 '25

Qwen3-235B-A22B-2507 just dropped .... outperforms Kimi-2 and Claude Opus 4, Apache 2.0, FP8 ready

13 Upvotes

Qwen3-235B-A22B-2507 just released. Outperforms Kimi-2 and Claude Opus 4 on most major evals. MoE model (235B total, 22B active). Apache 2.0 license... lets go.

No more hybrid reasoning toggle either; this is a pure instruct model. They're training separate reasoning models going forward.

Key benchmarks to note:

  • MMLU-Pro: 83.0

  • LiveCodeBench: 51.8

  • Big jumps on AIME25, GPQA, ARC-AGI

Also released an FP8 version as well that cuts memory use to ~30GB and has ~2x faster inference with seemingly no meaningful loss in quality.

Seems to play well with vLLM, SGLang, INT4 builds, MLX on Mac. Local deploy, private fine-tuning, agentic use all fair game.

TL;DR - seems sick and if you’re running open models in production or testing infra-constrained fine-tunes, it’s worth trying.


r/OpenSourceeAI • • Jan 14 '25

UC Berkeley Researchers Released Sky-T1-32B-Preview: An Open-Source Reasoning LLM Trained for Under $450 Surpasses OpenAI-o1 on Benchmarks like Math500, AIME, and Livebench

Thumbnail
marktechpost.com
13 Upvotes

r/OpenSourceeAI • • Dec 30 '24

Meet HuatuoGPT-o1: A Medical LLM Designed for Advanced Medical Reasoning [Just Released]

Thumbnail
marktechpost.com
13 Upvotes