Collection of python scripts, and notebooks for exploratory learning of LLMs, agents and AI. Covers various prompts engineering techniques, RAG, ReAct, fine-tuning, and more.
- Miniconda https://docs.anaconda.com/miniconda/install/
- Mise package manager https://mise.jdx.dev/getting-started.html
- Have miniconda installed
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
bash ./Miniconda3-latest-MacOSX-arm64.sh
rm ./Miniconda3-latest-MacOSX-arm64.sh
- Setup GIT lfs
brew install git-lfs
git lfs install
Create from config file
# For MacOS
conda env create -f environment-macos.yml
# For Linux
conda env create -f environment-linux.yml
Activate to use
conda activate neumans
./sync_to_remote.sh
Create from scratch
conda create -n neumans python=3.10
conda activate neumans
conda install -c conda-forge transformers datasets -y
conda install -c conda-forge scikit-learn -y
conda install -c conda-forge jupyter matplotlib seaborn plotly -y
conda install sentencepiece protobuf -y
pip install torch torchvision
pip install hnswlib
Save config file from current environment
conda env export > environment-macos.yml