Skip to content

Instantly share code, notes, and snippets.

@scottchu
Last active January 1, 2022 22:11
Show Gist options
  • Save scottchu/93cf8db5630bd4bdba4ca6b6e443b05a to your computer and use it in GitHub Desktop.
Save scottchu/93cf8db5630bd4bdba4ca6b6e443b05a to your computer and use it in GitHub Desktop.
Setting up snorkel+jupyter+tensorflow on M1
# updated 2021-11-21
# Create conda environment
conda create --name snorkel "python=3.9" -y
conda activate snorkel
# Install Additional Packages
conda install -y \
"numpy<1.20.0" \
"pandas==1.3.3" \
"scipy<2.0.0" \
"scikit-learn<0.25.0" \
grpcio \
spacy \
pytorch \
sentencepiece \
transformers
# Install Tensorflow
conda install -c apple tensorflow-deps -y
pip install tensorflow-macos tensorflow-metal
pip install pytorch-transformers jupyterlab snorkel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment