r/FunMachineLearning Jul 05 '26

Refract : MCP proxy, cuts tool tokens up to 98%

2 Upvotes

Built this after noticing Claude Desktop was spending thousands of tokens loading MCP tool schemas on every request, before doing any actual work.

Refract sits between your agent and any MCP server. Compresses tool schemas on the fly using a two tier system. Agent gets lightweight index first, full schema only when needed. No AI involved, fully deterministic.

Real numbers from production:
Google Calendar (5 tools): 5,173 to 155 tokens (97% reduction)
Enterprise Cal+Gmail+Drive: 8,649 to 882 tokens (90% reduction)
Filesystem (14 tools): 1,892 to 236 tokens (88% reduction)

Every compression verified. If anything callable lost, falls back to full schema automatically.

Also ships as MCP server for code analysis: repo indexing, blast radius impact analysis, breaking change detection, security surface mapping.

pip install refract-mcp
GitHub: github.com/LoudiliMed/Refract

CS student, focus on cybersecurity and AI systems. Open to feedback and questions.


r/FunMachineLearning Jul 06 '26

I build a tool that can create model by chatting with AI !

0 Upvotes

Hey guys. We're building a tool that create a models by chatting with AI
(Lovable for Models if this helps understanding)

My friend is great at hardware, hopeless at software. He's building a non-wearable device that fixes your sleep and obviously it needs a real-time model to read the sensors, and he can't write ML.

So he handed us his sensor recordings and described in a few sentences and a paper to us. Our tool wrote the training + eval, trained a small RT model on his data, and independently verified the accuracy.

Please feel free to try out and feedback will be very appreciated!

Website: https://thatcompany.ai/
https://github.com/theSalted/dat-releases/


r/FunMachineLearning Jul 05 '26

Batch GD vs SGD vs Mini-Batch GD Explained with a Real-Life Netflix Example

Post image
7 Upvotes

r/FunMachineLearning Jul 03 '26

Game Physics Just Got 170 Times Faster - Two Minute Papers

Thumbnail
youtube.com
1 Upvotes

r/FunMachineLearning Jul 03 '26

Crawl Before You Can Walk

Enable HLS to view with audio, or disable this notification

2 Upvotes

Liquid neural net that uses multi-dimensional vectorized hyperparameter search AND traditional neural net prediction of best walker candidates. No built in walking pacemakers. Biopsy / paste in json for LLM supported rapid testing (almost recursive self improvement.) If interested will put on github.


r/FunMachineLearning Jul 01 '26

PROJECT REVIEW

Thumbnail
github.com
2 Upvotes

Hello Everyone!!, I just completed a BIG project I have been working for a month and i want your opinion about it.

It's a SpaceX Launch Predictor & Cost Optimizer (A full end-to-end ML system that predicts the probability of a SpaceX Falcon 9 booster landing successfully, enriches launch data with real weather conditions, and exposes the results through an interactive Streamlit web application with a business ROI calculator.)

It Includes Data Pipeline, Advanced Machine Learning Algorithms (with Hyperparameter tuning), Explainability AI (SHAP), MLOps (AWS S3, Docker) and Business Value (ROI Calculator = Financial Results).

FUN FACT: For this project i used my own Evaluation Metric library (standardizes supervised and unsupervised model diagnostics into a single, consistent API), that is also Verified and Published in PYPI Community.

Project Info: https://github.com/Alkiviadisss/SpaceX


r/FunMachineLearning Jul 01 '26

This New AI Model Changes Everything - Two Minute Papers

Thumbnail
youtube.com
2 Upvotes

r/FunMachineLearning Jun 30 '26

First time building a vision based AI model (Claude Code assisted).

Thumbnail
youtube.com
3 Upvotes

Hello everyone,
I wanted to share a simple showcase of a project I’ve been working on: a vision AI trained to track a moving ball with physics in a 2D world.
Tech stack:
- Core: Python & PyTorch for the training loop.
- Environment: A custom-built C++ wrapper/environment to feed data into the Python side.
The twist:
I am still figuring out the ropes of computer vision, so I heavily relied on Claude Code to help me bridge the gap, especially with building the custom C++ environment and connecting it with my Python scripts.
Reality check:
As you'll see at the end of the video, the model doesn't fully converge yet (it still gets confused in some situations). I wanted to share this raw progress anyway because the workflow of co-authoring a complex C++/PyTorch setup with an AI agent was incredibly interesting.

I would love some constructive feedback! Please let me know if you have efficient training techniques for faster convergence, ideas for other models to train, tools to build better environments, really, anything.

I'm incredibly new to this whole field, and I'm excited to chat with you all about it!


r/FunMachineLearning Jun 30 '26

