LLParallax commited on
Commit
673f32c
1 Parent(s): 37405ab

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ sf_log.txt filter=lfs diff=lfs merge=lfs -text
.summary/0/events.out.tfevents.1704305846.t0046 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bf8ffc9068426ad6151a4ef08259e40b2e6d781e5556eb493709f10f273ef53
3
+ size 7891513
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sample-factory
3
+ tags:
4
+ - deep-reinforcement-learning
5
+ - reinforcement-learning
6
+ - sample-factory
7
+ model-index:
8
+ - name: APPO
9
+ results:
10
+ - task:
11
+ type: reinforcement-learning
12
+ name: reinforcement-learning
13
+ dataset:
14
+ name: nethack_challenge
15
+ type: nethack_challenge
16
+ metrics:
17
+ - type: mean_reward
18
+ value: 2228.00 +/- 0.00
19
+ name: mean_reward
20
+ verified: false
21
+ ---
22
+
23
+ A(n) **APPO** model trained on the **nethack_challenge** environment.
24
+
25
+ This model was trained using Sample-Factory 2.0: https://github.com/alex-petrenko/sample-factory.
26
+ Documentation for how to use Sample-Factory can be found at https://www.samplefactory.dev/
27
+
28
+
29
+ ## Downloading the model
30
+
31
+ After installing Sample-Factory, download the model with:
32
+ ```
33
+ python -m sample_factory.huggingface.load_from_hub -r LLParallax/sample_factory_human_monk
34
+ ```
35
+
36
+
37
+ ## Using the model
38
+
39
+ To run the model after download, use the `enjoy` script corresponding to this environment:
40
+ ```
41
+ python -m <path.to.enjoy.module> --algo=APPO --env=nethack_challenge --train_dir=./train_dir --experiment=sample_factory_human_monk
42
+ ```
43
+
44
+
45
+ You can also upload models to the Hugging Face Hub using the same script with the `--push_to_hub` flag.
46
+ See https://www.samplefactory.dev/10-huggingface/huggingface/ for more details
47
+
48
+ ## Training with this model
49
+
50
+ To continue training with this model, use the `train` script corresponding to this environment:
51
+ ```
52
+ python -m <path.to.train.module> --algo=APPO --env=nethack_challenge --train_dir=./train_dir --experiment=sample_factory_human_monk --restart_behavior=resume --train_for_env_steps=10000000000
53
+ ```
54
+
55
+ Note, you may have to adjust `--train_for_env_steps` to a suitably high number as the experiment will resume at the number of steps it concluded at.
56
+
checkpoint_p0/best_000470117_1925599232_reward_4324.130.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d7c1c2ad85ea1f1f0c673c99860cf1d4c8c64ef204173e9f69b73d39b8e4ff4
3
+ size 74688762
checkpoint_p0/checkpoint_000488106_1999282176.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:681d8c968faea7809a19fa6db545e2dc124367bc6ca231cb580d5179ec6af772
3
+ size 74689506
checkpoint_p0/checkpoint_000488283_2000007168.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f7ecfe1e842252f39b7e93b2b63257995271d748b2e5970f0ed24e745c4f1ae
3
+ size 74689506
config.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "help": false,
3
+ "algo": "APPO",
4
+ "env": "nethack_challenge",
5
+ "experiment": "default_experiment",
6
+ "train_dir": "/net/tscratch/people/plgbartekcupial/mrunner_scratch/sample_factory_nethack/03_01-17_00-vigilant_hodgkin/2023-12-28-monk-appo_4m9d_2/train_dir",
7
+ "restart_behavior": "resume",
8
+ "device": "gpu",
9
+ "seed": 2,
10
+ "num_policies": 1,
11
+ "async_rl": true,
12
+ "serial_mode": false,
13
+ "batched_sampling": false,
14
+ "num_batches_to_accumulate": 2,
15
+ "worker_num_splits": 2,
16
+ "policy_workers_per_policy": 1,
17
+ "max_policy_lag": 1000,
18
+ "num_workers": 16,
19
+ "num_envs_per_worker": 32,
20
+ "batch_size": 4096,
21
+ "num_batches_per_epoch": 1,
22
+ "num_epochs": 1,
23
+ "rollout": 32,
24
+ "recurrence": 32,
25
+ "shuffle_minibatches": false,
26
+ "gamma": 0.999,
27
+ "reward_scale": 1.0,
28
+ "reward_clip": 10.0,
29
+ "value_bootstrap": false,
30
+ "normalize_returns": true,
31
+ "exploration_loss_coeff": 0.001,
32
+ "value_loss_coeff": 1.0,
33
+ "kl_loss_coeff": 0.0,
34
+ "exploration_loss": "entropy",
35
+ "gae_lambda": 1.0,
36
+ "ppo_clip_ratio": 0.1,
37
+ "ppo_clip_value": 1.0,
38
+ "with_vtrace": false,
39
+ "vtrace_rho": 1.0,
40
+ "vtrace_c": 1.0,
41
+ "optimizer": "adam",
42
+ "adam_eps": 1e-07,
43
+ "adam_beta1": 0.9,
44
+ "adam_beta2": 0.999,
45
+ "max_grad_norm": 4,
46
+ "learning_rate": 0.0001,
47
+ "lr_schedule": "constant",
48
+ "lr_schedule_kl_threshold": 0.008,
49
+ "lr_adaptive_min": 1e-06,
50
+ "lr_adaptive_max": 0.01,
51
+ "obs_subtract_mean": 0.0,
52
+ "obs_scale": 1.0,
53
+ "normalize_input": false,
54
+ "normalize_input_keys": null,
55
+ "decorrelate_experience_max_seconds": 0,
56
+ "decorrelate_envs_on_one_worker": true,
57
+ "actor_worker_gpus": [],
58
+ "set_workers_cpu_affinity": true,
59
+ "force_envs_single_thread": false,
60
+ "default_niceness": 0,
61
+ "log_to_file": true,
62
+ "experiment_summaries_interval": 50,
63
+ "flush_summaries_interval": 30,
64
+ "stats_avg": 100,
65
+ "summaries_use_frameskip": true,
66
+ "heartbeat_interval": 20,
67
+ "heartbeat_reporting_interval": 180,
68
+ "train_for_env_steps": 2000000000,
69
+ "train_for_seconds": 10000000000,
70
+ "save_every_sec": 120,
71
+ "keep_checkpoints": 2,
72
+ "load_checkpoint_kind": "latest",
73
+ "save_milestones_sec": -1,
74
+ "save_best_every_sec": 5,
75
+ "save_best_metric": "reward",
76
+ "save_best_after": 100000,
77
+ "benchmark": false,
78
+ "encoder_mlp_layers": [
79
+ 512,
80
+ 512
81
+ ],
82
+ "encoder_conv_architecture": "convnet_simple",
83
+ "encoder_conv_mlp_layers": [
84
+ 512
85
+ ],
86
+ "use_rnn": true,
87
+ "rnn_size": 512,
88
+ "rnn_type": "lstm",
89
+ "rnn_num_layers": 1,
90
+ "decoder_mlp_layers": [],
91
+ "nonlinearity": "relu",
92
+ "policy_initialization": "orthogonal",
93
+ "policy_init_gain": 1.0,
94
+ "actor_critic_share_weights": true,
95
+ "adaptive_stddev": false,
96
+ "continuous_tanh_scale": 0.0,
97
+ "initial_stddev": 1.0,
98
+ "use_env_info_cache": false,
99
+ "env_gpu_actions": false,
100
+ "env_gpu_observations": true,
101
+ "env_frameskip": 1,
102
+ "env_framestack": 1,
103
+ "pixel_format": "CHW",
104
+ "use_record_episode_statistics": false,
105
+ "episode_counter": false,
106
+ "with_wandb": true,
107
+ "wandb_user": "bartekcupial",
108
+ "wandb_project": "sample_factory_nethack",
109
+ "wandb_group": "gmum",
110
+ "wandb_job_type": "SF",
111
+ "wandb_tags": [],
112
+ "with_pbt": false,
113
+ "pbt_mix_policies_in_one_env": true,
114
+ "pbt_period_env_steps": 5000000,
115
+ "pbt_start_mutation": 20000000,
116
+ "pbt_replace_fraction": 0.3,
117
+ "pbt_mutation_rate": 0.15,
118
+ "pbt_replace_reward_gap": 0.1,
119
+ "pbt_replace_reward_gap_absolute": 1e-06,
120
+ "pbt_optimize_gamma": false,
121
+ "pbt_target_objective": "true_objective",
122
+ "pbt_perturb_min": 1.1,
123
+ "pbt_perturb_max": 1.5,
124
+ "character": "mon-hum-neu-mal",
125
+ "max_episode_steps": 100000,
126
+ "penalty_step": 0.0,
127
+ "penalty_time": 0.0,
128
+ "fn_penalty_step": "constant",
129
+ "savedir": null,
130
+ "save_ttyrec_every": 0,
131
+ "add_image_observation": true,
132
+ "crop_dim": 18,
133
+ "pixel_size": 6,
134
+ "use_prev_action": true,
135
+ "use_tty_only": true,
136
+ "model": "ChaoticDwarvenGPT5",
137
+ "add_stats_to_info": true,
138
+ "command_line": "--env=nethack_challenge --train_for_env_steps=2000000000 --character=mon-hum-neu-mal --num_workers=16 --num_envs_per_worker=32 --worker_num_splits=2 --rollout=32 --batch_size=4096 --async_rl=True --serial_mode=False --wandb_user=bartekcupial --wandb_project=sample_factory_nethack --wandb_group=gmum --with_wandb=True --use_prev_action=True --model=ChaoticDwarvenGPT5 --rnn_size=512 --seed=2",
139
+ "cli_args": {
140
+ "env": "nethack_challenge",
141
+ "seed": 2,
142
+ "async_rl": true,
143
+ "serial_mode": false,
144
+ "worker_num_splits": 2,
145
+ "num_workers": 16,
146
+ "num_envs_per_worker": 32,
147
+ "batch_size": 4096,
148
+ "rollout": 32,
149
+ "train_for_env_steps": 2000000000,
150
+ "rnn_size": 512,
151
+ "with_wandb": true,
152
+ "wandb_user": "bartekcupial",
153
+ "wandb_project": "sample_factory_nethack",
154
+ "wandb_group": "gmum",
155
+ "character": "mon-hum-neu-mal",
156
+ "use_prev_action": true,
157
+ "model": "ChaoticDwarvenGPT5"
158
+ },
159
+ "git_hash": "unknown",
160
+ "git_repo_name": "not a git repository",
161
+ "wandb_unique_id": "default_experiment_20240103_191716_696528"
162
+ }
sf_log.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cec37cde2f9538693efd7e24142cb3f23705c599fa1dd5ac9a03da46345f0105
3
+ size 10529466