Skip to content

Instantly share code, notes, and snippets.

View spezold's full-sized avatar

Simon Pezold spezold

  • Basel (CH)
View GitHub Profile
@johnmeade
johnmeade / pool_data_loader.py
Created July 13, 2019 19:50
A Python multiprocessing pool drop-in replacement for the PyTorch DataLoader class
'''
A multiprocessing Pool drop-in replacement for the pytorch
DataLoader class. Built to work around an apparent bug in
the default pytorch DataLoader, in which it hangs indefinitely.
It is possible to reach a sustained 95-100% GPU usage (as
reported by `nvidia-smi`) using this implementation.
Requirements:
pip install filelock
@jctosta
jctosta / screen_cheatsheet.markdown
Last active April 24, 2025 10:08
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r