Skip to content

Instantly share code, notes, and snippets.

View thethiny's full-sized avatar
🤩
Potatoes ready to harvest

thethiny thethiny

🤩
Potatoes ready to harvest
View GitHub Profile
@thethiny
thethiny / _myatari.py
Created September 23, 2025 13:21 — forked from qpwo/_myatari.py
atari realtime rl runner
#!/usr/bin/env python3
import torch, gymnasium as gym, numpy as np, time, sys, threading, os, random
import torch.multiprocessing as mp
from torch import Tensor
from bg_record import log_step, bind_logger, log_close
# torch.set_num_threads(1)
NUM_PROCS = 16