River API Now Trains LLMs With Any Custom PyTorch Loss, Compiled and Run at Scale on Its GPUs

ibab · x · 2026-10-30

River AI announced that its training API now supports arbitrary custom loss functions for LLM training: you write the loss in PyTorch locally, and the River Symbolic Engine compiles and executes it efficiently across its GPU cluster.

How it works:

Why it matters: most post-training APIs force clients to compute custom losses locally, adding redundant communication and complexity. The post calls out Tinker, citing up to 1.5× the FLOPs and 3× the wall-clock time of a standard forward-backward pass.

A worked example shows decision models — general-purpose classifiers returning per-label probabilities — usable for things like agent action approval or content moderation.

Original post →

More from Infra

Infra channel →