r/MachineLearning • • 12d ago

Discussion AISTATS 2027 paper discussion [D]

52 Upvotes

Creating this post since the reviews are supposed to go live today. What do you guys think?


r/MachineLearning • • 26d ago

Discussion [D] Self-Promotion Thread

8 Upvotes

Please post your personal projects, startups, product placements, collaboration needs, blogs etc.

Please mention the payment and pricing requirements for products and services.

Please do not post link shorteners, link aggregator websites , or auto-subscribe links.

--

Any abuse of trust will lead to bans.

Encourage others who create new posts for questions to post here instead!

Thread will stay alive until next one so keep posting after the date in the title.

--

Meta: This is an experiment. If the community doesnt like this, we will cancel it. This is to encourage those in the community to promote their work by not spamming the main threads.


r/MachineLearning • • 6h ago

Project I've built my own programming language that can fit ML better - And its faster than hand-tuned CUDA! [P]

Post image
21 Upvotes

So I've built my own programming language.

It has a different concept (but not new) -> dataflow, parallel first language.

But with a twist.

I've designed it for 5 years, the aim was to create a parallel language, with a different kind of optimization.

The optimization does not focused on the control flow of the application like most other compiler, it focuses on fitting data and data usage onto the hardware device it is running on.

So at comptime, the language creates a dataflow map of the data of the program into processes of the program, this "map" is category-theory based, allowing to use category theoretic rules to prove facts about the program you wrote.

I combine those facts onto the hardware facts that I want to run on (e.g. the compute unit capabilities, total compute units, the memory locations and bandwidths, and how processes use data to ensure efficient re-use when needed).

This also allows the same code to run on nvidia, amd, any cpu, and at the end even on FPGA/printed as its own ASIC. Basically, a language because for years I've hated the monopoly of CUDA, and now officially I'm faster than even CUDA implementations!

The nice results: caching results for matrix mul is automatic, it is not hardcoded, the language just proves it, and creates a cache when needed, it re-computes only what is necessary, multiplications & additions that can be done in parallel WILL be done in parallel for you, so you don't need to specify it, the compiler just works. It also will place/process matrix muls and similar operations in a sequence that uses memory layout in the most efficient way for the hardware it runs on, and not bcs I told it to, but bcs it proves it 🔥

Now I've had a bit of a problem, I did design the language and its algorithms, but the problem is that I let claude make out with the code bcs I wanted results fast.

Now I've managed to prove that this language is faster in most cases than even hand-tuned kernels, numpy and other tools, all accomplished using even "naive" implementations in the language.

This week I've ran llama-3.2-1B and using f32 it is faster than all engines that have optimized the sh*t out of it by hand - and my language? naive implementation of the model.