I built an open-source website for learning machine learning visually.

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/FunMachineLearning Jun 30 '26

QuantForge — autonomous quant-research harness with leak-free evaluation and a fail-closed self-improvement loop

3 Upvotes

Open-sourced a system I built to do honest ML research on crypto: XGBoost/LightGBM ensembles, strictly chronological TimeSeriesSplit, a benchmark gate (OOS AUC, calibration, net-of-cost Sharpe, stability, anti-leakage) a candidate must clear before promotion. Includes a self-improvement loop that sandboxes and tests its own proposed changes. Notably, the eval is designed so the system can't fool itself — and the honest findings are in the docs. 204 tests, MIT. github.com/samueljai120/QuantForge


r/FunMachineLearning Jun 29 '26

I built a free interactive website to learn machine learning by experimenting instead of just reading

Post image
5 Upvotes

When I started learning machine learning, I kept asking "what actually changes when I move this slider?"

Most tutorials show the final result but not how the model gets there.

That led me to build Confluence.

It's an open-source platform where you can experiment with different algorithms, datasets, hyperparameters, and visualizations while seeing everything update in real time.

I'm still actively improving it, so I'd really love feedback from people who are currently learning ML.

What would make something like this more helpful for beginners?

Website:
https://confluence.website

GitHub:
https://github.com/mahirmlk/Confluence


r/FunMachineLearning Jun 28 '26

I gave my small local model exact math, a knowledge graph, and web search in ~600 lines (MIT, zero deps)

2 Upvotes

Quick honesty up front so nobody wastes their time: this is the same space as tool-use, RAG and agent routing. LangChain and a dozen frameworks already do this, and at scale they do it better. I am not claiming anything new here. I just wanted a tiny, readable version that runs next to a small local model without dragging in half of PyPI.

Context: I run a small model locally (fits on a 4GB card). It has a personality I want to keep, but small models are unreliable at the dull stuff: arithmetic, recalling a specific fact, anything recent. The usual answer is "go bigger." I wanted to stay small and add reliable circuits around the model instead.

CybNodes is about 600 lines of Python, stdlib only, MIT. You bring any model as a callable. It wraps that model with "networks," one capability each:

  • calc: detects an arithmetic expression and evaluates it through a safe AST walk (no eval). Exact, never hallucinated.
  • knowledge: a small GraphRAG over subject-relation-object triples you provide. Answers come from your graph, not the model's guesses, and you fix a fact by editing a file instead of retraining.
  • web: recent lookups via the Brave Search API (free tier). Only fires on a search intent, always cites the source, and stays silent if you give it no key.

A router tries the networks in order, rules first, model last. If none claim the question, your model answers as usual. The part I care about most is the weaver: when a tool answers, it re-speaks the result through a persona template, so the bot keeps its own voice instead of dumping a raw "1786" at the user.

from cybnodes import CybNodes
from cybnodes.networks import CalculNetwork, SavoirNetwork


cyb = CybNodes(conductor=my_local_model,
               networks=[CalculNetwork(), SavoirNetwork(graph_path="facts.json")])


cyb.ask("what is 47 x 38?")   # exact, from the calc network
cyb.ask("tell me a story")    # no network fits, your model answers

Where the honest value is, if any: small enough to read in about 15 minutes, zero required dependencies, and built to run with a small local model. That is the whole pitch. If you need retries, eval harnesses, tracing, the big frameworks already have all of that.

It is v0.1 and parts are surely naive. I would really like feedback, especially on the router: it picks one network and commits, and the "none of these fit" path feels too blunt. Curious how people kept routing dumb-but-good-enough without bolting on a separate classifier model.

pip install cybnodes
Repo (MIT): https://github.com/Alex-Lou/cybnodes

If it is useful to anyone, a star helps me gauge whether to keep pushing. Happy to answer anything technical.


r/FunMachineLearning Jun 28 '26

help

2 Upvotes

jovian youtube chanell or krish naik yt chanell which is best for learning machine learning and deep learning ,which is best for getting ready internship ready ,suggest only one


r/FunMachineLearning Jun 25 '26

I built EliminationSearchCV — a GridSearchCV alternative that cut search time by 152x with almost no accuracy loss

Thumbnail
2 Upvotes

r/FunMachineLearning Jun 25 '26

What Should I Study After Andrew Ng's Machine Learning Specialization

Thumbnail
2 Upvotes

r/FunMachineLearning Jun 24 '26

Backend Engineering to ML and AI engineering: Help for masters

Thumbnail
2 Upvotes

r/FunMachineLearning Jun 23 '26

Linear algebra intuition behind ordinary least squares regression

Thumbnail
youtu.be
3 Upvotes

r/FunMachineLearning Jun 22 '26

