Views
No views yet
1# Install git-lfs
2sudo apt install git git-lfs
3
4# Clone the code
5git clone https://github.com/catid/GPTQ-for-LLaMa-65B-2GPU
6cd GPTQ-for-LLaMa-65B-2GPU
7
8# Clone the model weights
9git lfs install
10git clone https://huggingface.co/catid/llama-65b-4bit
11
12# Set up conda environment
13conda create -n gptq python=3.10
14conda activate gptq
15
16# Install script dependencies
17pip install -r requirements.txt
18
19# Work around protobuf error
20export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
21
22# Run a test
23python llama_inference.py llama-65b-4bit --load llama-65b-4bit/llama65b-4bit-128g.safetensors --groupsize 128 --wbits 4 --text "I woke up with a dent in my forehead. " --max_length 128 --min_length 32