Here is the language exposition with code examples and performance results against other languages/libraries (even numpy is losing on most hardware I've ran on):

https://lesscomplexity.github.io/mapal/language-exposition.html

For those that want to dig into the architecture I've made a nice file that explains it:

https://lesscomplexity.github.io/mapal/architecture-map.html

Right now I'm trying to "unvibe" the code.

Because the results are awesome, I'm not fully satisfied with how claude did it, even though I've review ALL the code it did, I did it fast to reach results.

Now that I have them the work is on making the compiler more efficient.

I would love to know what you guys think about the language, the syntax, honest opinions as much as you can, and ppl that are willing to help/experiment with it 😄

You can already install the language compiler, its LSP and syntax highlighting both for neovim & vscode.

Here is the official repo: https://github.com/LessComplexity/mapal


r/MachineLearning • • 1h ago

News 8,192 accelerators, not one from NVIDIA: Xing4.1-Preview[N]

Post image
3 Upvotes

China Telecom has released Xing4.1-Preview, an open-weight language model. The lab says it ran the entire pretraining job on Huawei Ascend 910C chips with MindSpore, without NVIDIA hardware or CUDA. That claim hasn't been independently audited.

Think of it as a big workshop that calls in only the specialists it needs. In each mixture-of-experts layer, a token goes to eight of 256 specialists plus one shared expert. That puts roughly 17 billion of the model's 285 billion parameters to work per token. You still need room for the whole workshop: the BF16 weights take up about 521 GiB.

The weights are Apache 2.0, and the context window holds up to a million tokens. That limit isn't a quality score, and official benchmark scores are still pending. The big deal isn't a leaderboard win: it's a route to training at this scale without CUDA.

Model card: https://huggingface.co/XingChen-AGI/Xing4.1-Preview · AlphaSignal: https://alphasignal.ai/model/china-telecom-s-xing4-1-trains-a-285b-open-model-without-a-single-nvidia-chip
Diagram: 8 of 256 routed experts.


r/MachineLearning • • 3h ago

Discussion Are experienced data scientists becoming some of the biggest beneficiaries of the AI coding revolution? [D]

2 Upvotes

I've been working in data science for around 12 years, and something I've increasingly noticed is how much more powerful my existing skill set has become with AI-assisted software development.

Historically, one of the biggest limitations for many data scientists was the gap between developing a solution and building an entire production application around it. That gap is rapidly shrinking.

An experienced data scientist typically already has a combination of skills spanning:

  • Statistics and mathematical reasoning
  • Data engineering and analytics
  • Business analysis and domain understanding (depending on the industry, but you usually understand the business as well as anyone else)
  • Machine learning and model architecture (not a huge advantage but still gives you a leg up)
  • Experimental design and hypothesis testing
  • Cost functions, optimisation and evaluation metrics
  • Understanding model limitations and failure modes

With modern AI coding tools, we can now build full-stack applications, APIs, agentic workflows and integrations at a speed that would have been unimaginable a few years ago.....at least not at this speed and scale.

What makes this particularly interesting is that understanding whether an AI system actually performs well requires a lot of the foundational knowledge that data scientists have spent years developing. Building an impressive demo is relatively easy now. Knowing how to evaluate it properly, diagnose its weaknesses and systematically improve it is considerably harder.

I'm not suggesting that AI-assisted coding suddenly makes someone equivalent to an experienced principal software engineer. There's still a tremendous amount of engineering knowledge and judgement to acquire.

But it feels like one of the historical limitations of data scientists is being rapidly removed, while many of our core strengths are becoming increasingly relevant.

Does anyone else feel that experienced data scientists are uniquely positioned to benefit from this new era of AI? Could the combination of statistical reasoning, business understanding, machine learning and AI-assisted software engineering become one of the most valuable technical skill sets over the next decade?


r/MachineLearning • • 3h ago

Research Fully Neurally Rendered object - ~2.7 ms average GPU frame time (256*256) [R]

Post image
1 Upvotes

Fully neurally rendered asset (RGB, Normals, and Depth) rendered at an average of ~2.7 ms frame time on 8 GB RTX 5070 Laptop GPU by a custom model architecture in custom inference engine made with Rust, TensorRT, and CUDA kernels. Check out the README in this repo for details. Thanks.


r/MachineLearning • • 1d ago

Discussion Best resources to learn time series analysis from scratch? [D]

16 Upvotes

Hi everyone, I'm looking for resources on time series analysis that explain the fundamentals, statistical concepts, and practical applications using Python. Any recs for books, courses, or YouTube tutorials that build a solid foundation from scratch?

Thanks in advance!


r/MachineLearning • • 17h ago

Research Interested about self supervised learning for audio data [R]

3 Upvotes

I’ve spent about 2 decades in fiber sensing (distributed acoustic sensing) and applying it to almost every possible domain. I’ve been trying to develop a 2 stream approach of solving the industry’s biggest shortcomings and the biggest problem the industry will never talk about by - figuring out if I can build mathematical context around this terabyte level unstructured data.

I’m no ML engineer. I’m an electronics engineer who got into signal processing out of need and became a commercial operator out of course of life.

This problem has haunted me for years and I’m trying to do something about it now. Would love some experts and people who’ve done something in this field to collab.


r/MachineLearning • • 1d ago

Discussion What models/harness do you use for ML/RL research and experimentation? [D]

37 Upvotes

I have been using Claude Code for a while now, but it seems it's going to be unsuitable for my current project. I am planning on doing some RL experiments using transformers for a complex N player game with large action/decision space and long term horizons.

Anthropic makes it clear that Claude will sandbag on frontier LLM research, but there are lots of reports on X, Reddit and Hacker News that it's sandbagging and actively sabotaging *regular* ML and RL work. I fear that the techniques I've got planned will definitely trigger some of Anthropic's protections (and Code doesn't make this obvious).

