r/FunMachineLearning • • Apr 16 '26

Made a world model that interprets photos into a racing game

4 Upvotes

I started working on a world model that runs locally on my iPad. You can take a photo and it tries its best to convert it into a racing game. Would love any feedback if anyone has ideas for new things to try with it?


r/FunMachineLearning • • Dec 17 '25

Ai/Ml engineering advice

4 Upvotes

Hey guys I’m looking into getting in this field i am currently studying python and sql as a grad student but any advice for those just starting out?


r/FunMachineLearning • • Dec 06 '25

Seeking feedback on a project that tries to answer a simple question: can a machine spot “mood changes” in a time-series without me telling it what those moods are?

Thumbnail
github.com
7 Upvotes

I’ve been working on a project called RegimeFlow. It tries to spot pattern changes in data over time. Think of it like this: if you watch something every day prices, energy use, storage levels, whatever you often feel the pattern shifts. Calm periods, busy periods, crisis periods. Most systems only notice these shifts when someone hard-codes rules or thresholds. That misses a lot.

RegimeFlow drops the hand-made rules. It looks at the data itself and works out the hidden patterns. It groups similar behaviour together, then trains a model to recognise those patterns going forward. It also gives a confidence score, so you know when the system is unsure instead of pretending it always knows what it’s doing.

I tested it on European LNG storage data from 2012 through 2025 and on fake data with clear pattern changes. It kept finding three to four meaningful “regimes” that line up with real-world behaviour like building up storage, using it up, or hitting stress periods. The model also holds up on synthetic signals, which shows the pattern-spotting part is solid.

The system uses mixtures of statistics and a neural network. It mixes long-range attention (good for spotting slow shifts) with dilated convolutions (good for fast, local changes). An uncertainty layer helps reveal when the predictions look shaky. I ran a bunch of automated hyperparameter searches to keep the results reproducible.

Limitations exist. The unsupervised labels depend on Gaussian mixtures. It needs proper comparisons with other change-point detectors. The economic tests are basic placeholders, not production-grade logic. Better calibration methods could reduce remaining confidence-related noise.

I’m looking for feedback from anyone willing to point out blind spots, oversights, or ways this explanation can be clearer for people who don’t follow machine-learning jargon.


r/FunMachineLearning • • Mar 24 '26

Synthetic E-Commerce Dataset — Free Sample Preview

2 Upvotes

r/FunMachineLearning • • Aug 19 '25

Neural Quantization Toolkit

4 Upvotes

🚀 Excited to share: Neural Quantization Toolkit - achieving <2% performance degradation with 4× compression!

📊 Results Preview: • 4.2× compression ratio (target: >3.5×) ✅ • 1.8% avg degradation (target: <2%) ✅
• 3.2× inference speedup ✅ • 15 languages validated (86.7% success rate) 🌍

Currently a research preview with working demo - full implementation coming Q1 2026.

🤝 Seeking collaborators for:

  • GPTQ core implementation

  • Marlin kernel optimization

  • Cross-lingual evaluation

  • Edge deployment tools

Try the demo & join the mission to democratize efficient AI!

AI #MachineLearning #Quantization #OpenSource #Research

https://github.com/Yash2378/neural-quantization


r/FunMachineLearning • • Oct 13 '25

DeepMind’s New AI Is A Self-Taught Genius - Two Minute Papers

Thumbnail
youtube.com
4 Upvotes

r/FunMachineLearning • • Oct 12 '26

Could LLM-driven formal math lead to "specification gaming"? A question on the recent Navier-Stokes proof

5 Upvotes

There’s been a lot of interest recently around OpenAI using AI models and Lean 4 to formalize a Navier-Stokes blowup. Regardless of the fluid dynamics, the mechanics of how the proof was constructed got me thinking about automated theorem proving from an ML alignment perspective.

In reinforcement learning, we frequently see specification gaming: when an agent is given a strict target, it exploits every unconstrained degree of freedom to find an extreme edge-case rather than the natural solution we originally envisioned.

Looking at how the formalization satisfied the strict Millennium Prize rules, it seems like something very similar might have occurred:

• To keep the external force legally smooth while canceling the singularity, the construction relies on non-analytic bump cutoffs whose higher-order derivatives explode factorially.

• To stitch the inner vortex to the outer flow, the matching parameters sit on an extraordinarily sensitive knife-edge to keep the system invertible.

• The formal global energy constraint is strictly respected, but unconstrained local gradients blow up.

The proof is completely valid mathematics and compiles without error. But it feels conceptually similar to an agent finding an adversarial loophole in the human-written specification.

I’m curious how folks working on neural theorem proving and formal verification view this:

  1. As automated provers tackle open problems, how do we distinguish between proper mathematical insight and an AI "gaming" the formal definitions?

  2. Does this suggest that our formal mathematical specifications need additional constraints or regularizers when targeted by AI search agents?

Would love to hear your point of views and open an open minded discssion croos disciplanary ! Thanks,


r/FunMachineLearning • • Dec 04 '25

XGBoost-based Forecasting App in browser

4 Upvotes

Hi all, I recently learned you can train XGBoost models in the browser via Pyodide. I run an XGBoost related project called GBNet. One of its applications is Forecasting, so I made a Forecasting app and hosted it on GitHub pages.

Copy-paste data in, copy-paste the forecast out. Would love any comments! https://mthorrell.github.io/gbnet/web/app/

The forecasts should be pretty good. On a basic benchmark, it was beating out-of-the-box Prophet about 75% of the time.


r/FunMachineLearning • • Sep 21 '26

I distilled SigLIP 2 into MobileNetV4 for pet breed recognition. Check it out :)

2 Upvotes

Been working on a pet breed classifier using Oxford-IIIT Pets, distilling SigLIP 2 into MobileNetV4.

I also wanted to learn Hugging Face Spaces, so after training the models, I made a quick demo and deployed a Gradio demo. It lets you compare the baseline and distilled models side by side, its a cool little project that lets you poke around and try to understand the differences.

Try the demo here: https://huggingface.co/spaces/MRCherryPie/breedlite-mnv4

Curious how it handles people’s actual pet photos. If you try it and get a fummy prediction, I’d like to see that too


r/FunMachineLearning • • Nov 04 '25

Struggling to communicate with Chinese AI teams? Learn Chinese for AI work

3 Upvotes

Working with Chinese AI teams but can't discuss 大语言模型 vs LLMs naturally?

I'm building a practical Chinese course specifically for AI engineers:

• AI vocabulary (模型、嵌入、推理、微调...)

• Meeting phrases for standups and demos

• Real-world scenarios, not textbook Chinese

• Engineer-first: 2-3 hrs/week, 6 weeks

Built for busy dev schedules. Pilot cohort includes engineers from leading AI teams.

Join the waitlist: https://getaihanyucourse.online/


r/FunMachineLearning • • Oct 07 '26

DeepMind's New AI Just Cracked The Code Of Life - Two Minute Papers

Thumbnail
youtube.com
4 Upvotes

r/FunMachineLearning • • Nov 28 '25

Neuro-Glass v4: Evolving Echo State Network Physiology with Real-Time Brain Visualization

9 Upvotes

**GitHub**: https://github.com/DormantOne/neuro-glass

A real-time neuroevolution sandbox where agents evolve their own reservoir dynamics (size, chaos level, leak rate) while their readout layer learns via policy gradient. Vectorizing hyperparameters streamlined evolution.

**Key Features:**

- Parallel evolution across 4 cores

- Live brain activity visualization

- Demo mode for high-scoring agents

- Persistent save system

**Try it**: `pip install -r requirements.txt && python neuro_glass.py`

**Tech**: PyTorch + Flask + ESN + Genetic Algorithms


r/FunMachineLearning • • May 26 '25

NVIDIA’s New AI: Impossible Weather Graphics! - Two Minute Papers

Thumbnail
youtube.com
2 Upvotes

r/FunMachineLearning • • Sep 09 '26

A Team Reports Solving A 70 Year Old Algebraic Geometry Conjecture Using Teams of AI Models

Post image
12 Upvotes

I’m part of the team behind this work. We’ve shared a proof of the Pierce Birkhoff conjecture in real algebraic geometry, using an AI agent system with a $400 budget. The screenshot is Junyu Ren’s announcement.

The surprising part of the workflow was how different model families complemented each other. Giving a task independently to one GPT agent and one Claude agent often worked better for us than using a larger group of the same model. One would catch an error the other missed, or suggest a way forward when we were stuck.

The diagram shows the wider process: humans, proof search, counterexample construction, independent auditing, and formal verification work in Lean. Arguments, objections, and review findings go into a shared knowledge base.

Original announcement: https://x.com/junyu_r/status/2097694018389914106


r/FunMachineLearning • • Sep 26 '26

Explainability Research Group

3 Upvotes

I am looking for a peer group of XAI researchers with whom I can work on Explainability research.


r/FunMachineLearning • • Dec 13 '25

Blueprint for Conscious AGI via Life Process Simulation (Metabolism-First + Panpsychism) – Feedback Welcome

Post image
2 Upvotes

r/FunMachineLearning • • Dec 05 '25

Built Z3-based LLM compliance verifier...feedback?

2 Upvotes

Solo build, looking for feedback.

Live Demo: https://www.aare.ai

Github: https://www.github.com/aare-ai


r/FunMachineLearning • • Mar 02 '26

[D] We ran 3,000 agent experiments to measure behavioral consistency. Consistent agents hit 80–92% accuracy. Inconsistent ones: 25–60%.

4 Upvotes

Most agent benchmarks report single-run accuracy. We think that's misleading.

We took 100 HotpotQA tasks, built a standard ReAct agent, and ran each task 10 times per model (Claude Sonnet, GPT-4o, Llama 3.1 70B). Same inputs, same prompts, same tools. 3,000 runs total.

Main findings:

  1. Agents rarely repeat themselves. On the same task, models produce 2–4.2 completely different action sequences across 10 runs. Llama varies most (4.2 unique paths), Claude least (2.0).

  2. Consistency predicts correctness with a 32–55 percentage point gap. Tasks where the agent behaves consistently (≤2 unique trajectories): 80–92% accuracy. Tasks where it flails (≥6 unique trajectories): 25–60%. This is a usable signal — if you run your agent 3x and get 3 different trajectories, you probably shouldn't trust the answer.

  3. 69% of divergence happens at step 2 — the first search query. If the first tool call is well-targeted, all 10 runs tend to converge downstream. If it's vague, runs scatter. Query formulation is the bottleneck, not later reasoning steps.

  4. Path length correlates with failure. Consistent tasks average 3.4 steps and 85.7% accuracy. Inconsistent tasks average 7.8 steps and 43% accuracy. An agent taking 8 steps on a 3-step task is usually lost, not thorough.

Practical implication: consistency is a cheap runtime signal. Run your agent 3–5 times in parallel. If trajectories agree, trust the answer. If they scatter, flag for review.

ArXiv: https://arxiv.org/abs/2602.11619

Code: https://github.com/amanmehta-maniac/agent-consistency

Blog writeup: https://amcortex.substack.com/p/run-your-agent-10-times-you-wont

Interested to hear about consistency problem for others. Anything fun in today's age?


r/FunMachineLearning • • Jan 22 '26

indigoRL - Pokemon Yellow Deep Reinforcement Learning

4 Upvotes

Hi everyone! I'm a 3rd-year Computer Engineering student and I'm quite new to the world of Machine Learning.

As my first major personal project, I've built IndigoRL, a Deep Reinforcement Learning agent for Pokémon Yellow. I'm using Recurrent PPO (LSTM) to help the agent navigate the game's long-term challenges, like getting through Viridian Forest.

Since I'm still learning the ropes, I'd really appreciate any feedback on my reward shaping or my environment implementation.

GitHub: https://github.com/OutFerz/indigoRL

Tech: Python, Stable-Baselines3, PyBoy.+

its my very first "serious" project on github and im trying to learn the most of this. Also my native language isnt english so mb if I cant comunicate properly xD


r/FunMachineLearning • • Aug 31 '25

New AI Finally Solved The Hardest Animation Problem! - Two Minute Papers

Thumbnail
youtube.com
2 Upvotes

r/FunMachineLearning • • Sep 25 '26

Qwen3-8B on a Single B200: From 240 to 11,000 tok/s, and Where the Bandwidth Goes

2 Upvotes

One B200, one 8B model, seven concurrency levels. This post looks at LLM inference from an SRE's point of view: why a single request is slow, why batching is nearly free, and how to turn benchmark numbers into a capacity plan. Every script is at the end so you can reproduce it.

  • Single-request decode is a memory-bandwidth problem. Every output token requires reading all 16 GB of weights. Measured TPOT is 4.08 ms, about 4 TB/s of effective bandwidth (B200 is rated at roughly 8 TB/s).

  • Batching is nearly free throughput. Going from 1 to 16 concurrent requests raises total throughput 14× while each user gets only 9% slower.

  • The knee is between 64 and 128 concurrent requests. Past that, throughput gains only 18% (then drops), and P99 time-to-first-token goes from 0.3 s to 3 s.

  • At high concurrency the bottleneck moves from weights to the KV cache. At 128 concurrent requests, each decode step reads about 22 GB of KV cache, more than the 16 GB of weights.

  • Capacity takeaway: with an SLO of at least 100 tok/s per user and P99 TTFT under 1 s, the operating point for one GPU is 64–96 concurrent requests, about 10,000 output tok/s.

1. Setup

ItemConfiguration
GPUNVIDIA B200 (1 of 8 used, 179 GB usable)
Driver / CUDA580.178 / 13.0
EnginevLLM 0.30.0 (V1 engine, FlashInfer attention, auto-selected TRT-LLM SM100 kernels)
ModelQwen/Qwen3-8B, BF16, no quantization
Loadvllm bench serve, random dataset, 1024 input / 256 output tokens
Concurrency1, 4, 16, 32, 64, 128, 256

2. Where the GPU memory goes

The vLLM startup log reports:

UseSize
Model weights15.27 GiB
CUDA graphs0.97 GiB
KV cache145.16 GiB

About 90% of GPU memory goes to the KV cache, not the model. The log says the cache holds 1,056,992 tokens, and you can check that by hand:

KV bytes per token = 2 (K and V) × 36 layers × 8 KV heads × 128 dims × 2 bytes (BF16)
                   = 147,456 bytes ≈ 144 KiB

145.16 GiB ÷ 144 KiB ≈ 1,057,000 tokens  ✓

Every token of context costs 144 KB of GPU memory. That is why long context is expensive, and it is the basic formula for capacity planning. With the full 40K context, one GPU can hold about 26 requests at once. At an average of 2K tokens, it can hold over 500.

3. Results

ConcurrencyOutput throughput (tok/s)Per-user speed (tok/s)TPOT (ms)P99 TTFT (ms)P99 ITL (ms)
12412454.08304.5
49042434.12594.6
163,3782244.47965.8
326,0542024.9616011.1
649,5991616.2029915.1
12811,3459710.3077386.2
25610,8015817.293,071188.3

TPOT is the mean time per output token after the first. TTFT is time to first token. ITL is the gap between consecutive tokens. Per-user speed is 1000 / TPOT.