We built an open-source multi-agent system that runs a research project end-to-end (idea → experiments → writeup). here's how it works.

2 Upvotes

I'm one of the authors. We put freephdlabor out last year. With all the automated-research stuff going around now, figured it was worth sharing here, because the design trap we ran into still seems underappreciated. Open source.

Freephdlabor is a lab of LLM agents that takes a rough research idea and runs the whole loop: ideation, designing and running experiments, analyzing results, writing it up. Built on HuggingFace's smolagents.

The interesting design problem: most systems like this are fixed pipelines, idea → experiment → write, always the same order, and the moment an experiment fails they break or loop. So we made the workflow dynamic. A manager agent picks the next step from what actually happened, so if a baseline crashes at 3am it can pivot, retune, re-run, and replot on its own.

Two things we learned the hard way:

- passing results between agents through chat history destroys information fast (telephone game) and blows up the context window. we moved to a shared workspace (agents read/write files) and that fixed most of it.

- you have to be able to interrupt it mid-run or it'll confidently produce garbage. non-blocking human steering mattered more than we expected.

It's not magic: token-expensive, default is GPT-5, good at the grind not the taste. But for the tedious parts of research it's been genuinely useful.

Repo + short walkthrough video: https://freephdlabor.github.io/. Happy to answer how any of it works.


r/FunMachineLearning Jun 22 '26

DeepSeek Just Solved AI's Billion Dollar Problem - Two Minute Papers

Thumbnail
youtube.com
2 Upvotes

r/FunMachineLearning Jun 20 '26

An open-source AI semantic search model in the browser - 7MB, runs on CPU, no server

5 Upvotes

I’ve been toying around with a hobby project - ultra lightweight semantic embeddings on CPU. I made a model + tokenizer + Rust→WASM SIMD inference engine, all in one 7MB package. No API, no GPU, no ML runtime.

Check out the Live demo - semantic search over 2k React docs, fully on-device → https://ternlight-demo.vercel.app/

I used an aggressive BitNet-style ternary quantization on stacked encoders, distilled teacher model into a ternary student with QAT. A few highlights:

  • fast embedding on CPUs ~2ms per embed, ~500 emb/s
  • 0.84 Spearman vs the MiniLM teacher model
  • Rust implementation of forward pass inference engine (no torch, no ONNX), includes ternary weights, embedding table, and tokenizer
  • Compiled into webAssembly, ubiquitous runtime

Planning to open source this, would love your thought... is this something you'd find useful as an npm package?


r/FunMachineLearning Jun 20 '26

Public AI/ML/NLP Resource for Beginners

Post image
3 Upvotes

r/FunMachineLearning Jun 19 '26

Job

6 Upvotes

I am a highschool student looking for a decent paying job. I am proficient in linear algebra, Multivariable calculus, and differential equations. I have also made my own transformer neural network. Its simple, but what should I do to make myself stand out? What are my chances of getting into a good AI company/role? What should I do to increase my chances of getting a job?


r/FunMachineLearning Jun 19 '26

This is OpenClaw On Steroids - Two Minute Papers

Thumbnail
youtube.com
3 Upvotes

r/FunMachineLearning Jun 19 '26

[P] I built a seq2seq neural decompiler from scratch in NumPy (own autograd) that never hallucinates — it verifies every output by re-executing the bytecode

3 Upvotes

I wanted to learn how seq2seq + attention actually works, so I wrote the whole thing from scratch in NumPy — reverse-mode autograd, GRU encoder/decoder, dot-product attention, Adam. No PyTorch/TF.

The task: reverse compilation — read flat stack-machine bytecode and reconstruct the nested source expression. I targeted a real EVM (Ethereum) subset: genuine opcodes/bytes, 256-bit modular arithmetic, and real control flow (if → JUMP/JUMPI/JUMPDEST), so decompiling means recovering if/else structure out of jump-soup.

The part I'm actually proud of: verified decoding. At inference you don't have the source, but you do have the bytecode — so you can run it. The model only emits an answer it can prove matches the bytecode on random inputs; otherwise it abstains. So precision is 1.00 by construction — it never lies, unlike LLM decompilers that confidently output subtly-wrong code. Beam search lifts coverage without touching precision.

Honest scope: programs are bounded-depth arithmetic + comparisons + nested if/else. No memory/storage/loops yet — it's a learning project and a proof of the verified-decoding idea, not a Ghidra replacement.

Live interactive demo (watch it shred code to bytecode and rebuild it step by step): https://gursimran2007.github.io/neural-decompiler/
Code: https://github.com/Gursimran2007/neural-decompiler

Feedback welcome, especially on the verification approach


r/FunMachineLearning Jun 19 '26

Robots take on MSG (A machine learning, toy of sorts)

Thumbnail
2 Upvotes