Is anyone having good luck with OpenAI/Codex and the Google Gemini 4 offerings for RL model training? How do DeepSeek 4.1 Flash 1017 and the GLM family models fare in this setting?


r/MachineLearning • • 1d ago

Project Can a tiny encoder catch reasoning flaws like an LLM? Distilling 23-label reasoning judgment into mmBERT-307M and BidirLM-1.7B [P]

6 Upvotes

Write-up + evaluation breakdown: https://elei.io/research/fallacy-encoder/

Live CPU playground & API (/docs): https://didistutter.dev

I trained two small bidirectional encoders — mmBERT-base (307M) and BidirLM-1.7B — to score 23 reasoning and tone flaws in a single forward pass, distilled from GPT-6.1 Sol and benchmarked against an unseen second full-size LLM (DeepSeek V4.1 Flash) as an independent referee.

Evaluation design:

- 3 frozen held-out sets (URL-grouped to avoid thread/page leakage): 501 web val (epoch selection + probability calibration), 1,000 real web test texts, and 400 exam passages across 16 published fallacy datasets.

- Primary metric: Macro Average Precision across all 23 labels.

Main empirical findings:

- BidirLM-1.7B matches/edges out the second full-size LLM on exam passages (0.743 vs. 0.721 Macro AP) and lands at 0.646 vs. 0.693 on open web text (mmBERT-307M distilled: 0.559), while staying quiet on 95% of clean ordinary comments and running in <0.5s on CPU.

- Soft-target distillation matters massively: on the same 7,673 texts, training on the teacher's 0–100 confidence scores instead of binary labels boosted mmBERT-307M by +0.068 Macro AP on web (0.386 -> 0.454) and +0.091 on exam (0.452 -> 0.543).

- Unexpected scaling wall: past 19,673 real texts, adding 12,000 mined comments or 8,208 synthetic examples failed to clearly improve Macro AP.

- Calibration note: per-flaw thresholds fitted on the 501-text val set were noisy (0.06–0.68) and did not beat a single flat cut-off (0.35) on calibrated probabilities.

Main limitation: 11 of the 23 labels have <20 positive examples in the 1,000-text web test set, so tail-class precision remains high-variance.

Curious whether others distilling multi-label LLM judges into encoders have hit a similar ~20k-example plateau, and happy to hear feedback on the eval setup or failure modes on the live demo.


r/MachineLearning • • 1d ago

Research How are teams gating continual model updates without overfitting private evals? [R]

5 Upvotes

Most ML discussion right now is focused on post-training loops, continual RL, and faster model iteration. I have been researching the step right after that: what happens when a shared model keeps getting updated over time, and downstream sites (specific hospitals, tenants, or business units) have to decide whether to accept each new checkpoint without breaking what already works.

We ran a controlled multi-site continual-update study (~100 multi-release trajectories across 4 distinct sites receiving sequential updates to a shared backbone) and ran into four failure modes that surprised us:

  1. Naive local refitting still regresses ~15% of releases. Even when a site refits its local head on its own labelled archive with cross-validated regularization, 14.6% of updates still caused a >0.02 AUC drop on unseen local cases.
  2. Operating thresholds break silently. Raw upstream updates caused 0.14 excess operating-point error relative to an oracle threshold, even when overall ranking looked acceptable.
  3. Upstream regression checks fail as downstream vetoes. Even an upstream early-step canary that detected vendor-head regressions with 0.89–0.90 AUC actually hurt net accuracy when used as a site-level veto, because the upstream check monitors the vendor head rather than the locally adapted system running at the site.
  4. Reusing a private validation panel inflates gains by 40–62%. Repeatedly gating sequential releases against the same ~440-label local holdout set overstated real unseen gains by 40% (+0.0118 reported on the panel vs. +0.0071 actual on unseen cases), and up to 62% on smaller split panels.

We also saw a subtle Day-1 onboarding trap (~6% failure rate): comparing a vendor model out-of-sample against a locally cross-validated fit on a small site archive (160–330 cases) systematically biases toward the vendor model, occasionally locking in a worse-than-random start (0.47 vs. 0.66 AUC).