4. Analysis

4.1 A single request uses only half the bandwidth

During decode, each new token requires reading every weight from HBM, while the math per token is tiny. The speed limit is set by bandwidth:

Theoretical ceiling ≈ 8 TB/s ÷ 16.4 GB ≈ 490 tok/s
Measured            = 245 tok/s (TPOT 4.08 ms → ~4.0 TB/s effective)

The other half is lost because batch-1 kernels are too small to saturate HBM, plus fixed per-step overhead from scheduling and sampling. That gap is where kernel work and speculative decoding pay off.

4.2 Batching: read the weights once, serve N users

At 16 concurrent requests, one pass over the weights produces one token for each of 16 requests. Cost stays about the same while output goes up 16×:

  • Total throughput: 241 → 3,378 tok/s (14×)

  • Per-user speed: 245 → 224 tok/s (only 9% slower)

This is why every serving engine does continuous batching.

4.3 At high concurrency, the KV cache becomes the bottleneck

If decode were limited only by weight reads, TPOT would stay flat as concurrency grows. It doesn't: TPOT climbs quickly from 64 onward. Each step also reads the KV cache of every active request.

Each request has about 1,150 tokens of context during decode, or roughly 0.17 GB of KV cache. Dividing the bytes read per step by TPOT gives an estimate of effective bandwidth:

ConcurrencyWeightsKV cacheBytes per stepTPOTEffective BW
116.4 GB0.2 GB16.6 GB4.08 ms~4.1 TB/s
1616.4 GB2.7 GB19.1 GB4.47 ms~4.3 TB/s
6416.4 GB10.9 GB27.3 GB6.20 ms~4.4 TB/s
12816.4 GB21.7 GB38.1 GB10.30 ms~3.7 TB/s
25616.4 GB43.5 GB59.9 GB17.29 ms~3.5 TB/s

Two takeaways:

  1. Effective bandwidth stays roughly flat at 3.5–4.4 TB/s. So TPOT can be predicted fairly well as bytes per step ÷ effective bandwidth. That is a useful capacity-planning model.

  2. From 128 onward, KV cache reads exceed the weights. More concurrency just means moving more KV cache, so throughput stops growing. The lower bandwidth at 128 and 256 comes from new prefills being mixed into decode batches, which stretches TPOT (next section).

This points to the next optimization: an FP8 KV cache halves those reads.

(This is a rough estimate based on average context length. It shows the trend; it is not a precise bandwidth measurement.)

4.4 Tail latency: prefill and decode get in each other's way

At 128 concurrent requests, median ITL is 7.7 ms but P99 is 86 ms, so users see output stutter. When a new request arrives, its prefill (1,024 input tokens at once) runs in the same batch as ongoing decodes. The same effect pushes TTFT from 30 ms to 773 ms, because new requests wait in line for prefill.

This is the problem prefill/decode disaggregation solves: run prefill and decode on separate GPUs so they don't interfere. It is the core idea behind projects like llm-d and NVIDIA Dynamo.

5. Takeaways for operators

Pick the operating point from the SLO. With a target of at least 100 tok/s per user and P99 TTFT under 1 s:

  • 64 concurrent: 161 tok/s per user, P99 TTFT 299 ms. Meets the SLO with plenty of headroom.

  • 128 concurrent: 97 tok/s per user, just below target.

  • Recommended per-GPU operating point: 64–96. Cap it with --max-num-seqs and let the load balancer spread overflow to other GPUs instead of queueing on one.

Cost. At 64 concurrent, one GPU produces about 9,599 × 3,600 ≈ 34.6M output tokens per hour.

Cost per 1M output tokens ≈ hourly GPU price ÷ 34.6

First startup needs the internet. On first launch, FlashInfer downloads prebuilt Blackwell kernels from NVIDIA, and the model comes from Hugging Face. Before scaling out in production, bake ~/.cache/huggingface, ~/.cache/flashinfer, and ~/.cache/vllm into the image or put them on shared storage. Otherwise new nodes stall at startup.

