Upload folder using huggingface_hub
Browse files- __pycache__/predict.cpython-311.pyc +0 -0
- model_pole_position.pt +2 -2
- model_pong.pt +2 -2
- model_sonic.pt +2 -2
- predict.py +51 -19
- train.log +118 -136
__pycache__/predict.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/predict.cpython-311.pyc and b/__pycache__/predict.cpython-311.pyc differ
|
|
|
model_pole_position.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27d26875071b536cc75cac27a0840b50cd6c9a8e1956c94f1cd08feacc49621f
|
| 3 |
+
size 2971526
|
model_pong.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b1a440d1801503eb7e00e8a6ce30b8f43058816440d98506b3e2c8629ca2eeff
|
| 3 |
+
size 2436712
|
model_sonic.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9035098568ea4789c5dda58d685af07b4b5a0cdf300848f79ed6d96ad901da34
|
| 3 |
+
size 6182614
|
predict.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
"""
|
| 2 |
import sys
|
| 3 |
import os
|
| 4 |
import numpy as np
|
|
@@ -8,6 +8,7 @@ sys.path.insert(0, "/home/coder/code")
|
|
| 8 |
from unet_model import UNet
|
| 9 |
|
| 10 |
CONTEXT_FRAMES = 8
|
|
|
|
| 11 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 12 |
|
| 13 |
GAME_CONFIGS = {
|
|
@@ -31,11 +32,22 @@ def detect_game(context_frames: np.ndarray) -> str:
|
|
| 31 |
return "sonic"
|
| 32 |
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
def load_model(model_dir: str):
|
| 35 |
models = {}
|
| 36 |
for game, cfg in GAME_CONFIGS.items():
|
| 37 |
-
|
| 38 |
-
model = UNet(in_channels=24, out_channels=6,
|
| 39 |
enc_channels=cfg["enc_channels"],
|
| 40 |
bottleneck_channels=cfg["bottleneck"],
|
| 41 |
upsample_mode="bilinear").to(DEVICE)
|
|
@@ -45,22 +57,34 @@ def load_model(model_dir: str):
|
|
| 45 |
model.load_state_dict(state_dict)
|
| 46 |
model.eval()
|
| 47 |
models[game] = model
|
| 48 |
-
return models
|
| 49 |
|
| 50 |
|
| 51 |
-
def
|
| 52 |
-
"""
|
| 53 |
-
output = model(context_tensor)
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
| 57 |
|
| 58 |
|
| 59 |
-
def predict_next_frame(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
game = detect_game(context_frames)
|
| 61 |
-
model = models[game]
|
| 62 |
|
| 63 |
-
n = len(context_frames)
|
| 64 |
if n < CONTEXT_FRAMES:
|
| 65 |
padding = np.stack([context_frames[0]] * (CONTEXT_FRAMES - n), axis=0)
|
| 66 |
frames = np.concatenate([padding, context_frames], axis=0)
|
|
@@ -78,7 +102,7 @@ def predict_next_frame(models, context_frames: np.ndarray) -> np.ndarray:
|
|
| 78 |
context_tensor = torch.from_numpy(context).to(DEVICE)
|
| 79 |
last_tensor = torch.from_numpy(last_frame_t).to(DEVICE)
|
| 80 |
|
| 81 |
-
predicted_orig =
|
| 82 |
|
| 83 |
if game == "pong":
|
| 84 |
predicted = predicted_orig
|
|
@@ -86,11 +110,19 @@ def predict_next_frame(models, context_frames: np.ndarray) -> np.ndarray:
|
|
| 86 |
# TTA: horizontal flip
|
| 87 |
context_flipped = torch.flip(context_tensor, dims=[3])
|
| 88 |
last_flipped = torch.flip(last_tensor, dims=[3])
|
| 89 |
-
predicted_flipped =
|
| 90 |
predicted_flipped = torch.flip(predicted_flipped, dims=[3])
|
| 91 |
predicted = (predicted_orig + predicted_flipped) / 2.0
|
| 92 |
|
| 93 |
-
|
| 94 |
-
predicted_np =
|
| 95 |
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Direct 8-frame prediction with caching and TTA."""
|
| 2 |
import sys
|
| 3 |
import os
|
| 4 |
import numpy as np
|
|
|
|
| 8 |
from unet_model import UNet
|
| 9 |
|
| 10 |
CONTEXT_FRAMES = 8
|
| 11 |
+
PRED_FRAMES = 8
|
| 12 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 13 |
|
| 14 |
GAME_CONFIGS = {
|
|
|
|
| 32 |
return "sonic"
|
| 33 |
|
| 34 |
|
| 35 |
+
class ModelCache:
|
| 36 |
+
"""Wraps models and caches 8-frame predictions."""
|
| 37 |
+
def __init__(self, models):
|
| 38 |
+
self.models = models
|
| 39 |
+
self.cached_predictions = None # List of 8 numpy frames
|
| 40 |
+
self.cache_step = 0
|
| 41 |
+
|
| 42 |
+
def reset_cache(self):
|
| 43 |
+
self.cached_predictions = None
|
| 44 |
+
self.cache_step = 0
|
| 45 |
+
|
| 46 |
+
|
| 47 |
def load_model(model_dir: str):
|
| 48 |
models = {}
|
| 49 |
for game, cfg in GAME_CONFIGS.items():
|
| 50 |
+
model = UNet(in_channels=24, out_channels=24,
|
|
|
|
| 51 |
enc_channels=cfg["enc_channels"],
|
| 52 |
bottleneck_channels=cfg["bottleneck"],
|
| 53 |
upsample_mode="bilinear").to(DEVICE)
|
|
|
|
| 57 |
model.load_state_dict(state_dict)
|
| 58 |
model.eval()
|
| 59 |
models[game] = model
|
| 60 |
+
return ModelCache(models)
|
| 61 |
|
| 62 |
|
| 63 |
+
def _predict_8frames(model, context_tensor, last_tensor):
|
| 64 |
+
"""Predict all 8 frames at once."""
|
| 65 |
+
output = model(context_tensor) # (1, 24, 64, 64)
|
| 66 |
+
residuals = output.reshape(1, PRED_FRAMES, 3, 64, 64)
|
| 67 |
+
last_expanded = last_tensor.unsqueeze(1).expand_as(residuals)
|
| 68 |
+
predicted = torch.clamp(last_expanded + residuals, 0, 1)
|
| 69 |
+
return predicted # (1, 8, 3, 64, 64)
|
| 70 |
|
| 71 |
|
| 72 |
+
def predict_next_frame(cache, context_frames: np.ndarray) -> np.ndarray:
|
| 73 |
+
n = len(context_frames)
|
| 74 |
+
|
| 75 |
+
# If we have cached predictions and context grew beyond 8 (AR rollout), return next cached frame
|
| 76 |
+
if cache.cached_predictions is not None and n > CONTEXT_FRAMES and cache.cache_step < PRED_FRAMES:
|
| 77 |
+
result = cache.cached_predictions[cache.cache_step]
|
| 78 |
+
cache.cache_step += 1
|
| 79 |
+
if cache.cache_step >= PRED_FRAMES:
|
| 80 |
+
cache.reset_cache()
|
| 81 |
+
return result
|
| 82 |
+
|
| 83 |
+
# First call for a new window (n == CONTEXT_FRAMES) or fallback: predict all 8 frames
|
| 84 |
+
cache.reset_cache()
|
| 85 |
game = detect_game(context_frames)
|
| 86 |
+
model = cache.models[game]
|
| 87 |
|
|
|
|
| 88 |
if n < CONTEXT_FRAMES:
|
| 89 |
padding = np.stack([context_frames[0]] * (CONTEXT_FRAMES - n), axis=0)
|
| 90 |
frames = np.concatenate([padding, context_frames], axis=0)
|
|
|
|
| 102 |
context_tensor = torch.from_numpy(context).to(DEVICE)
|
| 103 |
last_tensor = torch.from_numpy(last_frame_t).to(DEVICE)
|
| 104 |
|
| 105 |
+
predicted_orig = _predict_8frames(model, context_tensor, last_tensor)
|
| 106 |
|
| 107 |
if game == "pong":
|
| 108 |
predicted = predicted_orig
|
|
|
|
| 110 |
# TTA: horizontal flip
|
| 111 |
context_flipped = torch.flip(context_tensor, dims=[3])
|
| 112 |
last_flipped = torch.flip(last_tensor, dims=[3])
|
| 113 |
+
predicted_flipped = _predict_8frames(model, context_flipped, last_flipped)
|
| 114 |
predicted_flipped = torch.flip(predicted_flipped, dims=[3])
|
| 115 |
predicted = (predicted_orig + predicted_flipped) / 2.0
|
| 116 |
|
| 117 |
+
# Cache all 8 predictions
|
| 118 |
+
predicted_np = predicted[0].cpu().numpy() # (8, 3, 64, 64)
|
| 119 |
+
cache.cached_predictions = []
|
| 120 |
+
for i in range(PRED_FRAMES):
|
| 121 |
+
frame = np.transpose(predicted_np[i], (1, 2, 0))
|
| 122 |
+
frame = (frame * 255).clip(0, 255).astype(np.uint8)
|
| 123 |
+
cache.cached_predictions.append(frame)
|
| 124 |
+
|
| 125 |
+
# Return first frame
|
| 126 |
+
result = cache.cached_predictions[cache.cache_step]
|
| 127 |
+
cache.cache_step += 1
|
| 128 |
+
return result
|
train.log
CHANGED
|
@@ -1,136 +1,118 @@
|
|
| 1 |
-
[2026-04-11
|
| 2 |
-
[2026-04-11
|
| 3 |
-
[2026-04-11
|
| 4 |
-
[2026-04-11
|
| 5 |
-
[2026-04-11
|
| 6 |
-
[2026-04-11
|
| 7 |
-
[2026-04-11
|
| 8 |
-
[2026-04-11
|
| 9 |
-
[2026-04-11
|
| 10 |
-
[2026-04-11
|
| 11 |
-
[2026-04-11
|
| 12 |
-
[2026-04-11
|
| 13 |
-
[2026-04-11
|
| 14 |
-
[2026-04-11
|
| 15 |
-
[2026-04-11
|
| 16 |
-
[2026-04-11
|
| 17 |
-
[2026-04-11
|
| 18 |
-
[2026-04-11
|
| 19 |
-
[2026-04-11
|
| 20 |
-
[2026-04-11
|
| 21 |
-
[2026-04-11
|
| 22 |
-
[2026-04-11
|
| 23 |
-
[2026-04-11
|
| 24 |
-
[2026-04-11
|
| 25 |
-
[2026-04-11
|
| 26 |
-
[2026-04-11
|
| 27 |
-
[2026-04-11
|
| 28 |
-
[2026-04-11
|
| 29 |
-
[2026-04-11
|
| 30 |
-
[2026-04-11
|
| 31 |
-
[2026-04-11
|
| 32 |
-
[2026-04-11
|
| 33 |
-
[2026-04-11
|
| 34 |
-
[2026-04-11
|
| 35 |
-
[2026-04-11
|
| 36 |
-
[2026-04-11
|
| 37 |
-
[2026-04-11
|
| 38 |
-
[2026-04-11
|
| 39 |
-
[2026-04-11
|
| 40 |
-
[2026-04-11
|
| 41 |
-
[2026-04-11
|
| 42 |
-
[2026-04-11
|
| 43 |
-
[2026-04-11
|
| 44 |
-
[2026-04-11
|
| 45 |
-
[2026-04-11
|
| 46 |
-
[2026-04-11
|
| 47 |
-
[2026-04-11
|
| 48 |
-
[2026-04-11
|
| 49 |
-
[2026-04-11
|
| 50 |
-
[2026-04-11
|
| 51 |
-
[2026-04-11
|
| 52 |
-
[2026-04-11
|
| 53 |
-
[2026-04-11
|
| 54 |
-
[2026-04-11
|
| 55 |
-
[2026-04-11
|
| 56 |
-
[2026-04-11
|
| 57 |
-
[2026-04-11
|
| 58 |
-
[2026-04-11
|
| 59 |
-
[2026-04-11
|
| 60 |
-
[2026-04-11
|
| 61 |
-
[2026-04-11
|
| 62 |
-
[2026-04-11
|
| 63 |
-
[2026-04-11
|
| 64 |
-
[2026-04-11
|
| 65 |
-
[2026-04-11
|
| 66 |
-
[2026-04-11
|
| 67 |
-
[2026-04-11
|
| 68 |
-
[2026-04-11
|
| 69 |
-
[2026-04-11
|
| 70 |
-
[2026-04-11
|
| 71 |
-
[2026-04-11
|
| 72 |
-
[2026-04-11
|
| 73 |
-
[2026-04-11
|
| 74 |
-
[2026-04-11
|
| 75 |
-
[2026-04-11
|
| 76 |
-
[2026-04-11
|
| 77 |
-
[2026-04-11
|
| 78 |
-
[2026-04-11
|
| 79 |
-
[2026-04-11
|
| 80 |
-
[2026-04-11
|
| 81 |
-
[2026-04-11
|
| 82 |
-
[2026-04-11
|
| 83 |
-
[2026-04-11
|
| 84 |
-
[2026-04-11
|
| 85 |
-
[2026-04-11
|
| 86 |
-
[2026-04-11
|
| 87 |
-
[2026-04-11
|
| 88 |
-
[2026-04-11
|
| 89 |
-
[2026-04-11
|
| 90 |
-
[2026-04-11
|
| 91 |
-
[2026-04-11
|
| 92 |
-
[2026-04-11
|
| 93 |
-
[2026-04-11
|
| 94 |
-
[2026-04-11 16:
|
| 95 |
-
[2026-04-11
|
| 96 |
-
[2026-04-11
|
| 97 |
-
[2026-04-11
|
| 98 |
-
[2026-04-11
|
| 99 |
-
[2026-04-11
|
| 100 |
-
[2026-04-11
|
| 101 |
-
[2026-04-11
|
| 102 |
-
[2026-04-11
|
| 103 |
-
[2026-04-11
|
| 104 |
-
[2026-04-11
|
| 105 |
-
[2026-04-11
|
| 106 |
-
[2026-04-11
|
| 107 |
-
[2026-04-11
|
| 108 |
-
[2026-04-11
|
| 109 |
-
[2026-04-11
|
| 110 |
-
[2026-04-11
|
| 111 |
-
[2026-04-11
|
| 112 |
-
[2026-04-11 16:
|
| 113 |
-
[2026-04-11 16:
|
| 114 |
-
[2026-04-11 16:
|
| 115 |
-
[2026-04-11 16:
|
| 116 |
-
[2026-04-11 16:
|
| 117 |
-
[2026-04-11 16:49
|
| 118 |
-
[2026-04-11 16:
|
| 119 |
-
[2026-04-11 16:51:17] sonic E40/100 | T:0.036337(S:0.9504) V:0.038878(S:0.9464) LR:2.00e-04
|
| 120 |
-
[2026-04-11 16:52:30] sonic E43/100 | T:0.035683(S:0.9515) V:0.038385(S:0.9470) LR:1.87e-04
|
| 121 |
-
[2026-04-11 16:53:18] sonic E45/100 | T:0.035133(S:0.9524) V:0.038292(S:0.9472) LR:1.78e-04
|
| 122 |
-
[2026-04-11 16:54:06] sonic E47/100 | T:0.034642(S:0.9532) V:0.038121(S:0.9475) LR:1.69e-04
|
| 123 |
-
[2026-04-11 16:55:19] sonic E50/100 | T:0.033961(S:0.9543) V:0.037790(S:0.9480) LR:1.55e-04
|
| 124 |
-
[2026-04-11 16:58:33] sonic E58/100 | T:0.032406(S:0.9568) V:0.037569(S:0.9485) LR:1.19e-04
|
| 125 |
-
[2026-04-11 16:59:24] sonic E60/100 | T:0.032100(S:0.9573) V:0.037805(S:0.9480) LR:1.10e-04
|
| 126 |
-
[2026-04-11 16:59:48] sonic E61/100 | T:0.031922(S:0.9575) V:0.037534(S:0.9483) LR:1.06e-04
|
| 127 |
-
[2026-04-11 17:03:28] sonic E70/100 | T:0.030640(S:0.9596) V:0.037635(S:0.9484) LR:6.98e-05
|
| 128 |
-
[2026-04-11 17:07:42] sonic E80/100 | T:0.029672(S:0.9611) V:0.037661(S:0.9482) LR:3.77e-05
|
| 129 |
-
[2026-04-11 17:11:48] sonic E90/100 | T:0.029048(S:0.9621) V:0.037644(S:0.9482) LR:1.71e-05
|
| 130 |
-
[2026-04-11 17:15:53] sonic E100/100 | T:0.028785(S:0.9625) V:0.037660(S:0.9482) LR:1.00e-05
|
| 131 |
-
[2026-04-11 17:15:53] sonic done. Best: 0.037534
|
| 132 |
-
[2026-04-11 17:15:53] pong: 2.3 MB
|
| 133 |
-
[2026-04-11 17:15:53] pole_position: 2.8 MB
|
| 134 |
-
[2026-04-11 17:15:53] sonic: 5.9 MB
|
| 135 |
-
[2026-04-11 17:15:53] Total: 11.1 MB
|
| 136 |
-
[2026-04-11 17:15:53] Training complete!
|
|
|
|
| 1 |
+
[2026-04-11 17:22:57] Starting direct 8-frame training for 2026-04-11-180000-direct-8frame
|
| 2 |
+
[2026-04-11 17:22:57] Device: cuda
|
| 3 |
+
[2026-04-11 17:22:57] === pong ===
|
| 4 |
+
[2026-04-11 17:22:57] pong: 1,199,224 params (2.3 MB fp16)
|
| 5 |
+
[2026-04-11 17:22:58] pong train: 8194 seqs (len=16)
|
| 6 |
+
[2026-04-11 17:22:58] pong val: 964 seqs (len=16)
|
| 7 |
+
[2026-04-11 17:23:19] pong E1/100 | T:0.261624(S:0.6295) V:0.246500(S:0.6510) LR:3.00e-04
|
| 8 |
+
[2026-04-11 17:23:38] pong E2/100 | T:0.222204(S:0.6854) V:0.215782(S:0.6944) LR:3.00e-04
|
| 9 |
+
[2026-04-11 17:23:58] pong E3/100 | T:0.189432(S:0.7318) V:0.196561(S:0.7216) LR:2.99e-04
|
| 10 |
+
[2026-04-11 17:24:16] pong E4/100 | T:0.165138(S:0.7663) V:0.181374(S:0.7430) LR:2.99e-04
|
| 11 |
+
[2026-04-11 17:24:35] pong E5/100 | T:0.146892(S:0.7921) V:0.168277(S:0.7617) LR:2.98e-04
|
| 12 |
+
[2026-04-11 17:24:55] pong E6/100 | T:0.133788(S:0.8107) V:0.160231(S:0.7730) LR:2.97e-04
|
| 13 |
+
[2026-04-11 17:25:16] pong E7/100 | T:0.122975(S:0.8260) V:0.151815(S:0.7850) LR:2.96e-04
|
| 14 |
+
[2026-04-11 17:25:55] pong E9/100 | T:0.108118(S:0.8471) V:0.145642(S:0.7936) LR:2.94e-04
|
| 15 |
+
[2026-04-11 17:26:16] pong E10/100 | T:0.102042(S:0.8557) V:0.145171(S:0.7944) LR:2.93e-04
|
| 16 |
+
[2026-04-11 17:26:35] pong E11/100 | T:0.097010(S:0.8628) V:0.137783(S:0.8048) LR:2.91e-04
|
| 17 |
+
[2026-04-11 17:27:16] pong E13/100 | T:0.088259(S:0.8752) V:0.133496(S:0.8109) LR:2.88e-04
|
| 18 |
+
[2026-04-11 17:27:36] pong E14/100 | T:0.085017(S:0.8798) V:0.128416(S:0.8181) LR:2.86e-04
|
| 19 |
+
[2026-04-11 17:28:54] pong E18/100 | T:0.073576(S:0.8960) V:0.125769(S:0.8218) LR:2.77e-04
|
| 20 |
+
[2026-04-11 17:29:34] pong E20/100 | T:0.069607(S:0.9016) V:0.125478(S:0.8222) LR:2.71e-04
|
| 21 |
+
[2026-04-11 17:30:34] pong E23/100 | T:0.064038(S:0.9095) V:0.123089(S:0.8256) LR:2.63e-04
|
| 22 |
+
[2026-04-11 17:31:15] pong E25/100 | T:0.061200(S:0.9135) V:0.121373(S:0.8280) LR:2.56e-04
|
| 23 |
+
[2026-04-11 17:31:34] pong E26/100 | T:0.060173(S:0.9150) V:0.120411(S:0.8294) LR:2.53e-04
|
| 24 |
+
[2026-04-11 17:31:53] pong E27/100 | T:0.058330(S:0.9176) V:0.119902(S:0.8300) LR:2.49e-04
|
| 25 |
+
[2026-04-11 17:32:33] pong E29/100 | T:0.056276(S:0.9205) V:0.118473(S:0.8321) LR:2.42e-04
|
| 26 |
+
[2026-04-11 17:32:53] pong E30/100 | T:0.054990(S:0.9223) V:0.117756(S:0.8331) LR:2.38e-04
|
| 27 |
+
[2026-04-11 17:33:56] pong E33/100 | T:0.051766(S:0.9269) V:0.116454(S:0.8349) LR:2.27e-04
|
| 28 |
+
[2026-04-11 17:34:37] pong E35/100 | T:0.050350(S:0.9289) V:0.116344(S:0.8351) LR:2.18e-04
|
| 29 |
+
[2026-04-11 17:34:58] pong E36/100 | T:0.048892(S:0.9309) V:0.115702(S:0.8360) LR:2.14e-04
|
| 30 |
+
[2026-04-11 17:35:41] pong E38/100 | T:0.047967(S:0.9322) V:0.115106(S:0.8368) LR:2.06e-04
|
| 31 |
+
[2026-04-11 17:36:23] pong E40/100 | T:0.045971(S:0.9351) V:0.113090(S:0.8397) LR:1.97e-04
|
| 32 |
+
[2026-04-11 17:36:42] pong E41/100 | T:0.045044(S:0.9364) V:0.112823(S:0.8400) LR:1.92e-04
|
| 33 |
+
[2026-04-11 17:37:03] pong E42/100 | T:0.044532(S:0.9371) V:0.112635(S:0.8403) LR:1.88e-04
|
| 34 |
+
[2026-04-11 17:38:03] pong E45/100 | T:0.042640(S:0.9398) V:0.111960(S:0.8413) LR:1.74e-04
|
| 35 |
+
[2026-04-11 17:38:42] pong E47/100 | T:0.041282(S:0.9417) V:0.111201(S:0.8423) LR:1.65e-04
|
| 36 |
+
[2026-04-11 17:39:02] pong E48/100 | T:0.040975(S:0.9421) V:0.111088(S:0.8425) LR:1.60e-04
|
| 37 |
+
[2026-04-11 17:39:42] pong E50/100 | T:0.039824(S:0.9438) V:0.110872(S:0.8428) LR:1.50e-04
|
| 38 |
+
[2026-04-11 17:40:22] pong E52/100 | T:0.038633(S:0.9455) V:0.109695(S:0.8445) LR:1.41e-04
|
| 39 |
+
[2026-04-11 17:41:02] pong E54/100 | T:0.037921(S:0.9465) V:0.109453(S:0.8448) LR:1.32e-04
|
| 40 |
+
[2026-04-11 17:41:56] pong E57/100 | T:0.036545(S:0.9484) V:0.109087(S:0.8453) LR:1.18e-04
|
| 41 |
+
[2026-04-11 17:42:17] pong E58/100 | T:0.035855(S:0.9494) V:0.109036(S:0.8454) LR:1.13e-04
|
| 42 |
+
[2026-04-11 17:42:36] pong E59/100 | T:0.035576(S:0.9498) V:0.108473(S:0.8462) LR:1.09e-04
|
| 43 |
+
[2026-04-11 17:42:56] pong E60/100 | T:0.035289(S:0.9502) V:0.108379(S:0.8463) LR:1.04e-04
|
| 44 |
+
[2026-04-11 17:43:35] pong E62/100 | T:0.034419(S:0.9514) V:0.108306(S:0.8464) LR:9.55e-05
|
| 45 |
+
[2026-04-11 17:43:55] pong E63/100 | T:0.034142(S:0.9518) V:0.107726(S:0.8472) LR:9.11e-05
|
| 46 |
+
[2026-04-11 17:44:33] pong E65/100 | T:0.033535(S:0.9527) V:0.107617(S:0.8474) LR:8.26e-05
|
| 47 |
+
[2026-04-11 17:45:48] pong E69/100 | T:0.032286(S:0.9544) V:0.107517(S:0.8475) LR:6.65e-05
|
| 48 |
+
[2026-04-11 17:46:06] pong E70/100 | T:0.031978(S:0.9549) V:0.107445(S:0.8476) LR:6.26e-05
|
| 49 |
+
[2026-04-11 17:46:27] pong E71/100 | T:0.031772(S:0.9552) V:0.107240(S:0.8479) LR:5.89e-05
|
| 50 |
+
[2026-04-11 17:46:46] pong E72/100 | T:0.031589(S:0.9554) V:0.106995(S:0.8483) LR:5.52e-05
|
| 51 |
+
[2026-04-11 17:47:06] pong E73/100 | T:0.031315(S:0.9558) V:0.106564(S:0.8489) LR:5.16e-05
|
| 52 |
+
[2026-04-11 17:49:21] pong E80/100 | T:0.030090(S:0.9576) V:0.106367(S:0.8492) LR:2.96e-05
|
| 53 |
+
[2026-04-11 17:50:40] pong E84/100 | T:0.029537(S:0.9583) V:0.106164(S:0.8494) LR:1.95e-05
|
| 54 |
+
[2026-04-11 17:51:00] pong E85/100 | T:0.029495(S:0.9584) V:0.106157(S:0.8494) LR:1.73e-05
|
| 55 |
+
[2026-04-11 17:51:40] pong E87/100 | T:0.029253(S:0.9587) V:0.106032(S:0.8496) LR:1.33e-05
|
| 56 |
+
[2026-04-11 17:52:00] pong E88/100 | T:0.029200(S:0.9588) V:0.105951(S:0.8497) LR:1.15e-05
|
| 57 |
+
[2026-04-11 17:52:39] pong E90/100 | T:0.029051(S:0.9590) V:0.106003(S:0.8497) LR:8.32e-06
|
| 58 |
+
[2026-04-11 17:53:00] pong E91/100 | T:0.028990(S:0.9591) V:0.105951(S:0.8497) LR:6.94e-06
|
| 59 |
+
[2026-04-11 17:55:39] pong E99/100 | T:0.028765(S:0.9594) V:0.105859(S:0.8499) LR:1.07e-06
|
| 60 |
+
[2026-04-11 17:55:59] pong E100/100 | T:0.028750(S:0.9595) V:0.106039(S:0.8496) LR:1.00e-06
|
| 61 |
+
[2026-04-11 17:55:59] pong done. Best: 0.105859
|
| 62 |
+
[2026-04-11 17:55:59] === pole_position ===
|
| 63 |
+
[2026-04-11 17:55:59] pole_position: 1,465,848 params (2.8 MB fp16)
|
| 64 |
+
[2026-04-11 17:56:00] pole_position train: 4097 seqs (len=16)
|
| 65 |
+
[2026-04-11 17:56:00] pole_position val: 482 seqs (len=16)
|
| 66 |
+
[2026-04-11 17:56:10] pole_position E1/100 | T:0.075590(S:0.9035) V:0.057663(S:0.9277) LR:3.00e-04
|
| 67 |
+
[2026-04-11 17:56:20] pole_position E2/100 | T:0.064522(S:0.9184) V:0.053095(S:0.9336) LR:3.00e-04
|
| 68 |
+
[2026-04-11 17:56:30] pole_position E3/100 | T:0.060081(S:0.9243) V:0.051676(S:0.9352) LR:2.99e-04
|
| 69 |
+
[2026-04-11 17:56:40] pole_position E4/100 | T:0.057492(S:0.9276) V:0.049574(S:0.9381) LR:2.99e-04
|
| 70 |
+
[2026-04-11 17:56:50] pole_position E5/100 | T:0.055706(S:0.9299) V:0.049319(S:0.9386) LR:2.98e-04
|
| 71 |
+
[2026-04-11 17:57:01] pole_position E6/100 | T:0.053870(S:0.9323) V:0.046328(S:0.9425) LR:2.97e-04
|
| 72 |
+
[2026-04-11 17:57:21] pole_position E8/100 | T:0.050747(S:0.9364) V:0.045251(S:0.9438) LR:2.95e-04
|
| 73 |
+
[2026-04-11 17:57:31] pole_position E9/100 | T:0.049606(S:0.9379) V:0.044027(S:0.9455) LR:2.94e-04
|
| 74 |
+
[2026-04-11 17:57:41] pole_position E10/100 | T:0.048376(S:0.9395) V:0.048385(S:0.9398) LR:2.93e-04
|
| 75 |
+
[2026-04-11 17:58:02] pole_position E12/100 | T:0.046456(S:0.9420) V:0.043792(S:0.9456) LR:2.90e-04
|
| 76 |
+
[2026-04-11 17:58:23] pole_position E14/100 | T:0.044549(S:0.9445) V:0.042208(S:0.9474) LR:2.86e-04
|
| 77 |
+
[2026-04-11 17:58:53] pole_position E17/100 | T:0.042305(S:0.9475) V:0.041426(S:0.9485) LR:2.79e-04
|
| 78 |
+
[2026-04-11 17:59:24] pole_position E20/100 | T:0.040529(S:0.9498) V:0.042968(S:0.9464) LR:2.71e-04
|
| 79 |
+
[2026-04-11 18:01:03] pole_position E30/100 | T:0.036013(S:0.9557) V:0.042198(S:0.9472) LR:2.38e-04
|
| 80 |
+
[2026-04-11 18:02:43] pole_position E40/100 | T:0.033191(S:0.9594) V:0.042161(S:0.9472) LR:1.97e-04
|
| 81 |
+
[2026-04-11 18:04:25] pole_position E50/100 | T:0.030915(S:0.9624) V:0.042456(S:0.9467) LR:1.50e-04
|
| 82 |
+
[2026-04-11 18:06:07] pole_position E60/100 | T:0.029315(S:0.9645) V:0.042134(S:0.9472) LR:1.04e-04
|
| 83 |
+
[2026-04-11 18:07:47] pole_position E70/100 | T:0.028091(S:0.9661) V:0.042533(S:0.9466) LR:6.26e-05
|
| 84 |
+
[2026-04-11 18:09:29] pole_position E80/100 | T:0.027237(S:0.9672) V:0.042501(S:0.9466) LR:2.96e-05
|
| 85 |
+
[2026-04-11 18:11:08] pole_position E90/100 | T:0.026795(S:0.9678) V:0.042639(S:0.9464) LR:8.32e-06
|
| 86 |
+
[2026-04-11 18:12:49] pole_position E100/100 | T:0.026658(S:0.9680) V:0.042839(S:0.9462) LR:1.00e-06
|
| 87 |
+
[2026-04-11 18:12:49] pole_position done. Best: 0.041426
|
| 88 |
+
[2026-04-11 18:12:49] === sonic ===
|
| 89 |
+
[2026-04-11 18:12:49] sonic: 3,071,016 params (5.9 MB fp16)
|
| 90 |
+
[2026-04-11 18:12:54] sonic train: 30848 seqs (len=16)
|
| 91 |
+
[2026-04-11 18:12:54] sonic val: 3856 seqs (len=16)
|
| 92 |
+
[2026-04-11 18:14:11] sonic E1/100 | T:0.175591(S:0.7765) V:0.157856(S:0.8006) LR:3.00e-04
|
| 93 |
+
[2026-04-11 18:15:26] sonic E2/100 | T:0.159479(S:0.7978) V:0.149752(S:0.8110) LR:3.00e-04
|
| 94 |
+
[2026-04-11 18:16:41] sonic E3/100 | T:0.153539(S:0.8056) V:0.147334(S:0.8155) LR:2.99e-04
|
| 95 |
+
[2026-04-11 18:17:56] sonic E4/100 | T:0.149574(S:0.8108) V:0.144793(S:0.8177) LR:2.99e-04
|
| 96 |
+
[2026-04-11 18:19:11] sonic E5/100 | T:0.145852(S:0.8157) V:0.143262(S:0.8198) LR:2.98e-04
|
| 97 |
+
[2026-04-11 18:20:26] sonic E6/100 | T:0.142932(S:0.8196) V:0.142910(S:0.8208) LR:2.97e-04
|
| 98 |
+
[2026-04-11 18:22:55] sonic E8/100 | T:0.137437(S:0.8268) V:0.140100(S:0.8241) LR:2.95e-04
|
| 99 |
+
[2026-04-11 18:25:24] sonic E10/100 | T:0.132863(S:0.8329) V:0.137565(S:0.8273) LR:2.93e-04
|
| 100 |
+
[2026-04-11 18:31:35] sonic E15/100 | T:0.123970(S:0.8445) V:0.137460(S:0.8275) LR:2.84e-04
|
| 101 |
+
[2026-04-11 18:35:22] sonic E18/100 | T:0.119989(S:0.8498) V:0.137060(S:0.8281) LR:2.77e-04
|
| 102 |
+
[2026-04-11 18:36:34] sonic E19/100 | T:0.118824(S:0.8513) V:0.137037(S:0.8283) LR:2.75e-04
|
| 103 |
+
[2026-04-11 18:37:49] sonic E20/100 | T:0.117435(S:0.8531) V:0.137332(S:0.8278) LR:2.72e-04
|
| 104 |
+
[2026-04-11 18:39:04] sonic E21/100 | T:0.116390(S:0.8545) V:0.135734(S:0.8299) LR:2.70e-04
|
| 105 |
+
[2026-04-11 18:50:11] sonic E30/100 | T:0.108528(S:0.8649) V:0.139606(S:0.8249) LR:2.40e-04
|
| 106 |
+
[2026-04-11 19:02:35] sonic E40/100 | T:0.102536(S:0.8727) V:0.138633(S:0.8262) LR:2.00e-04
|
| 107 |
+
[2026-04-11 19:14:57] sonic E50/100 | T:0.098295(S:0.8783) V:0.139113(S:0.8252) LR:1.55e-04
|
| 108 |
+
[2026-04-11 19:27:10] sonic E60/100 | T:0.095048(S:0.8826) V:0.138777(S:0.8255) LR:1.10e-04
|
| 109 |
+
[2026-04-11 19:39:39] sonic E70/100 | T:0.092648(S:0.8857) V:0.141122(S:0.8224) LR:6.98e-05
|
| 110 |
+
[2026-04-11 19:52:02] sonic E80/100 | T:0.091056(S:0.8878) V:0.140701(S:0.8231) LR:3.77e-05
|
| 111 |
+
[2026-04-11 20:04:24] sonic E90/100 | T:0.090060(S:0.8891) V:0.141902(S:0.8214) LR:1.71e-05
|
| 112 |
+
[2026-04-11 20:16:49] sonic E100/100 | T:0.089632(S:0.8897) V:0.141938(S:0.8214) LR:1.00e-05
|
| 113 |
+
[2026-04-11 20:16:49] sonic done. Best: 0.135734
|
| 114 |
+
[2026-04-11 20:16:49] pong: 2.3 MB
|
| 115 |
+
[2026-04-11 20:16:49] pole_position: 2.8 MB
|
| 116 |
+
[2026-04-11 20:16:49] sonic: 5.9 MB
|
| 117 |
+
[2026-04-11 20:16:49] Total: 11.1 MB
|
| 118 |
+
[2026-04-11 20:16:49] Training complete!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|