For people running continually updated models in production (medical, security/SOC, fraud, multi-tenant enterprise, robotics):

  • How are you actually deciding when to promote vs. reject a new checkpoint per site or customer?
  • Do teams just freeze working models and avoid frequent updates, pay for fresh human labels every cycle, or accept some eval overfitting?
  • Are there open tools, papers, or real production patterns tackling this Day-2 release-gating layer well today, or is it mostly custom glue and shadow A/B tests?

Genuinely trying to understand where the field stands on this problem and whether it is a real bottleneck in practice or still mostly a research concern.


r/MachineLearning • • 21h ago

Research Looking for people interested in Mamba/SSM research [R]

1 Upvotes

Hey everyone, I'm a final-year CSE student interested in state-space models, particularly Mamba, mechanistic interpretability, and Earth observation.

I'm trying to build a small independent research group called ALMI Lab. Currently, it's just me, haha.

Some directions I'd like to explore are memory and forgetting in SSMs, spatiotemporal modelling for remote sensing, and SSM–LLM integration.

The idea is to start with small research problems, conduct experiments, share code openly and eventually work towards publications.

Anyone working on similar problems or interested in collaborating? Would love to discuss ideas and learn what others are exploring.


r/MachineLearning • • 1d ago

Discussion Do we really need LLM ACs at ICLR? [D]

58 Upvotes

I am a bit salty. Since the end of the review phase, two ACs sent messages to start a discussion. Both messages summarized the status, asked individual reviewers to take positions/do work, and both were 100% AI generated. Of course these summaries included factual errors.

So now we have LLM papers being reviewed by LLM reviewers, discussed by LLM agents and moderated by LLM ACs. Is it LLMs all the way down?

Where exactly does this involve scientific integrity? What are we even doing here? Don't get me wrong, I understand AC is a lot of work and now with extended length LLM discussions it is borderline impossible to follow the status of a paper, let alone 10. I am painfully aware. But the solution cannot be to outsource the moderation activity to LLMs and let the few remaining human reviewers also correct the wrong AC summary.


r/MachineLearning • • 1d ago

Project What would you build with 4x RTX 5090 GPUs for 2–3 months? [P]

4 Upvotes

Got temporary access to 4x NVIDIA RTX 5090 GPUs for the next 2–3 months before they're moved out due shift in Enterprise strategy.

I'd like to use this opportunity to build something genuinely useful, technically interesting and potentially commercially valuable.

Not interested in generic AI wrappers, chatbots or things that Claude/OpenAI APIs can easily replace. So that in future we can co-host and do the project genuinely

If you had this GPU capacity for 90 days, what would you build?

Open to ambitious ideas, research projects, open-source contributions or entirely unconventional suggestions.

Looking for genuine inspiration from people who work with GPUs, ML and AI infrastructure.


r/MachineLearning • • 22h ago

Project Robot Can Now Upgrade Themselves [P]

0 Upvotes

Found an interesting paper:

An embodied agent built on a language model goes to work with the weights it was given andkeeps them for life. To get better, it needs more training, or reflection, memory, search orprompts that cost every step and are lost when the task changes. Editing weights by reasoning,weight-space programming, could end this, but has stayed with models that only reason or reliedon a far larger commercial model. We introduce the self-upgrading embodied agent, to ourknowledge the first that learns from its own experience by upgrading its own weights on the job,between its tasks, with no training, no gradient, no reward model, no second model, no test-timescaling and no harness or prompt engineering. By day a 27B agent works in a householdenvironment. At night it reads its record, finds many of its steps wasted on replies that reach thetoken limit before any action, traces the habit to one direction in its hidden states, and rewritesone tensor of its weights. An agent that rewrites itself must first never break itself, so it is its ownexaminer: it tests every change against its unchanged self on practice tasks and keeps only whatholds. When an edit holds, the next day it is a better agent, at the same cost per step: overthousands of held-out episodes, 48 fresh seeds a task, its one kept edit makes it completesignificantly more tasks, in fewer steps, with fewer wasted and fewer tokens. This self-improvement is multi-round, stable and continual: through the nights that follow, the upgradeholds, without collapse. Of four sizes of its family, only the 27B agent does this. From here on, anembodied agent need not keep training and inference apart: as it works, it gathers its ownexperience and upgrades itself, with no separate pre-training or post-training and no humanintervention.

Paper: https://arxiv.org/abs/2611.31117

Project page: https://www.jiajunfan.com/projects/self-upgrading/


