Skip to content

Instantly share code, notes, and snippets.

Avatar

Saurabh saurabh-kataria

View GitHub Profile
@saurabh-kataria
saurabh-kataria / ddp_example.py
Created Feb 21, 2021 — forked from sgraaf/ddp_example.py
PyTorch Distributed Data Parallel (DDP) example
View ddp_example.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from argparse import ArgumentParser
import torch
import torch.distributed as dist
from torch.nn.parallel import DistributedDataParallel as DDP
from torch.utils.data import DataLoader, Dataset
from torch.utils.data.distributed import DistributedSampler
from transformers import BertForMaskedLM
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@saurabh-kataria
saurabh-kataria / sge_status.md
Created Jun 22, 2018 — forked from cmaureir/sge_status.md
Sun Grid Engine SGE state letter symbol codes meanings
View sge_status.md
@saurabh-kataria
saurabh-kataria / springer-free-maths-books.md
Created Dec 29, 2015 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links