Downloads · 30 days
0
JamesK2W/csbc-pytorch
csbc-pytorch is a machine learning model from JamesK2W. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A faithful PyTorch/ONNX conversion of Tim Pearce's Counter-Strike Behavioural Cloning model (ak47sub55kdropd4dmexpert28, stateful variant), produced for the Kairos GUI-agent project.
Downloads · 30 days
0
Access
Public
Updated Jun 5, 2026
Repo size
25.9 MB
Likes
0
Public
Click a slice to open those files.
.npz22.4 MB · 87%
From the Hugging Face model README
A faithful PyTorch/ONNX conversion of Tim Pearce's
Counter-Strike Behavioural Cloning
model (ak47_sub_55k_drop_d4_dmexpert_28, stateful variant), produced for the
Kairos GUI-agent project.
The original model is Keras / TensorFlow 2.3 (CUDA 10.1, won't use a 40-series GPU). This port runs on any modern CUDA via PyTorch: EfficientNet-B0 trunk (ONNX → onnx2torch) + a hand-written stateful ConvLSTM head. Verified numerically equal to Keras (zero-state max diff ~5e-7, 3-frame stateful sequence ~2e-6), ~3 ms/forward on a 4090.
| file | what |
|---|---|
csbc_backbone.onnx | feedforward EfficientNet-B0 trunk (loaded via onnx2torch) |
csbc_head_weights.npz | ConvLSTM2D(256) + 5 dense-head weights (applied in torch) |
csbc_ref.npz | Keras reference outputs on fixed inputs (for the torch self-test) |
python examples/csbc_agent/scripts/download_torch_weights.py --repo-id JamesK2W/csbc-pytorch
python examples/csbc_agent/run.py --backend torch --model-dir examples/csbc_agent/models
cv2.resize to 280×150 → float32 (no /255;
EfficientNet rescales internally). Tensor shape (1, 150, 280, 3).[0:11] keys (w a s d space ctrl shift 1 2 3 r),
[11:13] mouse L/R, [13:36] mouse-x argmax (23 buckets), [36:51] mouse-y
argmax (15 buckets), [51] value (ignored).reset_state()
per episode and feed one frame at a time.Weights derive from the upstream CSBC release (MIT). Academic / offline use only.