This is a project from my learnings from various resources Online like https://github.com/ed-donner/llm_engineering and more.
-
Install Anaconda:
-
Set up the environment: Create the environment:
conda env create -f environment.ymland then activate by using the commandconda activate llm_env -
Start Jupyter lab:
jupyter lab -
python -m pip install --upgrade pip and then do
pip install -r requirements.txtwhich takes about a few mins to install all dependencies mentioned inside the requirements.txt file. -
Get Open AI's key from
https://platform.openai.com/api-keysand create .env files and paste the key with a keyOPENAI_API_KEY=sk-proj-*
Denefits of Ollama: No API charges - open-source and Data doesn't leave your box while its significantly less power than Frontier Models.
-
Install Ollama from ollama.com
-
install the models that you want to run
ollama run llama3.2and then to start the server runollama serve -
verify if the ollama is running
http://localhost:11434/