lab2d icon indicating copy to clipboard operation
lab2d copied to clipboard

Request: Support for vectorised environments #253

Open AsadJeewa opened this issue 1 year ago • 4 comments

Hi All

Is it possible to run DMLab2d with vectorised environments? I am using CleanRL + Shimmy to run MeltingPot but when I try to use concat_vec_envs_v1 I get error: TypeError: cannot pickle dmlab2d.dmlab2d_pybind.Lab2d object. Is there any other way? I need to train faster as I have limited compute walltime and the easiest way is vectorised environments. Any other methods for optimisation?

AsadJeewa avatar Jul 03 '24 10:07 AsadJeewa

This is also an issue when running Meltingpot + torchrl or Meltingpot + gymnasium for parallelization. Adding support to pickle Lab2d objects would help resolve other issues e.g.: meltingpot, torchrl .

jduquevan avatar Jul 08 '24 19:07 jduquevan

@charlesbeattie: could you maybe have a look?

tkoeppe avatar Jul 09 '24 15:07 tkoeppe

Are ther any updates on this?

AsadJeewa avatar Jul 16 '24 14:07 AsadJeewa

Would it be possible to pickle the settings and construct the environment where needed?

charlesbeattie avatar Jul 16 '24 14:07 charlesbeattie