ojaffe commited on
Commit
28542cf
·
verified ·
1 Parent(s): f6e18f6

Upload folder using huggingface_hub

Browse files
__pycache__/predict.cpython-311.pyc CHANGED
Binary files a/__pycache__/predict.cpython-311.pyc and b/__pycache__/predict.cpython-311.pyc differ
 
predict.py CHANGED
@@ -1,4 +1,4 @@
1
- """Selective int8: only Sonic direct quantized to int8, Sonic AR kept in fp16."""
2
  import sys
3
  import os
4
  import numpy as np
@@ -167,7 +167,7 @@ def predict_next_frame(ens, context_frames: np.ndarray) -> np.ndarray:
167
 
168
  predicted = torch.zeros_like(direct_pred)
169
  for step in range(PRED_FRAMES):
170
- ar_weight = 0.7 - (step / (PRED_FRAMES - 1)) * 0.4
171
  direct_weight = 1.0 - ar_weight
172
  predicted[:, step] = ar_weight * ar_pred[:, step] + direct_weight * direct_pred[:, step]
173
 
 
1
+ """Optimized blend: Pong AR weight 0.85->0.65, Sonic unchanged 0.7->0.3."""
2
  import sys
3
  import os
4
  import numpy as np
 
167
 
168
  predicted = torch.zeros_like(direct_pred)
169
  for step in range(PRED_FRAMES):
170
+ ar_weight = 0.85 - (step / (PRED_FRAMES - 1)) * 0.2
171
  direct_weight = 1.0 - ar_weight
172
  predicted[:, step] = ar_weight * ar_pred[:, step] + direct_weight * direct_pred[:, step]
173