-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from all.experiments import SlurmExperiment | ||
from all.presets import atari | ||
from all.environments import AtariEnvironment | ||
|
||
def main(): | ||
agents = [ | ||
atari.a2c(), | ||
atari.c51(), | ||
atari.dqn(), | ||
atari.ddqn(), | ||
atari.ppo(), | ||
atari.rainbow(), | ||
] | ||
envs = [AtariEnvironment(env, device='cuda') for env in ['BeamRider', 'Breakout', 'Pong', 'Qbert', 'SpaceInvaders']] | ||
SlurmExperiment(agents, envs, 10e6, sbatch_args={ | ||
'partition': '1080ti-long' | ||
}) | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import pybullet | ||
import pybullet_envs | ||
from all.experiments import SlurmExperiment | ||
from all.presets.continuous import ddpg, ppo, sac | ||
from all.environments import GymEnvironment | ||
|
||
def main(): | ||
device = 'cuda' | ||
|
||
frames = int(1e7) | ||
|
||
agents = [ | ||
ddpg(last_frame=frames), | ||
ppo(last_frame=frames), | ||
sac(last_frame=frames) | ||
] | ||
|
||
envs = [GymEnvironment(env, device) for env in [ | ||
'AntBulletEnv-v0', | ||
"HalfCheetahBulletEnv-v0", | ||
'HumanoidBulletEnv-v0', | ||
'HopperBulletEnv-v0', | ||
'Walker2DBulletEnv-v0' | ||
]] | ||
|
||
SlurmExperiment(agents, envs, frames, sbatch_args={ | ||
'partition': '1080ti-long' | ||
}) | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters