# An example on training the decision transformer from scratch

**URL:** <https://discuss.huggingface.co/t/an-example-on-training-the-decision-transformer-from-scratch/17932>\
**Category:** Models\
**Created:** [May 13, 2022, 4:37pm UTC](https://discuss.huggingface.co/t/an-example-on-training-the-decision-transformer-from-scratch/17932 "2022-05-13T16:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrecu](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pierrecu](https://discuss.huggingface.co/u/pierrecu)\
**Post date:** [May 13, 2022, 4:37pm UTC](https://discuss.huggingface.co/t/an-example-on-training-the-decision-transformer-from-scratch/17932/1 "2022-05-13T16:37:36Z")

</div>

Hello there,  
got really excited about the newly available Decision Transformer!  
Is there any plan to make some examples on how to train it with a custom environment?

Thanks

---

<div class="post-metadata">

**Author:** ![magokeanu](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@magokeanu](https://discuss.huggingface.co/u/magokeanu)\
**Post date:** [September 2, 2022, 8:20pm UTC](https://discuss.huggingface.co/t/an-example-on-training-the-decision-transformer-from-scratch/17932/2 "2022-09-02T20:20:24Z")

</div>

Hi @pierrecu!

Did you find some resource to do this?

Cheers!

---

<div class="post-metadata">

**Author:** ![bacey](https://avatars.discourse-cdn.com/v4/letter/b/ad7895/32.png) [@bacey](https://discuss.huggingface.co/u/bacey)\
**Post date:** [September 14, 2022, 4:09pm UTC](https://discuss.huggingface.co/t/an-example-on-training-the-decision-transformer-from-scratch/17932/3 "2022-09-14T16:09:53Z")

</div>

Hi!  
I bet you’ve already seen this: [Train your first Decision Transformer](https://huggingface.co/blog/train-decision-transformers)  
Thanks a lot, @edbeeching and @ThomasSimonini !
