# Train models by publishing "model training" like for transforms?

**URL:** <https://community.palantir.com/t/train-models-by-publishing-model-training-like-for-transforms/467>\
**Category:** Ask the Community\
**Tags:** code-workspaces\
**Created:** [June 20, 2024, 7:02am UTC](https://community.palantir.com/t/train-models-by-publishing-model-training-like-for-transforms/467 "2024-06-20T07:02:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![VincentF](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@VincentF](https://community.palantir.com/u/VincentF)\
**Post date:** [June 20, 2024, 7:02am UTC](https://community.palantir.com/t/train-models-by-publishing-model-training-like-for-transforms/467/1 "2024-06-20T07:02:15Z")

</div>

In Code workspace, in a Jupyter code notebook, I can publish a given dataset output as a “Transform output”, which makes my python code to execute like a normal transform, in the background, to produce the output dataset that I want.

Does the same exist for model training ?  
Can I publish a model training as a “transform” and run that in the background instead of in my user’s code workspace instance ?

Also, as that’s the goal, if the data volume is too high and the build too slow, should I use code repository instead ?

---

<div class="post-metadata">

**Author:** ![tucker](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@tucker](https://community.palantir.com/u/tucker)\
**Post date:** [June 20, 2024, 1:29pm UTC](https://community.palantir.com/t/train-models-by-publishing-model-training-like-for-transforms/467/2 "2024-06-20T13:29:22Z")

</div>

Hey @VincentF, it is currently not possible to publish a model as a transform output in code workspaces. We are working on adding support for this, and it should be available in the next few weeks.

In terms of data volume being too high, its really up to how much compute resources you allocate to the code workspace.

---

<div class="post-metadata">

**Author:** ![tucker](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@tucker](https://community.palantir.com/u/tucker)\
**Post date:** [July 15, 2024, 8:25pm UTC](https://community.palantir.com/t/train-models-by-publishing-model-training-like-for-transforms/467/3 "2024-07-15T20:25:09Z")

</div>

Posting back, this is now supported! [See the documentation for details](https://www.palantir.com/docs/foundry/code-workspaces/training-models/#transforms)
