# Training a coding model to paint watercolours with TRL and OpenEnv

DevFeed: [Training a coding model to paint watercolours with TRL and OpenEnv](<https://devfeed.tech/articles/training-a-coding-model-to-paint-watercolours-with-trl-and-openenv-7531.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/train-to-paint-with-code>)

Author: Sergio Paniego

Published: 2026-09-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Hugging Face - Blog](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [openenv](<https://devfeed.tech/topics/openenv.md>), [coding](<https://devfeed.tech/topics/coding.md>), [Language models](<https://devfeed.tech/topics/language-models.md>), [hugging face](<https://devfeed.tech/topics/hugging-face.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [jobs](<https://devfeed.tech/topics/jobs.md>), [dataset](<https://devfeed.tech/topics/dataset.md>)

Tags: [ai-art](<https://devfeed.tech/tags/ai-art.md>), [coding](<https://devfeed.tech/tags/coding.md>), [grpo](<https://devfeed.tech/tags/grpo.md>), [guide](<https://devfeed.tech/tags/guide.md>), [hugging-face](<https://devfeed.tech/tags/hugging-face.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jobs](<https://devfeed.tech/tags/jobs.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [openenv](<https://devfeed.tech/tags/openenv.md>), [rl](<https://devfeed.tech/tags/rl.md>), [spaces](<https://devfeed.tech/tags/spaces.md>), [training](<https://devfeed.tech/tags/training.md>), [trl](<https://devfeed.tech/tags/trl.md>)

## AI overview

A tutorial describing an open reproduction of a reinforcement-learning pipeline that trains a coding model to create watercolor-like paintings by writing JavaScript with p5.brush. It uses TRL and OpenEnv, with datasets, environments, training scripts, models, and other artifacts published on Hugging Face.

## Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.