Skip to content

Conversation

@Soralsei
Copy link

This is not an actual PR as of yet.

I have tried adding a CrossQ agent to this library without much success and require some assistance, especially with the Jax implementation as I have never actually used the framework and am having trouble understanding how it works behind the scenes.

The following links are provided as reference implementations of the algorithm in another library:

  • github.com/Stable-Baselines-Team/stable-baselines3-contrib/tree/master/sb3_contrib/crossq for a torch implementation
  • https://github.com/adityab/CrossQ for a Jax implementation

Both of these implementations are based on the Stable-baselines3 RL library which can be found here : https://github.com/DLR-RM/stable-baselines3

This PR provides an initial but incomplete Jax implementation as well as a complete but unstable Torch implementation. However I cannot, for the life of me, find what is wrong with the Torch implementation (the agent does not seem to be learning, and the mean reward spikes up and down erratically).

@Soralsei
Copy link
Author

Soralsei commented Mar 4, 2025

@Toni-SM Here is the pull request we discussed, if you could give it a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant