Korean Chatbot based on Google Gemma
git clone https://github.com/seonglae/yokhal && cd yokhal
pip3 install torch==2.1.2 --index-url https://download.pytorch.org/whl/cu121
pip install .
# Optional for flash attention
pip install git+https://github.com/NVIDIA/TransformerEngine.git@stable
# Generate test text
python test.py generate
# Calculate Perplexity
python test.py ppl
# Finetune a full Yokhal
python train.py finetune
# PEFT with QLoRA
python train.py adapt