Skip to content

Instantly share code, notes, and snippets.

@vitorcalvi
Last active May 13, 2024 20:49
Show Gist options
  • Save vitorcalvi/7a05162688b1ee57a781b58bc439ce85 to your computer and use it in GitHub Desktop.
Save vitorcalvi/7a05162688b1ee57a781b58bc439ce85 to your computer and use it in GitHub Desktop.
Jupyter Notebook Tensorflow Mac

TF JUPYTER LAB MAC METAL

conda create --name ollama python=3.10 -y && conda activate ollama && 
conda install -c apple tensorflow-deps -y && pip install tensorflow-macos && pip install tensorflow-metal && conda install notebook -y && pip install numpy  --upgrade && pip install pandas  --upgrade && pip install matplotlib  --upgrade && pip install scikit-learn  --upgrade && pip install scipy  --upgrade && pip install plotly  --upgrade && pip install jupyterlab && 
pip3 install chardet && conda activate ollama && sudo mkdir /Users/vitorcalvi/Desktop/JupyterNotebooks

Jupiter lab

jupyter lab --NotebookApp.token='' --notebook-dir="/Users/vitorcalvi/Desktop/JupyterNotebooks" --allow-root --port 9999

Performance monitoring CLI tool for Apple Silicon

pip install asitop
asitop

Chroma - Vector DB

pip install chromadb
chroma run # run the server

LongChain

pip install langchain

Pypdf

pip install pypdf

Transf

pip install sentence-transformers

pip install ipywidgets

pip install ipywidgets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment