r/FunMachineLearning • • 25d ago

Updated: Discover AI, an app with 51 hands-on labs for learning how AI works

Thumbnail gallery
1 Upvotes

r/FunMachineLearning • • 25d ago

CamOn - A Joke Telling System for NVIDIA DGX Spark

3 Upvotes

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 • • 25d ago

The Math Behind LLMs: How GPTs Learn and Generate Text

Thumbnail
youtube.com
1 Upvotes

r/FunMachineLearning • • 26d ago

Deepseek's New AI Has A Secret - Two Minute Papers

Thumbnail
youtube.com
1 Upvotes

r/FunMachineLearning • • 26d ago

A Billion-Scale Retrieval System for Text-to-Image Training Data

1 Upvotes

r/FunMachineLearning • • 27d ago

I built a local-first agent (Alcuin) and benchmarked 3B–14B models against Claude Sonnet 4.5 across 5 complex domains. DeepSeek-R1-14B hit 91.2% parity locally. Here is what I learned about reasoning vs. instruct

1 Upvotes

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 • • 27d ago

Jacobian Lens: Can we read the mind of an Al?

Thumbnail
youtu.be
1 Upvotes

r/FunMachineLearning • • 27d ago

My ML pipeline was cheating. Cross-validation told me everything was fine.

1 Upvotes

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:

https://towardsdatascience.com/my-machine-learning-pipeline-cheated-and-cross-validation-never-noticed/

The scary part wasn't the leakage. It was how

trustworthy the original results looked.


r/FunMachineLearning • • 28d ago

New To AI

Thumbnail reddit.com
1 Upvotes

r/FunMachineLearning • • 28d ago

i tuned the exploration in my civ sim so curious people wander like explorers instead of twitching at random

1 Upvotes

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:

  • each person has their own exploration rate: the base epsilon times (0.5 + curiosity), shrinking with age, kept between 0.02 and 0.80. curious kids explore a lot, incurious old people hardly at all
  • on an explore step, 10% of the time they look for a trail within 5 tiles and follow it
  • otherwise, if they were already moving, 75% of the time they keep going 5 tiles further the same way, so exploring looks like a walk
  • when they do try a random action, it can't be work that's impossible where they stand (no fishing without water nearby, no mining without rock beside them), and it's never work that hurt them recently
  • the thought bubble says what they're up to, "scouting ahead" or "following a scent" for the curious ones, "listening to the dark" at night

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 • • Oct 24 '26

AWS Decider vs ML / Naive Bayes

Thumbnail
github.com
1 Upvotes

r/FunMachineLearning • • Oct 23 '26

Context = AI Memory

1 Upvotes

r/FunMachineLearning • • Oct 23 '26

I built a way to track why an AI agent made a decision, so you can find what breaks when it turns out to be wrong

Post image
1 Upvotes

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.


r/FunMachineLearning • • Oct 22 '26

What if an artificial intelligence could learn by observing the world?

Thumbnail reddit.com
1 Upvotes

r/FunMachineLearning • • Oct 21 '26

Frozen Qwen2.5-72B: Persistent Neural Memory via CUT3, Cross-Document Synthesis into a Physical MASTER Cartridge, and Verified 80-Layer KV Reconstruction

Thumbnail
gallery
1 Upvotes

AKBASCORE SILICON HIPPOCAMPUS — TEST730

Full technical publication, source code, GPU logs, SHA-256 verification records, and 13 scientific figures:

https://doi.org/10.5281/zenodo.23497732

I am an independent researcher investigating persistent external neural memory for frozen large language models.

This experiment uses Qwen2.5-72B-Instruct, quantized to NF4 and executed on an NVIDIA A100 80GB GPU. The pretrained weights remain completely frozen.

The central question is whether part of a transformer's internal numerical state can be captured, stored as a physical file, and restored during a later inference session without repeatedly supplying the original source document as text.

The experiment demonstrates a working implementation of this mechanism, followed by a cross-document synthesis workflow involving three real academic publications from 2026.

A HISTORICAL PERSPECTIVE: FROM ADAPTIVE WEIGHTS TO PERSISTENT NEURAL STATES

1991 — Schmidhuber's early work on fast weights and learning-to-learn explored adaptive internal mechanisms through which neural systems could modify their effective computational parameters and retain information.

2017 — The Transformer introduced self-attention as a powerful mechanism for processing relationships between tokens. Standard full self-attention has quadratic sequence-length complexity, while modern autoregressive inference commonly maintains context-dependent key/value states.

2026 — AKBASCORE Silicon Hippocampus / CUT3 investigates another persistence mechanism: keeping the pretrained model weights frozen while extracting the hidden states at layer 3 (H3) and the K/V tensors from layers 0–3, storing these numerical states as SHA-256-sealed physical cartridges on SSD, and reconstructing the remaining transformer layers when the cartridges are reloaded.

The architectural distinction is important.

Rather than modifying pretrained weights to incorporate new information, CUT3 persists a portion of the model's internal numerical state outside the GPU.

This is not a replacement for Transformers, fast-weight systems, or conventional retrieval. It is an experimentally implemented approach to persistent neural memory within an existing frozen Transformer.

HOW THE PHYSICAL MEMORY WORKS

  1. WRITE

A source document passes through the frozen transformer.

The CUT3 engine captures the hidden states at layer 3 (H3), together with the attention key/value tensors from layers 0–3.

2. STORE

These numerical states are serialized into a physical PyTorch memory cartridge (.pt) on SSD.

The cartridge is protected by SHA-256 integrity verification.

3. RELOAD

When the stored memory is needed, its tensors are loaded from disk.

The saved H3 representation is injected directly at the corresponding transformer boundary.

4. REBUILD

The frozen model recomputes layers 4–79, reconstructing the complete operational 80-layer K/V memory.

The original document does not need to be pasted into the question prompt again.

5. ANSWER

The model generates its response using the restored internal memory.

This mechanism does not require fine-tuning, LoRA adaptation, or modification of the pretrained model weights.

THE THREE-PUBLICATION EXPERIMENT

TEST730 extends the physical memory mechanism beyond a single document.

Three real academic publications from 2026 were retrieved from Europe PMC. Their source metadata, licensing, excerpts, and integrity records were preserved.

P01 — PMC13672588

Generative AI in creative education: baseline-linked evidence on learning processes, artistic performance, and authorship.

P02 — PMC13521781

The critical-thinking paradox in generative AI-integrated learning: distinguishing efficiency from cognitive depth.

P03 — PMC13043820

Catalysts of Change: Using AI to Lower the Activation Energy for Developing Gamified Learning Experiences in Health Profession Education.

Each publication was independently processed into a physical neural memory cartridge.

The frozen 72B model then read each cartridge separately and generated a reflection on the respective publication.

The three model-generated reflections were subsequently supplied to the same frozen model for cross-document synthesis.

The model produced a new textual synthesis identifying common themes, differences, limitations, and possible implications across the three publications.

That synthesis, together with the reflections, was encoded into a fourth physical memory cartridge named MASTER.

An important technical distinction: the source cartridges were not directly fused as tensors. The synthesis was generated through the model's textual reasoning process and then converted into a new numerical memory cartridge using the same CUT3 mechanism.

MASTER CARTRIDGE: PHYSICAL MEASUREMENTS

Model: Qwen2.5-72B-Instruct

GPU: NVIDIA A100 80GB

Quantization: NF4

Transformer layers: 80

Hidden dimension: 8192

Attention heads: 64

K/V heads: 8

Memory boundary: CUT3

Stored representation: H3 + layers 0–3 K/V

Reconstructed representation: layers 4–79 K/V

MASTER body: 2,848 tokens

Physical MASTER cartridge: approximately 94.3 MB

Reconstructed 80-layer operational K/V memory: approximately 943.4 MB

The stored cartridge represents approximately 10% of the full operational K/V memory size for the corresponding sequence.

This is a reduction in stored numerical state relative to the full 80-layer K/V cache, not evidence of a tenfold reduction in the information content of the original documents.

The upper-layer states are recomputed by the frozen transformer when the cartridge is mounted.

PERSISTENCE AND VERIFICATION

The original TEST730 execution generated six academic responses using the MASTER cartridge independently of the three original source cartridges.

The question panel included:

H1 — Main conclusions and disagreements across the three publications.

H2 — Empirical evidence, limitations, and uncertainties.

H3 — An independent cross-document conclusion with source references.

A1 — Construction of a causal model reconciling apparently conflicting findings.

A2 — Design of a preregistered randomized experiment capable of falsifying that model.

A3 — Identification of an unresolved contradiction, competing explanations, and a discriminating test.

The subsequent A100 verification session reproduced all four physical cartridges with byte-identical SHA-256 file hashes.

It also verified exact 80/80 layer parity and reproduced two sealed answers byte-for-byte.

Additional comparisons examined responses with and without MASTER memory.

The recorded experiment therefore demonstrates a complete physical workflow:

Source document → frozen transformer → numerical state capture → SSD cartridge → verified reload → upper-layer reconstruction → model response.

It also demonstrates a text-mediated synthesis workflow:

Three independent source cartridges → three model-generated reflections → cross-document synthesis → new MASTER cartridge → independent question answering.

WHAT THE RESULTS ESTABLISH — AND WHAT THEY DO NOT

The verified contribution is the implementation and reproducibility of persistent numerical memory in a frozen 72B Transformer, including physical cartridge storage, integrity verification, restoration, and operational K/V reconstruction.

The experiment also records model-generated cross-document synthesis and six academic responses produced from the MASTER cartridge.

