Skip to content

Instantly share code, notes, and snippets.

View river's full-sized avatar

River Jiang river

View GitHub Profile
.DS_Store
# #!/bin/sh
#
# # Alot of these configs have been taken from the various places
# # on the web, most from here
# # https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# # Set the colours you can use
# black='\033[0;30m'
# white='\033[0;37m'
# red='\033[0;31m'
https://ournh.northernhealth.ca/oursites/projects/PACSSysUpg/OurNH%20Documents/Agfa%20EI%20PowerChart%20(XERO)%20Quick%20Tips.pdf
"""
Test pytorch multi gpu runs
Usage (from repo root, with uv):
uv run scripts/ddp_sanity_check.py --devices 0 1
This will:
- spawn one process per device
- run a few training steps on random data
# /// script
# requires-python = "==3.12.12"
# dependencies = [
# "torch==2.2.1",
# "numpy==1.26.4",
# "lightning==2.6.0",
# "torchvision==0.17.1",
# ]
# ///
"""
Video loading utilities using decord.
Provides efficient video decoding with configurable sampling strategies
and preprocessing for the video encoder.
"""
from enum import Enum
from typing import List, Literal