r/MachineLearning • • 1d ago

Research What a looped transformer actually does inside its loop [R]

32 Upvotes

Hey everyone — with looped transformers showing up in Inkling 2 Mini, varloop, and Z.ai's GLM-5.4 this week, I put together an in-depth visual post on how they actually work under the hood, with interactive diagrams, a minimal PyTorch implementation comparing Inkling's restart-and-message loop vs. GLM-5.4's chain-and-write-gate loop, and experiments opening up the two 26.4B open-weight models pass by pass.

Full post: https://drhb.github.io/blog/posts/looped-transformers/


r/MachineLearning • • 1d ago

Project envscan: static checks for reward hacks in RL environments [P]

4 Upvotes

We just open sourced envscan, a static scanner we built while auditing 90 public RL environments by hand.

It reads an environment's source, never runs it, and flags places where a policy could earn reward without doing the task: graders running in the agent's sandbox, answer keys the agent can read, substring checks that a list of every option passes. When it says "likely", it was right 35 of 36 times on the envs we audited by hand, and it finds about two thirds of what a person found.

Try it: pip install git+https://github.com/ALLENDE123X/envscan, then envscan owner/name

Writeup with every number: https://aginno.dev/blog/we-tried-to-pass-90-rl-environments/

I'd love to hear what you think: what it misses, what it flags that it shouldn't, and what environment formats it should read next.

https://github.com/ALLENDE123X/envscan


r/MachineLearning • • 1d ago

Project TontaubeV1.1 Flash, an open-source, LLM-based TTS model that runs in real time in your browser on CPU [P]

4 Upvotes

We just released TontaubeV1.1 Flash, an open-source TTS model (Apache-2.0) that achieves ~10ms TTFA streaming on consumer GPUs and runs realtime in your browser on CPU (and on some phones!). It is a single-speaker model we distilled from our bigger V1.1 model.

Links

Model Overview

  • A 0.6B model with a Qwen3-0.6B backbone that speaks through our own single-voice codec on top of the VibeVoice decoder. With 4-bit weights it is a download of about 700 MB.
  • One English voice, Marcus. No voice cloning and no style controls.
  • Weights and code are Apache 2.0.
  • It runs on an NVIDIA GPU, on a plain CPU (Linux, Windows, macOS on Apple silicon) and inside Chrome without any server.

How it works

The model speaks through our own codec, an autoencoder built for only this one voice. It packs each frame of VibeVoice latents into just 16 values (through an autoencoder we trained on a single voice), at 7.5 frames per second of speech. The backbone reads the text character by character and predicts those 16 values one frame at a time with a small sampling head (several flow-matching steps). The codec's decoder expands them back into VibeVoice latents, the VibeVoice decoder turns those into 24 kHz audio, and an upsampler raises it to 48 kHz. Additionally, a small detector listens to the audio while it streams. When it detects an artifact, the engine goes back a frame and draws those frames again before they are played (can be disabled for a small increase in generation speed).

Numbers

Where it runsHardwareSpeedTime to first audio
GPU engineRTX 3090about 25-30x real time per stream, over 100x across many streams at onceabout 10 ms
CPU enginedesktop or server CPUabout 2-4x real timeabout 60-150 ms
Chrome on a desktopCPU onlyabout 1.3-2x real timeunder a second
Chrome on a desktopwith the graphics card (WebGPU)about 3-6x real timeabout 0.1-0.2 s

Output is 48 kHz by default. Switching to 24 kHz makes everything faster.

How to try it

The easiest way is the browser demo linked above. It downloads the model once and then runs on your own machine. Nothing you type leaves the browser. Running through WebAssembly costs some performance, so if you hit buffering issues, try the native CPU server through the repo. It comes with a local web UI (uv run tontaube ui, then open http://127.0.0.1:3000).

To run it locally:

git clone https://github.com/craitech/tontaube.git
cd tontaube
uv run python flash/speak.py "Welcome to Tontaube Flash." --wav flash.wav               # NVIDIA GPU
uv run python flash/speak.py --device cpu "Welcome to Tontaube Flash." --wav flash.wav  # CPU
uv run tontaube serve --model flash                                                      # server

The server also answers OpenAI's text-to-speech API at /v1/audio/speech, so tools built for that API work with it unchanged.

Limitations

  • English only, with one voice and no cloning.
  • It is autoregressive, so it can occasionally skip, repeat or mispronounce a word.
  • The browser version needs about 1.2 GB of memory. On an Android phone it reaches about real time for short texts. iPhones may run into issues in the browser.
  • On Linux, Chrome only gives web pages the graphics card after you enable two settings in chrome://flags. Without them it only runs on the CPU.
  • The GPU engine is Linux only for now. On Windows and macOS it runs on the CPU.

A native engine for phones is in development.

Please let me know if you run into any issues. We weren't able to test all possible platforms, so this helps us fix the things we couldn't test ourselves :)


