Skip to content

tobiabir/online-dt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

online-dt

This repository contains the Pytorch implementation of Online Decision Transformer by Qinqing Zheng, Amy Zhang, and Aditya Grover.

If you use this code for your research, please cite us as:

@inproceedings{zheng2022online,
  title={Online decision transformer},
  author={Zheng, Qinqing and Zhang, Amy and Grover, Aditya},
  booktitle={international conference on machine learning},
  pages={27042--27059},
  year={2022},
  organization={PMLR}
}

Install

pip install -e .

Example

To train an ODT agent for hopper with the medium-v2 dataset:

python src/main.py

This will produce the exp folder, where all the outputs are going to be logged including tensorboard blobs. One can attach a tensorboard to monitor training by running:

tensorboard --logdir exp

License

The majority of online-dt is licensed under CC-BY-NC, however portions of the project are available under separate license terms:

  • D4RL dataset - Creative Commons Attribution 4.0 License (CC-BY)
  • D4RL code, transformers, Lamb - Apache 2.0 License
  • stable-baselines3, Gym, decision-transformer - MIT License

About

Online Decision Transformer

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%