Skip to content

vkroz/neural-machines

Repository files navigation

Neural Machines

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.

Setup work environment

Prerequisites

Setup on local machine:

Prerequisites

  1. 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
  1. Setup GIT lfs
brew install git-lfs
git lfs install

Use virtual environment

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 server

./sync_to_remote.sh

Mananging conda environments

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

About

Random posts and code snippets covering topics in Search, GenAI, and Deep Learning

Topics

Resources

Stars

Watchers

Forks