r/MachineLearning • • 2d ago

Research Which token logits rise or fall after a small parameter change? Testing DV-Lens [R]

4 Upvotes

I'm a co-author of DV-Lens. We wanted to test a prediction you can make from a weight matrix: if you perturb a particular parameter direction, which tokens should become more likely on the next step?

We estimate how the output logits respond to changes in each attention or feed-forward module on a reference set of prompts. That gives each parameter column a signed score for every token. We then apply a small perturbation and compare the predicted signs with the changes we actually measure.

Across 720 test cases from nine models, the signs agreed on 98.0% of vocabulary coordinates on average. Predicting the exact top movers was harder. For attention keys, for example, only about 21% of the tokens in the predicted top and bottom 32 also appeared in the corresponding measured sets. I'd be interested in how other people evaluate lenses when the sign is right but the ranking shifts.

Paper and per-module results, Table 2


r/MachineLearning • • 2d ago

Research Research agents set 50 packing problem records [R]

Post image
70 Upvotes

We told a research agent to work on any problem it wanted.

4 days later it had beaten 50 records on packing problems. The current leaderboard can be found here (our results are pending verification from the maintainers).

Our agent spawned 64 sub-agents in total. It approached 2D and 3D packing problems, including circles in triangles, tans in squares, and cubes in cubes. One of them: 376 unit cubes in a cube of side 7 + 1/√2 where the best known was 373.

The full project, including prompts, traces, artifacts, and code is available now: https://openresearch.sh/p/xZeKt3JQPpB7


r/MachineLearning • • 2d ago

Research Structure-first AI execution: Can we determine whether inference is necessary before invoking an LLM? [R]

6 Upvotes

We recently published our research on KORA, an architecture that prioritizes structured execution before model inference.

While much of AI research focuses on improving model capabilities and inference efficiency, we explore a different question: Can unnecessary inference be avoided at the architectural level?

In our controlled 100-task benchmark, KORA avoided 80% of simulated model calls with zero mismatches on deterministic tasks.

These results are limited to the evaluated benchmark and should not be interpreted as production-level cost savings.

We are particularly interested in feedback on:

  • Task classification before inference
  • Deterministic execution versus probabilistic inference
  • Evaluation methodology and benchmark design
  • Generalization to real-world workloads

The paper, implementation, and reproducible benchmarks are publicly available.

Paper: https://arxiv.org/abs/2610.35869

GitHub: https://github.com/Krako-Labs/KORA

Krako Labs: https://krako.xyz

Disclosure: I'm one of the authors and a founder of Krako Labs.


r/MachineLearning • • 2d ago

Project NInfer RTX 4090 – Native CUDA LLM inference on Windows, up to 326 tok/s with Qwen 27B and DFlash2 in short benchmarks [R]

1 Upvotes

Hey everyone,

I've been working on an independently maintained version of NInfer-all, specifically optimized for the RTX 4090 and its SM89 architecture.

The goal is to get as much performance as possible out of a single 24GB GPU while running larger local models, especially for coding and long-context workloads.

I've just released v0.1.4 as a stable, GPU-tested Windows build.

Features:

  • Native C++/CUDA 13.4 inference
  • RTX 4090 / SM89 optimizations
  • DFlash2 and MTP speculative decoding
  • Qwen3.8 27B and Ternary Bonsai 2.5 support
  • Quantized KV cache (rk4v4, rk8v4, etc.)
  • Hybrid prefix caching
  • OpenAI- and Anthropic-compatible APIs
  • Portable Windows binaries
  • Apache 2.0 license

Recent RTX 4090 benchmarks:

Model / BackendDecode
Qwen 27B IQ3_S – No speculation70.38 tok/s
Qwen 27B – MTP K5242.59 tok/s
Qwen 27B – DFlash2 K5257.13 tok/s
Qwen 27B – DFlash2 K7326.41 tok/s
Qwen 27B – DFlash2 K9269.33 tok/s
Bonsai 2.5 PTQ1_0 – MTP K3291.69 tok/s
Bonsai 2.5 PQ2_0 – MTP K3323.88 tok/s

These are short synthetic engine benchmarks with 2048 prompt tokens and 128 timed decode tokens, not guaranteed real-world serving speeds. The methodology and measurement data are publicly available.

I've also built a project website with an interactive VRAM calculator, launch command generator, model downloads, installation guides and benchmark results.

GitHub: https://github.com/spk-c/ninfer-all-rtx4090

Project website: https://spk-c.github.io/ninfer-all-rtx4090/

Benchmarks: https://spk-c.github.io/ninfer-all-rtx4090/benchmarks.html

VRAM calculator: https://spk-c.github.io/ninfer-all-rtx4090/configurator.html

Credit to the original NInfer and NInfer-all developers. This project builds on their work.

I'd love to hear feedback from other RTX 4090 owners, especially people running local coding agents with 64K–192K contexts.

If you try it, please share your results, even if they're worse than expected. I'm interested in finding bottlenecks and improving the engine further.


r/MachineLearning • • 2d ago

Project Time Series Lag Problems [P]

Thumbnail
gallery
2 Upvotes

Hi everyone, I'm having an issue with lags on time series models predicting U.S. housing prices (FHFA HPI as the target) and I can't figure out where they're coming from (I'm no expert by any means). I've hand-built simpler models, but I'm using Claude Code for this project because it's larger. I've collected over 600 features: global, national (40 countries), and metro (393 U.S. metros). The attached table shows the different models we've tried - starting simple'ish and moving to building our own hierarchical transformer. The problem (the attached charts show an example) is that all the forecasts significantly lag the actual observations - ON ALL THE DIFFERENT MODELS by roughly the same amount. A 1-year forecast lags actuals by about 4-5 quarters. A 2-year forecast lags actuals by about 8-9 quarters. Same with 3- and 5-year (charts attached). On all runs. So the lag is pretty much the exact forecast horizon. I've experienced late calls on turns before, but nothing so consistent across all model types. So I'm pretty sure I'm doing something wrong, but don't know what. Any ideas or help would be appreciated.


r/MachineLearning • • 3d ago

Research Letting each attention head choose which earlier heads it reads from, per token (LoomFormer) [R]

Thumbnail
gallery
38 Upvotes

In a Transformer, a head chooses which tokens to attend to, but which earlier heads it reads from is fixed by the weights once training is done. When two circuits share heads, the only thing the model can do per token is switch a whole head off, usually by parking its attention on a sink token.

We tried making that second choice per token too. Each token carries a small matrix next to the residual stream (2n slots, each as wide as one head). Heads write their outputs into slots, later heads read from slots, and the read/write addresses are computed from the residual stream at every token. The q, k and v of ordinary attention are then read from this matrix instead of from the residual stream. This vertical attention (warp) is interwoven with the conventional horizontal attention (weft), and the wiring pattern is controlled by the residual stream, working just like a drawloom.

Trained on the same 300B Pile tokens as Pythia with the same parameter budget, the 2.8B model ends up level with Pythia-12B on a 10-task average: 59.9 vs 59.9 zero-shot, 61.6 vs 60.8 five-shot, also significantly outperforms mHC. In layers 17-32 of Pythia-2.8B only 23% of heads are attending to something other than a sink token; in ours it is 74%.

The cost: FLOPs go up by 2-4%, but wall-clock is 8-16% slower than a plain Transformer even with fused kernels, because of memory traffic on the matrix and many small projections. The largest model we trained is 2.8B.

The paper is "Rewirable Circuits in Transformers with Loom Attention", arXiv 2611.30634. Code and the 2.8B weights are public.

Static residual (Transformer) -> static dense (Denseformer) -> dynamic dense (HC/mHC, AttnRes) -> dynamic dense per QKV input (our MUDDFormer) -> dynamic dense per head (our LoomFormer). Can we advance further along the residual enhancement axis? How far away are we from the ultimate architecture?