zhangpaipai commited on
Commit
d5dd864
1 Parent(s): 40c7ec0

Upload policy_config.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. policy_config.py +107 -0
policy_config.py ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 'obs_shape': 24,
25
+ 'action_shape': 4,
26
+ 'action_space': 'regression',
27
+ 'actor_head_hidden_size': 400,
28
+ 'critic_head_hidden_size': 400
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_actor': 0.0003,
48
+ 'learning_rate_critic': 0.0003,
49
+ 'ignore_done': False,
50
+ 'target_theta': 0.005,
51
+ 'discount_factor': 0.99,
52
+ 'actor_update_freq': 2,
53
+ 'noise': True,
54
+ 'noise_sigma': 0.2,
55
+ 'noise_range': {
56
+ 'min': -0.5,
57
+ 'max': 0.5
58
+ }
59
+ },
60
+ 'collect': {
61
+ 'collector': {},
62
+ 'unroll_len': 1,
63
+ 'noise_sigma': 0.1,
64
+ 'n_sample': 64
65
+ },
66
+ 'eval': {
67
+ 'evaluator': {
68
+ 'eval_freq': 5000,
69
+ 'render': {
70
+ 'render_freq': -1,
71
+ 'mode': 'train_iter'
72
+ },
73
+ 'cfg_type': 'InteractionSerialEvaluatorDict',
74
+ 'stop_value': 10000000000,
75
+ 'n_episode': 5
76
+ }
77
+ },
78
+ 'other': {
79
+ 'replay_buffer': {
80
+ 'replay_buffer_size': 300000
81
+ }
82
+ },
83
+ 'on_policy': False,
84
+ 'cuda': True,
85
+ 'multi_gpu': False,
86
+ 'bp_update_sync': True,
87
+ 'traj_len_inf': False,
88
+ 'type': 'td3',
89
+ 'priority': False,
90
+ 'priority_IS_weight': False,
91
+ 'random_collect_size': 10000,
92
+ 'transition_with_policy_data': False,
93
+ 'action_space': 'continuous',
94
+ 'reward_batch_norm': False,
95
+ 'multi_agent': False,
96
+ 'cfg_type': 'TD3PolicyDict'
97
+ },
98
+ 'exp_name': 'BipedalWalker-v3-TD3',
99
+ 'seed': 0,
100
+ 'wandb_logger': {
101
+ 'gradient_logger': True,
102
+ 'video_logger': True,
103
+ 'plot_logger': True,
104
+ 'action_logger': True,
105
+ 'return_logger': False
106
+ }
107
+ }