Skip to content
Tools · Sep 12, 2026

Hugging Face publishes open pipeline to train a coding model to paint watercolors via reinforcement learning

Open-source RL pipeline uses TRL and OpenEnv to train Qwen3.5-35B-A3B to generate JavaScript that renders watercolor paintings, with all artifacts on the Hugging Face Hub.

Trust79
HypeLow hype

1 source · cross-referenced

ShareXLinkedInEmail
TL;DR
  • Hugging Face published an open-source reinforcement learning pipeline to train a coding model to paint watercolors by generating JavaScript code that renders images via the p5.brush library.

Hugging Face published an end-to-end, open-source reinforcement learning pipeline that trains a coding model to paint watercolors by generating JavaScript code using the p5.brush library. The pipeline uses TRL and OpenEnv, with all artifacts—training scripts, RL environment, scorer model, and trained models—published on the Hugging Face Hub.

The project reproduces a prior art project by Surya Narreddi, who demonstrated watercolor paintings generated by a language model writing JavaScript. The open implementation includes a reference pool dataset, an RL environment, training scripts, and trained models, all available in a dedicated Hugging Face collection. The pipeline can be launched with a single command using Hugging Face Jobs, Spaces for the RL environment and scorer model, and Inference Providers for the pairwise judge.

The reward function combines four terms: a gate to ensure the sketch compiles and renders without cheating, a length penalty, a pairwise judge comparing the candidate painting to four randomly selected references from the pool, and HPSv3, an open 7B preference model that scores aesthetic preference. The pairwise judge is Qwen3-VL-30B-A3B-Instruct, called via Hugging Face Inference Providers.

Three training runs were conducted with different weight splits between the pairwise judge and HPSv3: judge-led (0.60/0.30), hps-led (0.30/0.60), and hps-only (0.00/0.90). The runs were stopped at steps 110, 110, and 60 respectively. The project’s goal is to explore reinforcement learning over aesthetic preference, where correctness is not verifiable and the reward is shaped by curated taste encoded in the pool and models.

The author notes the project’s focus on reproducing the original idea with open artifacts, including a hand-rated pool and three reward mixes for comparison. All code, models, and training configurations are published, and the pipeline runs entirely on Hugging Face infrastructure.

Sources
  1. 01Hugging Face — Training a coding model to paint watercolours with TRL and OpenEnv
Also on Tools

Stories may contain errors. Dispatch is assembled with AI assistance and curated by human editors; despite the trust-score filter, mistakes happen. We correct publicly — every article links to its revision history. Nothing here is financial, legal, or medical advice. Verify before relying on any claim.

© 2026 Dispatch. No ads. No sponsorships. No paid placement. Reader-supported via Ko-fi.

Built by a person who cares about honest AI news.