However, generating a causal hypothesis or proposing a scientific experiment does not independently establish that the hypothesis is novel, scientifically correct, or superior to what the base model could produce using conventional text context.

The six academic responses were recorded, but their scientific correctness was not independently graded in TEST730.

Similarly, byte-identical cartridge reproduction and layer parity verify technical integrity; they do not, by themselves, establish an advantage over conventional long-context inference, prefix caching, or retrieval-augmented generation.

These are separate evaluation questions.

WHY I AM SHARING THIS

I am interested in the architectural question of where persistent knowledge should reside in a frozen language model.

Does it always need to be represented as text in an external retrieval system?

Does incorporating new information necessarily require changing model weights?

Or can selected internal numerical states be stored physically, restored later, and used as an operational memory substrate without modifying the pretrained model?

CUT3 investigates the third possibility.

The attached 13 scientific figures document the architecture, source verification, physical injection protocol, SSD/GPU memory measurements, neural-state X-rays, synthesis workflow, cartridge integrity, sealed questions, and experimental results.

The complete source code, raw logs, generated responses, and integrity records are available for technical examination.

TECHNICAL REFERENCES

TEST730 — Full technical publication:

https://doi.org/10.5281/zenodo.23497732

Original TEST730 experimental log — all six model-generated responses:

https://github.com/ceceli33/titan-cognitive-core-v3/blob/main/730.log

GitHub repository:

https://github.com/ceceli33/titan-cognitive-core-v3

Previous research — AKBASCORE Silicon Hippocampus v1.4:

https://doi.org/10.5281/zenodo.23434686

Silicon Hippocampus 1.5 — Part 1:

https://github.com/ceceli33/titan-cognitive-core-v3/blob/main/Qwen72B_part1_1.5.log

Silicon Hippocampus 1.5 — Part 2:

https://github.com/ceceli33/titan-cognitive-core-v3/blob/main/Qwen72B_part2_1.5.log

Silicon Hippocampus 1.5 — Part 3:

https://github.com/ceceli33/titan-cognitive-core-v3/blob/main/Qwen72B_part3_1.5.log

Silicon Hippocampus 1.5 — Execution Log:

https://github.com/ceceli33/titan-cognitive-core-v3/blob/main/Qwen72B_1.5.log

I welcome technical criticism, independent reproduction attempts, and comparisons with existing persistent KV-cache systems, prefix caching, long-context inference, and RAG.

In particular, I would be interested in feedback on the CUT3 boundary, the integrity of upper-layer K/V reconstruction, and experimental designs capable of distinguishing genuine memory-dependent reasoning from capabilities already present in the frozen base model.


r/FunMachineLearning • • Oct 21 '26

Meta's new 816B model only uses ~5% of its parameters per token. I made an animated explainer of how Mixture of Experts works

Thumbnail
youtube.com
1 Upvotes

Muse Spark Open has 816B parameters but only ~42B are active for each token: a router picks 8 experts out of 256. I tried to explain visually why dense models get slow, how the router works, the surprising thing about what experts actually learn, and the big catch (all experts still need to sit in memory).

I'm the creator, so I'd love feedback, especially on anything that's still unclear!


r/FunMachineLearning • • Oct 20 '26

Neurips 2026 Waiting list

1 Upvotes

Hi everyone! The NeurIPS 2026 waitlist mentioned that tickets would be released on October 13 for Atlanta and October 20 for Sydney. Has anyone on the waitlist received a ticket or an update yet? Just wondering if the tickets have started going out. Thanks!


r/FunMachineLearning • • Oct 20 '26

MY FIRST DIGITAL PRODUCT

1 Upvotes

🚀 I just launched my first digital product!

I created an AI & Machine Learning Interview Questions and Answers PDF to help students and aspiring AI/ML engineers prepare for technical interviews.

If you're learning AI/ML, preparing for internships, or getting ready for placements, this guide may help you revise important concepts.

I'm just getting started with this journey, and I'd appreciate your support!

📘 Get the PDF here:

jafarspark4.gumroad.com/l/ewlcw

#AI #MachineLearning #InterviewPreparation #Students


r/FunMachineLearning • • Oct 20 '26

Machine Unlearning — SISA Explained in 7 Minutes

Thumbnail
youtube.com
1 Upvotes

r/FunMachineLearning • • Oct 19 '26

From AI anxiety to building my first AI-powered iOS app

Thumbnail
reddit.com
1 Upvotes

r/FunMachineLearning • • Oct 19 '26

VOID

Thumbnail github.com
1 Upvotes

A voice first desktop companion for Claude code cli do wtv u want with him I really don’t care I only care if u have fun and more people like him..


r/FunMachineLearning • • Oct 19 '26

Gemini 4 Argon Really Surprised Me - Two Minute Papers

Thumbnail
youtube.com
1 Upvotes

r/FunMachineLearning • • Oct 19 '26

making my own ai from scratch

Thumbnail
gallery
2 Upvotes

my progress so far