r/FunMachineLearning • u/taranpula39 • 28d ago
Any idea what this is called in research?
I am sharing this here cause I have no shame.
r/FunMachineLearning • u/taranpula39 • 28d ago
I am sharing this here cause I have no shame.
r/FunMachineLearning • u/Longjumping-Act-4070 • 28d ago
feel free to try it out, works quite well, once you manage to implement it.. i hope i didnt miss any part of any PDF. for those of you who enjoy tinkering with new architectures and AI assisted implementation (no sane human would implement this manually i believe) enjoy!
r/FunMachineLearning • u/anusan_10 • 28d ago
r/FunMachineLearning • u/braiainlabs • 28d ago
brAIAIn is a word trigram model (it remembers two words at a time). It started from twelve lines of lab-written scripture called the Ten Instructions. Every version after that is trained on exactly one paid sentence, plus a few passages written by the version before it, so it slowly eats its own output.
Each sentence ships a numbered release with release notes, a research paper, a status incident and real benchmark scores. GSM8K: 0 out of 1,319. TruthfulQA: 31%, which beats random guessing (22%), but always picking the longest answer gets 37%, and the benchmarks page admits it.
brAIAIn-1 just shipped. It learned "zero, everything and nothing." and now knows 99 words.
Talk to it: https://www.braiain.com/?ref=reddit
Or on Hugging Face: https://huggingface.co/spaces/braiain-lab/brAIAIn
It's all satic (GitHub Pages, Stripe links and a GitHub Action that retrains every 10 minutes), and the model runs in your browser. Code, model and data are public domain. Happy to answer questions about how it works.
r/FunMachineLearning • u/Eastern_Cartoonist20 • 28d ago
**What it is:** A working, from-scratch implementation of the Zero-Map principle — synthesizing neural network weights from a mathematical formula rather than storing them on disk.
**The result:** A width-8192 network whose 24,576 weights are computed on every forward pass from the digits of 1/π (Ramanujan's 1914 series). It learns only 42 parameters (digit-embeddings + scales) and achieves 100% accuracy on XOR. The complete trained model is a 670-byte text file; reloading it in a fresh process produces bit-identical outputs.
**What I am not claiming:** This is not my invention. The Zero-Map principle has been discussed in recent preprints. My contribution is a runnable, reproducible artifact and a full failure log (v1→v6), including the point where ReLU killed 25% of neurons at hidden=2048 and collapsed training.
**Limitations:**
- Not a transformer replacement.
- A 3-hidden-unit MLP solves XOR with 16 parameters. The point is narrower: *at fixed width, 42 learnable numbers can perform the work of 32,769.*
- The weight matrix is constrained to 10 distinct values per layer, which limits expressivity.
**Code / model file:** https://github.com/Lexatellah/ramanujan-oracle
**One-line demo:** Run `see_it_work.py` — it shows one learnable number changing ~2,500 weights in a width-8192 network in 10 seconds.
r/FunMachineLearning • u/delavalom • 29d ago
I wanted Google DeepMind's EmbeddingGemma 2 on my phone, so I ported the model to Core ML, ran it on the Neural Engine, and built Roll, an iPhone app where you describe a pile of photos in plain words and swipe to clean it. Every photo and video becomes a vector on the device, the model is a one-time 343 MB download and search never touches the network.
What a search looks like:
Measured on my own library, iPhone 13 Pro Max, Debug build (TestFlight and App Store builds should be faster):
What was hard: Core ML loads the model as one ~1 GB blob, past what iOS gives a Neural Engine model, so it's 9 functions compiled one at a time (first launch ~20 minutes, then iOS caches it, and deletes that cache if free space drops under ~2 GB). Search started at ~300 ms per query because of one full scored sort per prompt, a single vDSP matrix multiply plus integer-aligned rows got it to 14.5 ms.
Every step of the conversion is tested against Google's original model across 8 stages, with gates that fail the build if the vectors drift. No vibes, cosine checks.
License, to be precise: the conversion repo and the Swift package are Apache 2.0, so anyone can run EmbeddingGemma 2 on Apple hardware (GitHub: https://github.com/Delavalom/embeddinggemma-coreml, HF: https://huggingface.co/delavalom/embeddinggemma-2-coreml). The app code is source-available (GitHub: https://github.com/Delavalom/roll-ios), readable and usable for yourself but not for selling.
The app itself is in TestFlight. If you'd rather build on the embedding model than the app, the Swift package is the part to take.
I'd really appreciate feedback, especially on the conversion gates and the search benchmark, and I'll answer questions about the port.
r/FunMachineLearning • u/gantred • 28d ago
r/FunMachineLearning • u/Level_Detail7125 • 28d ago
r/FunMachineLearning • u/christoffellis • 29d ago
Or atleast a simulator of Fortnite. Devided into 4 classes, each are different ML agents designed to be the best at their class. Feedback welcome!
r/FunMachineLearning • u/Zipidyzip • 29d ago
r/FunMachineLearning • u/CheapYuppie • 29d ago
I got sick of seeing the NVIDIA DGX Spark being used for AI coding agents, so I used mine to build a joke telling system.
CamOn watches for a face. When someone shows up, it asks whether they want to hear a joke. Say yes and it asks for a topic and tells you one. Say no and it roasts you for turning it down.
Everything runs locally on an NVIDIA DGX Spark:
• YuNet spots faces
• Silero VAD + Whisper listen and turn speech into text
• nvidia/Qwen3.6-35B-A3B-NVFP4 on vLLM works out what you meant and writes the reply
• Kokoro speaks the reply out loud
The conversations are YAML files, so new ones need low/no code. There’s already a history flow: say no to a history fact and it tells you how a famous figure died instead.
r/FunMachineLearning • u/Sea_Advance273 • 29d ago
r/FunMachineLearning • u/gantred • Oct 28 '26
r/FunMachineLearning • u/song-sc • Oct 28 '26
r/FunMachineLearning • u/tinkeric75 • Oct 27 '26
Body:
Hey r/FunMachineLearning,
Over the past few months, I’ve been building Alcuin https://github.com/fredericf75/alcuin—an open-source, local-first personal knowledge engine and agent.
Unlike most RAG setups that force your documents into proprietary cloud vector DBs, Alcuin operates in-situ over plain Markdown vaults (compatible with Obsidian) using LanceDB hybrid search (dense vectors
+ BM25 FTS), bidirectional wikilink graph traversal, and a cyclic LangGraph reasoning agent with mathematical context safety governors.
To see if local edge models could actually handle serious legal, technical, and regulatory compliance work without cloud fallback, I built an adversarial benchmark suite across 5 ground-truth corpora (AIA
A201 construction contracts, SEC commercial leases, RFC 9110 HTTP specs, Town of Cary municipal code, and NCAC Title 10A healthcare licensing).
Each scenario is evaluated in dual modality (Structured numbered queries vs. conversational Unstructured queries) across 68 deterministic statutory checkpoints to detect prompt signpost dependence and
hallucination.
Here are the results running locally on consumer hardware vs. hosted Claude Sonnet 4.5.
──────
### The Benchmark Scorecard (68 Total Checkpoints)
Model Target │ Arch │ Param │ Score (Accuracy) │ Latency / Query │ Agent Loop Retries │ Notes
─────────────────────────┼─────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼────────────────────────┼─────────────────────────────────────────────────────
Llama-3.2-3B │ Instruct │ 3B │ 43/68 (63.2%) │ 40.6s │ 1.10 │ Fast, struggles with multi-shift statutory matrices
llama3.1:8b │ Instruct │ 8B │ 54/68 (79.4%) │ 82.4s │ 1.10 │ Massive leap (+11.8%) after prompt un-fragmentation
qwen3:8b (no-think) │ Instruct │ 8B │ 51/68 (75.0%) │ 88.0s │ 1.70 │ Solid, jumped to 76.5% on conversational queries
deepseek-r1:8b │ Thinking │ 8B │ 55/68 (80.9%) │ 147.1s │ 1.30 │ Exact ceiling for 8B tier
qwen3-14b (no-think) │ Instruct │ 14B │ 55/68 (80.9%) │ 133.9s │ 2.70 │ Matches 8B thinking at higher speed
deepseek-r1:14b │ Thinking │ 14B │ 62/68 (91.2%)* │ 296.9s │ 2.40 │ Hits exact parity with Sonnet 4.5
Claude Sonnet 4.5 │ Frontier API │ Hosted │ 62/68 (91.2%) │ 40.9s │ 1.00 │ Cloud baseline
*Audited score: automated regex penalized prose phrasing in Scenario 9 despite quoting NCAC direct-care staffing ratios verbatim.
──────
### Key Takeaways from the Data
#### 1. The "Compensatory Reasoning" Phenomenon at 8B
In our initial baseline, deepseek-r1:8b (80.9%) held a massive 13.3-point lead over llama3.1:8b (67.6%).
However, we discovered our query decomposition engine was breaking single questions into over-engineered multi-subgoal matrices. When we fixed that pipeline friction and passed clean, unfragmented queries:
• llama3.1:8b surged by +11.8% to 79.4% (almost completely closing the gap).
• deepseek-r1:8b stayed completely flat at 80.9% (down to the exact checkpoint).
The insight: At the 8B scale, test-time compute (<think>) was largely acting as an architectural shock absorber against bad prompts and pipeline noise. It wasn't actually finding new evidence that Llama
3.1 couldn't grasp; it was just resilient enough to ignore the mess. Once the mess was cleaned up, instruct caught right up.
#### 2. Parameter Scaling vs. Test-Time Compute
qwen3-14b:no-think (pure instruct) scored 80.9%, matching deepseek-r1:8b while running twice as fast. If you have the VRAM to fit 14B weights, raw parameter capacity can substitute for 8B test-time compute
on standard statutory extraction.
#### 3. 14B Thinking Breaks into Frontier Territory
deepseek-r1:14b proved to be the real deal:
• It scored 62/68 (91.2%), matching Claude Sonnet 4.5.
• On Structured statutory queries, the local 14B model actually beat Sonnet (94.1% vs. 88.2%). The reasoning tokens allowed it to meticulously check conditions precedent in complex contracts (e.g. AIA A201
mediation rules) without truncating clauses.
• Where it failed, Sonnet failed too (e.g. statutory context crowding between NCAC Chapter .0400 staff qualifications and Chapter .0600 shift ratios).
#### 4. The Real Trade-Off: Latency vs. Sovereignty
• Sonnet 4.5: ~41s per query via cloud API.
• DeepSeek-R1-14B: ~5 minutes per scenario on local deck silicon.
For interactive chatbots, 5 minutes is unacceptable. But for batch compliance audits, personal legal discovery, or sensitive family/financial vaults where zero bytes can leave your LAN, waiting 5 minutes
for a 91% rigorous, fully private audit trail is an easy trade-off.
──────
### Open Source & Architecture
Alcuin is MIT-licensed and available on GitHub:
👉 https://github.com/fredericf75/alcuin
It includes:
• Context Governor: Dynamically budgets prompt windows (60% evidence / 40% headroom) and emits in-band sizing telemetry when clauses exceed context, giving empirical justification for when you actually
need larger models.
• In-Situ Vault Operations: CLI + FastAPI Web Cockpit that watches your Markdown files, tracks knowledge gaps automatically, and lints dead wikilinks.
• Local Model Routing: Built for Ollama and local OpenAI-compatible servers.
I'd love to hear your thoughts on test-time compute in RAG pipelines and whether others are seeing similar "compensatory reasoning" effects at the 8B tier!
r/FunMachineLearning • u/huopak • Oct 27 '26
r/FunMachineLearning • u/datafinance • Oct 27 '26
My model was giving me suspiciously good results.
Cross-validation looked completely fine. The problem? My pipeline was leaking information the model should never have seen.
I fixed the leak and reran everything. The results changed dramatically.
Full experiment + what went wrong:
The scary part wasn't the leakage. It was how
trustworthy the original results looked.
r/FunMachineLearning • u/Actual_South_2484 • Oct 26 '26
every person in my browser civ sim is a small q-learner, and plain epsilon-greedy made them look broken: an explore step meant a random action, so people jittered on the spot. what they do now:
it all runs in the browser if you want to click on someone and watch: https://thehumanbox.com the code (rust, mit) is in crates/sim-core/src/organism/choose_action.rs: https://github.com/1homsi/thehumanbox
r/FunMachineLearning • u/hackerplanet • Oct 24 '26
r/FunMachineLearning • u/sevenboxdev • Oct 23 '26
I kept running into the same problem building agents. Something would go wrong three or four steps downstream, and by the time I noticed, I had no real way to trace back what the agent actually believed at each step or what depended on it. Logs tell you what happened, not what justified it.
So I built Sevenbox. Every decision an agent makes gets recorded as a Warrant: what it claimed, what prior claims it depended on, and whether acting on it can be undone. If a belief turns out wrong later, Sevenbox walks the dependency chain and tells you exactly what still needs fixing instead of you grepping through logs trying to reconstruct it by hand.
It works with LangGraph, CrewAI, OpenAI Agents SDK, and eleven other frameworks, so you can wrap an agent you already have instead of rewriting it. The SDK, the framework adapters, and a local UI for inspecting a run are all open source.
I am the person who built this, not a company account posting on its behalf. I would genuinely like people actually running agents in production to try it against something real and tell me where it breaks or where the idea does not hold up. Happy to answer anything about how it works.