LitGPT

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jun 20 15:1
Editor
Edited
Edited
2024 Jun 9 12:59
Refs
Refs
OpenLLaMa
not available for
git clone https://github.com/Lightning-AI/lit-gpt cd lit-gpt # pip install pytorch pip install --index-url https://download.pytorch.org/whl/nightly/cu118 --pre 'torch>=2.1.0dev' pip install -r requirements.txt pip uninstall -y lightning; pip install -r requirements.txt pip install sentencepiece
 

Download mode and so annoying~

python scripts/download.py --repo_id openlm-research/open_llama_3b python scripts/convert_hf_checkpoint.py --checkpoint_dir checkpoints/openlm-research/open_llama_3b python quantize/gptq.py --checkpoint_dir checkpoints/openlm-research/open_llama_3b python generate/base.py --prompt "Hello, my name is" --checkpoint_dir checkpoints/openlm-research/open_llama_3b --quantize gptq.int4
 

mac

export PYTORCH_ENABLE_MPS_FALLBACK=1 --precision 16-true
 
 
 
 
 
Why We're Building Lit-LLaMA - Lightning AI
The Age of Personal AI Large language models (LLMs) have rapidly gained popularity across the globe. These models are trained to predict the next word in extensive datasets of raw text, exhibiting emergent abilities to complete tasks they were not specifically trained for (e.g., summarizing a sentence in Shakespearean style or playing the next move... Read more »
Why We're Building Lit-LLaMA - Lightning AI
 
 

Recommendations