pytorch

command
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

README

Training code for CNN with PyTorch.

Installation

On my Linux box with NVIDIA gfx card (your setup may vary):

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

Running pipeline

  • Go to cmd/mlproducer and do go build
  • Collect lots of data with autoplay and copy /tmp/autoplay.txt somewhere
  • Activate your venv then cat /tmp/autoplay.txt | ../cmd/mlproducer/mlproducer | python3 training.py
  • You can pipe in pv -br after the call to mlproducer to see what the byte rate is. I see like 700 MiB on my computer. It can probably be made faster with more efficient mlproducer code.
  • Wait a long time (maybe not that long, depends on how many games you used).
  • Profit!

Convert

export.py - export to onnx onnx-to-tensorrt.py - make sure the python tensorrt version matches whatever the triton container expects. this part is a pain in the ass. (pip install tensorrt==10.11.0.33 for example)

Documentation

Overview

trickle.go – reads 1 KiB per second

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL