Home/Model Training/alpaca-lora
alpaca-lora logo

alpaca-lora

Enrichment pending
tloen/alpaca-lora

Instruct-tune LLaMA on consumer hardware

GraphCanon updated today · GitHub synced today

19k
Stars
2.2k
Forks
366
Open issues
150
Watchers
1y
Last push
Jupyter Notebook Apache-2.0Created Mar 13, 2023

Trust & integrity

Full report
Maintenance
Dormant (712d since push)
As of today · Source: github_public_v1
Provenance
Not a fork · Personal account
As of today · Source: github_public_v1
Security (OSV)
1 critical, 5 high, 12 medium, 28 low (1 critical, 5 high, 12 medium, 28 low)
As of today · Source: osv@v1

Public GitHub metadata and optional OSV dependency scans. Signals, not a guarantee. Trust methodology.

Overview

Instruct-tune LLaMA on consumer hardware

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Jul 11, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Jul 11, 2026

Languages
jupyter notebook, python

Source: github.language+pyproject.toml · Jul 11, 2026

Categories

Tags

README

Docker Setup & Inference

  1. Build the container image:
docker build -t alpaca-lora .
  1. Run the container (you can also use finetune.py and all of its parameters as shown above for training):
docker run --gpus=all --shm-size 64g -p 7860:7860 -v ${HOME}/.cache:/root/.cache --rm alpaca-lora generate.py \
    --load_8bit \
    --base_model 'decapoda-research/llama-7b-hf' \
    --lora_weights 'tloen/alpaca-lora-7b'
  1. Open https://localhost:7860 in the browser

Docker Compose Setup & Inference

  1. (optional) Change desired model and weights under environment in the docker-compose.yml

  2. Build and run the container

docker-compose up -d --build
  1. Open https://localhost:7860 in the browser

  2. See logs:

docker-compose logs -f
  1. Clean everything up:
docker-compose down --volumes --rmi all