# Huggingface DecisionTransformer - Reward Calculation

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-decisiontransformer-reward-calculation%2F23176%3E%5C
**Category:** Beginners\
**Created:** [September 15, 2022, 11:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-decisiontransformer-reward-calculation%2F23176 "2022-09-15T11:53:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![suleymanozdel](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@suleymanozdel](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsuleymanozdel)%5C
**Post date:** [September 15, 2022, 11:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingface-decisiontransformer-reward-calculation%2F23176%2F1 "2022-09-15T11:53:55Z")

</div>

Hi guys,

I am using Huggingface Decision Transformer Model (DecisionTransformerModel) , I would like to get the predicted action and calculate and update return in each step according to predicted action. When I look to the source code, I couldn’t see where the given rewards are processed. Thanks in advance 🙂