6. Limitations

  • Each level was run once. A standalone run at 64 concurrent gave 7,379 tok/s versus 9,599 in the sweep, mostly due to warm-up and request count. A rigorous comparison should take the median of 3 runs per level.

  • The random dataset uses fixed input lengths, so prefix caching barely helps. Real traffic has different length distributions and cache hit rates.

  • Only one GPU at BF16 was tested. FP8 weights, FP8 KV cache, and multi-GPU parallelism are for follow-up posts.

7. Reproduce

# Environment
conda create -n vllm python=3.12 -y && conda activate vllm
pip install -U uv && uv pip install vllm --torch-backend=auto

# Start the server (1 GPU)
CUDA_VISIBLE_DEVICES=0 vllm serve Qwen/Qwen3-8B --port 8000 2>&1 | tee vllm.log

# Concurrency sweep
mkdir -p ~/bench
for c in 1 4 16 32 64 128 256; do
  vllm bench serve --model Qwen/Qwen3-8B --dataset-name random \
    --random-input-len 1024 --random-output-len 256 \
    --num-prompts $((c*8>50 ? c*8 : 50)) --max-concurrency $c \
    --save-result --result-dir ~/bench --result-filename c${c}.json
done

Next up

  • FP8 KV cache: testing the prediction from section 4.3 and measuring the throughput gain at high concurrency.

  • 8-GPU tensor parallelism and deploying DeepSeek-class models.

Author: [kimsun]. 10 years in SRE and 5 years in DevOps engineering, now moving into AI infrastructure and LLM serving. Get in touch: [contact:https://www.linkedin.com/in/kim-sun-945b06298/?isSelfProfile=true]


r/FunMachineLearning • • Dec 21 '25

training a truly open source model, from the community to the community.

4 Upvotes

Hey everyone,

I'm not an expert in ML training — I'm just someone fascinated by open-source AI models and community projects. I've been reading about technique called (ReLoRA: High-Rank Training Through Low-Rank Updates), and I had an idea I wanted to run by you all to see if it's feasible or just a bad idea.

The Core Idea:
What if we could train a truly open-source model from the ground up, not as a single organization, but as a distributed community based model?

My understanding is that we could combine two existing techniques:

  1. LoRA (Low-Rank Adaptation): Lets you train a small, efficient "adapter" file on specific data, which can later be merged into a base model.

  2. ReLoRA's Concept: Shows you can build up complex knowledge in a model through cycles of low-rank updates.

The Proposed Method (Simplified):

  • A central group defines the base model architecture and a massive, open dataset is split into chunks.

  • Community members with GPUs (like you and me) volunteer to train a small, unique LoRA on their assigned data chunk.

  • Everyone uploads their finished LoRA (just a few MBs) to a hub.

  • A trusted process merges all these LoRAs into the growing base model.

  • We repeat, creating cycles of distributed training → merging → improving.

This way, instead of needing 10,000 GPUs in one data center, we could have 10,000 contributors with one GPU each, building something together.

I'm Posting This To:

  1. Get feedback: Is this technically possible at scale? What are the huge hurdles I'm missing?

  2. Find collaborators: Are there others interested in brainstorming or even building a prototype?

I know there are major challenges—coordinating thousands of people, ensuring data and training quality, avoiding malicious updates, and the sheer engineering complexity. I don't have all the answers, but I believe if any community can figure it out, it's this one.

What do you all think? Is this worth pursuing?


r/FunMachineLearning • • Sep 11 '25

Intel Just Changed Computer Graphics Forever! - Two Minute Papers

Thumbnail
youtube.com
12 Upvotes

r/FunMachineLearning • • Dec 13 '25

Robots with double the neurons do better in Robot battles

Post image
7 Upvotes