Introducing Decision Transformers on Hugging Face ๐Ÿค—

๐Ÿ“ฐ Hugging Face Blog

Hugging Face introduces Decision Transformers, a new model for offline reinforcement learning

intermediate Published 28 Mar 2022
Action Steps
  1. Install the Transformers package
  2. Load the Decision Transformer model
  3. Create an environment for the model
  4. Use the autoregressive prediction function
  5. Evaluate the model's performance
Who Needs to Know This

AI engineers and researchers can utilize Decision Transformers to improve decision-making in complex environments, while data scientists can apply this model to various applications such as robotics and game playing

Key Insight

๐Ÿ’ก Decision Transformers enable offline reinforcement learning by leveraging transformer architectures

Share This
๐Ÿค– Introducing Decision Transformers on Hugging Face! ๐Ÿš€ Offline reinforcement learning just got easier

Key Takeaways

Hugging Face introduces Decision Transformers, a new model for offline reinforcement learning

Full Article

Published Time: 2022-03-28T00:00:00.063Z

# Introducing Decision Transformers on Hugging Face ๐Ÿค—

[![Image 1: Hugging Face's logo](https://huggingface.co/front/assets/huggingface_logo-noborder.svg)Hugging Face](https://huggingface.co/)

* [Models](https://huggingface.co/models)
* [Datasets](https://huggingface.co/datasets)
* [Spaces](https://huggingface.co/spaces)
* [Buckets new](https://huggingface.co/storage)
* [Docs](https://huggingface.co/docs)
* [Enterprise](https://huggingface.co/enterprise)
* [Pricing](https://huggingface.co/pricing)
*
*
* * *

* [Log In](https://huggingface.co/login)
* [Sign Up](https://huggingface.co/join)

[Back to Articles](https://huggingface.co/blog)

# [](https://huggingface.co/blog/decision-transformers#introducing-decision-transformers-on-hugging-face-%F0%9F%A4%97) Introducing Decision Transformers on Hugging Face ๐Ÿค—

Published March 28, 2022

[Update on GitHub](https://github.com/huggingface/blog/blob/main/decision-transformers.md)

[- [x] Upvote 10](https://huggingface.co/login?next=%2Fblog%2Fdecision-transformers)
* [![Image 2](https://huggingface.co/avatars/2b1f7fcbf2bd18ddca50b88a1f55eca4.svg)](https://huggingface.co/gmossy "gmossy")
* [![Image 3](https://huggingface.co/avatars/84ce9f3061d10f4326820596ae57ac4c.svg)](https://huggingface.co/jufan "jufan")
* [![Image 4](https://cdn-avatars.huggingface.co/v1/production/uploads/6343314d07fa6ff0c224eac3/2SmoBIaWTMui8phWB4Di5.jpeg)](https://huggingface.co/NeoCodes-dev "NeoCodes-dev")
* [![Image 5](https://cdn-avatars.huggingface.co/v1/production/uploads/63909386d90cd466b3c5fd7a/yGyCtt9lkueQZui8uHd31.jpeg)](https://huggingface.co/KiraPGR "KiraPGR")
* [![Image 6](https://huggingface.co/avatars/c8cc724dc19f3145a8a13ece6ed4bdd0.svg)](https://huggingface.co/cpgrant "cpgrant")
* [![Image 7](https://huggingface.co/avatars/d8b71598618cdd73cda40b0ecd8caeaf.svg)](https://huggingface.co/neeldevenshah "neeldevenshah")
* +4

[![Image 8: Edward Beeching's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/1644220542819-noauth.jpeg)](https://huggingface.co/edbeeching)

[Edward Beeching edbeeching Follow](https://huggingface.co/edbeeching)

[![Image 9: Thomas Simonini's avatar](https://cdn-avatars.huggingface.co/v1/production/uploads/1632748593235-60cae820b1c79a3e4b436664.jpeg)](https://huggingface.co/ThomasSimonini)

[Thomas Simonini ThomasSimonini Follow](https://huggingface.co/ThomasSimonini)

* [What is Offline Reinforcement Learning?](https://huggingface.co/blog/decision-transformers#what-is-offline-reinforcement-learning "What is Offline Reinforcement Learning?")

* [Introducing Decision Transformers](https://huggingface.co/blog/decision-transformers#introducing-decision-transformers "Introducing Decision Transformers")

* [Using the Decision Transformer in ๐Ÿค— Transformers](https://huggingface.co/blog/decision-transformers#using-the-decision-transformer-in-%F0%9F%A4%97-transformers "Using the Decision Transformer in ๐Ÿค— Transformers")
* [Install the package](https://huggingface.co/blog/decision-transformers#install-the-package "Install the package")

* [Loading the model](https://huggingface.co/blog/decision-transformers#loading-the-model "Loading the model")

* [Creating the environment](https://huggingface.co/blog/decision-transformers#creating-the-environment "Creating the environment")

* [Autoregressive prediction function](https://huggingface.co/blog/decision-transformers#autoregressive-prediction-function "Autoregressive prediction function")

* [Evaluating the model](https://huggingface.co/blog/decision-transformers#evaluating-the-model "Evaluating the model")

* [Conclusion](https://huggingface.co/blog/decision-transformers#conclusion "Conclusion")

* [Whatโ€™s next?](https://huggingface.co/blog/decision-transformers#whats-next "Whatโ€™s next?")

* [References](https://huggingface.co/blog/decision-transformers#references "References")
* [Acknowledgement
Read full article โ†’ โ† Back to Reads

Related Videos

5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Exploring AI Toolkit for VS Code | Download/Fine Tune/Inference LLM & Play with them on Local Server
Exploring AI Toolkit for VS Code | Download/Fine Tune/Inference LLM & Play with them on Local Server
Dewiride Technologies
2. Integrating Azure OpenAI GPT-4o with Microsoft Teams Bot having Memory Context and Streaming
2. Integrating Azure OpenAI GPT-4o with Microsoft Teams Bot having Memory Context and Streaming
Dewiride Technologies
1. Creating Microsoft Teams ChatGPT Enabled Bot using Microsoft Bot Framework SDK C# | Setup Project
1. Creating Microsoft Teams ChatGPT Enabled Bot using Microsoft Bot Framework SDK C# | Setup Project
Dewiride Technologies
Python Fast API for Azure OpenAI ChatGPT 4o Question Answering | Detailed Beginner Azure AI Tutorial
Python Fast API for Azure OpenAI ChatGPT 4o Question Answering | Detailed Beginner Azure AI Tutorial
Dewiride Technologies
Experimental POC: Interacting with MySQL Database using LLM OpenAI ChatGPT in Natural Language
Experimental POC: Interacting with MySQL Database using LLM OpenAI ChatGPT in Natural Language
Dewiride Technologies