Coder Social home page Coder Social logo

hdt's Introduction

Hierarchical decision transformer
André Correia, Luís A. Alexandre
Paper: https://ieeexplore.ieee.org/abstract/document/10342230/

Install Anaconda

sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

curl -O https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh

bash Anaconda3-2024.02-1-Linux-x86_64.sh

conda init

Create and activate environment

conda create --name HDT

conda activate HDT

Install Dependencies

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

pip3 install numpy

pip3 install transformers

pip install git+https://github.com/Farama-Foundation/d4rl@master#egg=d4rl

Train Decision Transformer

python3 train_dt.py --env_name 'hopper' --dataset medium-replay --batch_size 64 --d_model 128 --n_layer 3 --n_head 1 --K 20 --iterations 10000 --eval_every 1000

Train Hierarchical Decision Transformer

python3 train_hdt.py --env_name 'hopper' --dataset medium-replay --batch_size 64 --high_d_model 128 --high_n_layer 3 --high_n_head 1 --low_d_model 128 --low_n_layer 3 --low_n_head 1 --K 20 --iterations 10000 --eval_every 1000

Citation

If you use this codebase, or otherwise found our work valuable, please cite HDT:

@inproceedings{correia2023hierarchical,
  title={Hierarchical decision transformer},
  author={Correia, Andr{\'e} and Alexandre, Lu{\'\i}s A},
  booktitle={2023 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS)},
  pages={1661--1666},
  year={2023},
  organization={IEEE}
}

hdt's People

Contributors

meowatthemoon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.