Skip to content

Instantly share code, notes, and snippets.

@xenova
xenova / tiktoken-to-hf.ipynb
Last active October 13, 2025 17:58
Convert tiktoken tokenizers to the Hugging Face tokenizers format
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@santurini
santurini / deepspeed-ddp.md
Last active March 9, 2025 07:49
DeepSpeed Multi-node Training Setup

In this tutorial we assume to launch a distributed training on 2 nodes using DeepSpeed with the OpenMPI Launcher.

  1. First of all DeepSpeed needs a passwordless ssh connection with all the nodes, MASTER included:
# generate a public/private ssh key and make sure to NOT insert a passphrase

ssh-keygen -t rsa

# copy public key 'id_rsa' on the MASTER and SLAVE
@fepegar
fepegar / README.md
Last active April 14, 2024 07:31
Python function to create maximum intensity projections using SimpleITK

Requirements:

  • Python
  • SimpleITK
  • NumPy

Install

conda install numpy -y