zhangpaipai commited on
Commit
222856b
1 Parent(s): 02fd7c6

Upload policy_config.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. policy_config.py +104 -0
policy_config.py ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ exp_config = {
2
+ 'env': {
3
+ 'manager': {
4
+ 'episode_num': float("inf"),
5
+ 'max_retry': 1,
6
+ 'retry_type': 'reset',
7
+ 'auto_reset': True,
8
+ 'step_timeout': None,
9
+ 'reset_timeout': None,
10
+ 'retry_waiting_time': 0.1,
11
+ 'cfg_type': 'BaseEnvManagerDict'
12
+ },
13
+ 'stop_value': 10000000000,
14
+ 'n_evaluator_episode': 5,
15
+ 'env_id': 'BipedalWalker-v3',
16
+ 'collector_env_num': 8,
17
+ 'evaluator_env_num': 5,
18
+ 'act_scale': True,
19
+ 'rew_clip': True
20
+ },
21
+ 'policy': {
22
+ 'model': {
23
+ 'twin_critic': True,
24
+ 'action_space': 'reparameterization',
25
+ 'obs_shape': 24,
26
+ 'action_shape': 4,
27
+ 'actor_head_hidden_size': 128,
28
+ 'critic_head_hidden_size': 128
29
+ },
30
+ 'learn': {
31
+ 'learner': {
32
+ 'train_iterations': 1000000000,
33
+ 'dataloader': {
34
+ 'num_workers': 0
35
+ },
36
+ 'log_policy': True,
37
+ 'hook': {
38
+ 'load_ckpt_before_run': '',
39
+ 'log_show_after_iter': 1000,
40
+ 'save_ckpt_after_iter': 10000,
41
+ 'save_ckpt_after_run': True
42
+ },
43
+ 'cfg_type': 'BaseLearnerDict'
44
+ },
45
+ 'update_per_collect': 64,
46
+ 'batch_size': 256,
47
+ 'learning_rate_q': 0.0003,
48
+ 'learning_rate_policy': 0.0003,
49
+ 'learning_rate_alpha': 0.0003,
50
+ 'target_theta': 0.005,
51
+ 'discount_factor': 0.99,
52
+ 'alpha': 0.2,
53
+ 'auto_alpha': True,
54
+ 'log_space': True,
55
+ 'target_entropy': None,
56
+ 'ignore_done': False,
57
+ 'init_w': 0.003
58
+ },
59
+ 'collect': {
60
+ 'collector': {},
61
+ 'n_sample': 64,
62
+ 'unroll_len': 1,
63
+ 'collector_logit': False
64
+ },
65
+ 'eval': {
66
+ 'evaluator': {
67
+ 'eval_freq': 1000,
68
+ 'render': {
69
+ 'render_freq': -1,
70
+ 'mode': 'train_iter'
71
+ },
72
+ 'cfg_type': 'InteractionSerialEvaluatorDict',
73
+ 'stop_value': 10000000000,
74
+ 'n_episode': 5
75
+ }
76
+ },
77
+ 'other': {
78
+ 'replay_buffer': {
79
+ 'replay_buffer_size': 300000
80
+ }
81
+ },
82
+ 'on_policy': False,
83
+ 'cuda': True,
84
+ 'multi_gpu': False,
85
+ 'bp_update_sync': True,
86
+ 'traj_len_inf': False,
87
+ 'type': 'sac',
88
+ 'priority': False,
89
+ 'priority_IS_weight': False,
90
+ 'random_collect_size': 10000,
91
+ 'transition_with_policy_data': True,
92
+ 'multi_agent': False,
93
+ 'cfg_type': 'SACPolicyDict'
94
+ },
95
+ 'exp_name': 'BipedalWalker-v3-SAC',
96
+ 'seed': 0,
97
+ 'wandb_logger': {
98
+ 'gradient_logger': True,
99
+ 'video_logger': True,
100
+ 'plot_logger': True,
101
+ 'action_logger': True,
102
+ 'return_logger': False
103
+ }
104
+ }