transformers.js icon indicating copy to clipboard operation
transformers.js copied to clipboard

Support decision transformers

Open emilx-cell opened this issue 1 year ago • 2 comments

Model description

Hi, I would love to see decision transformers added to the list of supported models: https://huggingface.co/docs/transformers/model_doc/decision_transformer Thank you, EM.

Prerequisites

  • [X] The model is supported in Transformers (i.e., listed here)
  • [ ] The model can be exported to ONNX with Optimum (i.e., listed here)

Additional information

An example decision model: https://huggingface.co/edbeeching/decision_transformer_atari

Your contribution

I apologize, but this is beyond my coding skills.

emilx-cell avatar Jun 06 '24 09:06 emilx-cell

Here we go: https://github.com/xenova/transformers.js/pull/795. + list of converted models: https://huggingface.co/models?library=transformers.js&other=decision_transformer&sort=trending

I will add example Transformers.js code now too. I'll also look at the model you linked.

xenova avatar Jun 06 '24 15:06 xenova

Thank you, looks great! amazing package.

emilx-cell avatar Jun 07 '24 08:06 emilx-cell