Skip to content

Instantly share code, notes, and snippets.

View IamAdiSri's full-sized avatar
🎯
Focusing

Aditya Srivastava IamAdiSri

🎯
Focusing
View GitHub Profile
@IamAdiSri
IamAdiSri / average_checkpoints.py
Created April 11, 2022 09:54 — forked from ArtVanderlay/average_checkpoints.py
checkpoint averaging script for huggingface models in pytorch
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Slightly tweaked version of https://github.com/pytorch/fairseq/blob/master/scripts/average_checkpoints.py
# To work with Huggingface wav2vec2
import argparse
@IamAdiSri
IamAdiSri / Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Last active May 9, 2022 22:08 — forked from evansneath/Python3 Virtualenv Setup
Setting up and using Python3, Pip3, Virtualenv (for Python3) and Virtualenvwrapper (for Python3)
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py
$ cd <download location>
$ sudo -H python ./get-pip.py
Installing pip also installs Python3
To run Python3
$ python3
Install pip3 by just executing the same file as in the step above, but this time using Python3
$ sudo -H python3 ./get-pip.py