NextFin

ModelBest Opens ForgeStencil for Stencil Optimization

Summarized by NextFin AI
  • ModelBest and the OpenBMB community open-sourced ForgeStencil, described as the first AI system that automates both stencil optimization research and deployment in industrial and scientific software.
  • ForgeStencil combines a Kernel Agent and an App Agent to generate optimized CUDA stencil operators, identify application hotspots, verify correctness, and integrate changes across 100 validated applications.
  • Against existing production GPU code, the system achieved a 1.41x median end-to-end speedup and 2.05x geometric-mean speedup, with gains up to nearly 100x and 89% of cases above 1.05x.
  • The Apache-2.0 release supports runtime dispatch across A100, H100, and B200 architectures, extending ForgeTrain and reducing expert stencil tuning from weeks to automated workflows completed in days.

NextFin News — ModelBest and the OpenBMB community open-sourced ForgeStencil on Tuesday, the first AI system to automate both research and deployment of stencil optimizations in real industrial and scientific software.

The system pairs a Kernel Agent that researches and generates optimized CUDA stencil operators with an App Agent that locates hotspots, forges application-specific operators from the resulting knowledge base, verifies correctness and integrates the changes. It has completed end-to-end validation on 100 applications spanning oil and gas, electromagnetics, medical imaging, computational fluid dynamics, climate modeling, astrophysics, materials science and high-performance computing benchmarks. Measured against each application’s own production GPU code, the system delivered a median 1.41× end-to-end speedup and a geometric-mean 2.05× speedup, with individual gains ranging up to nearly 100× and 89 percent of cases exceeding 1.05×. All results are reproducible from a fresh clone under an auditable harness that interleaves timing and applies the program’s native correctness checks.

Stencil computations form the computational core of many simulation and modeling workloads, yet prior tools automated only code generation while leaving strategy discovery and integration to human experts. ForgeStencil removes that remaining manual loop, packaging operators under Apache-2.0 with runtime dispatch across A100, H100 and B200 architectures and shipping only integration patches rather than third-party source. The release extends ModelBest’s earlier ForgeTrain framework and supplies operators and harnesses that industrial and scientific software teams can apply directly, converting weeks of expert tuning into automated cycles measured in days.

Explore more exclusive insights at nextfin.ai.

Search
NextFinNextFin
NextFin.Al
No Noise, only Signal.
Open App