td-builder commited on
Commit
36a8ad7
Β·
verified Β·
1 Parent(s): 4712bd0

Upload train_humanoid_gpu.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. train_humanoid_gpu.py +4 -4
train_humanoid_gpu.py CHANGED
@@ -26,7 +26,7 @@ from stable_baselines3 import SAC
26
  from stable_baselines3.common.callbacks import BaseCallback
27
 
28
  # ── Config ───────────────────────────────────────────────────────────────
29
- TIMESTEPS = 50_000_000
30
  SAVE_DIR = "models"
31
  RESULTS_DIR = "results"
32
 
@@ -34,7 +34,7 @@ import torch
34
  if torch.cuda.is_available():
35
  DEVICE = "cuda"
36
  print(f"GPU: {torch.cuda.get_device_name(0)}")
37
- print(f"VRAM: {torch.cuda.get_device_properties(0).total_mem / 1e9:.1f} GB")
38
  else:
39
  DEVICE = "cpu"
40
  print("WARNING: No GPU detected β€” this will be very slow")
@@ -209,8 +209,8 @@ def main():
209
  tau=0.005,
210
  gamma=0.99,
211
  learning_starts=25_000,
212
- train_freq=1,
213
- gradient_steps=1,
214
  verbose=0,
215
  device=DEVICE,
216
  seed=42,
 
26
  from stable_baselines3.common.callbacks import BaseCallback
27
 
28
  # ── Config ───────────────────────────────────────────────────────────────
29
+ TIMESTEPS = 10_000_000
30
  SAVE_DIR = "models"
31
  RESULTS_DIR = "results"
32
 
 
34
  if torch.cuda.is_available():
35
  DEVICE = "cuda"
36
  print(f"GPU: {torch.cuda.get_device_name(0)}")
37
+ print(f"VRAM: {torch.cuda.get_device_properties(0).total_memory / 1e9:.1f} GB")
38
  else:
39
  DEVICE = "cpu"
40
  print("WARNING: No GPU detected β€” this will be very slow")
 
209
  tau=0.005,
210
  gamma=0.99,
211
  learning_starts=25_000,
212
+ train_freq=4,
213
+ gradient_steps=4,
214
  verbose=0,
215
  device=DEVICE,
216
  seed=42,