Skip to content

Playing with LLM for fun

License

Notifications You must be signed in to change notification settings

serhii-m-prime/LLM-SandBox

Repository files navigation

Set Up

Clone project

git clone git@github.com:Serhii-M-prime/LLM-SandBox.git

Enter project folder

cd LLM-SandBox

Create run env folder

mkdir venv-run

Create python env for project

# might be python3 if your OS not configured for work with python
python -m venv venv-run

Activate python env for run app

source venv-run/bin/activate

(OPTIONAL) create .env file for cache control

echo "HF_HOME=\"$PWD/.cache/huggingface\"
HF_HUB_CACHE=\"$PWD/.cache/huggingface/hub\"
HF_ASSETS_CACHE=\"$PWD/.cache/huggingface/assets\"
HF_DATASETS_CACHE=\"$PWD/.cache/huggingface/datasets\"
TRANSFORMERS_CACHE=\"$PWD/.cache/huggingface/models\"" > .env

Install dependencies

# might be pip3 if your OS not configured for work with python
pip install -r requirements.run.txt

Run chat (waiting for downloading models) (auto open in default browser on host http://localhost:8000/)

chainlit run app.py

Fine tune pretrained model

Training tool https://ludwig.ai/latest/

Create separate python env to avoid dependencies versions conflicts

mkdir "venv-tune"
# might be python3 if your OS not configured for work with python
python -m venv venv-tune/
source venv-tune/bin/activate

Install dependencies

# might be pip3 if your OS not configured for work with python
pip install -r requirements.tune.txt

About

Playing with LLM for fun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages