ozcur commited on
Commit
5255d12
1 Parent(s): 77b0f08

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -1
README.md CHANGED
@@ -1,5 +1,24 @@
1
  This is 4-bit quantization of [chavinlo/alpaca-native](https://huggingface.co/chavinlo/alpaca-native) (`cecc16d`) via [qwopqwop200/GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa) (`5cdfad2`).
2
 
3
- Invoked as:
4
 
5
  `llama.py /output/path c4 --wbits 4 --groupsize 128 --save alpaca7b-4bit.pt`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  This is 4-bit quantization of [chavinlo/alpaca-native](https://huggingface.co/chavinlo/alpaca-native) (`cecc16d`) via [qwopqwop200/GPTQ-for-LLaMa](https://github.com/qwopqwop200/GPTQ-for-LLaMa) (`5cdfad2`).
2
 
3
+ Quantization invoked as such:
4
 
5
  `llama.py /output/path c4 --wbits 4 --groupsize 128 --save alpaca7b-4bit.pt`
6
+
7
+ Inference example from the GPTQ repo and commit referenced above:
8
+
9
+ ```
10
+ (gptq) [root@gpu03 GPTQ-for-LLaMa]# CUDA_VISIBLE_DEVICES=0 python llama_inference.py /root/alpaca-native-4bit --wbits 4 --groupsize 128 --load /root/alpaca-native-4bit/alpaca7b-4bit.pt --max_length 300 --text "$(cat test_prompt.txt)"
11
+ Loading model ...
12
+ Done.
13
+ ### Instruction: What is an alpaca? How is it different from a llama?
14
+ ### Response: Alpacas are soft and gentle, while llamas are stubborn and independent.</s>
15
+ (gptq) [root@gpu03 GPTQ-for-LLaMa]# CUDA_VISIBLE_DEVICES=0 python llama_inference.py /root/alpaca-native-4bit --wbits 4 --groupsize 128 --load /root/alpaca-native-4bit/alpaca7b-4bit.pt --max_length 300 --text "$(cat test_prompt.txt)"
16
+ Loading model ...
17
+ Done.
18
+ ### Instruction: What is an alpaca? How is it different from a llama?
19
+ ### Response: An alpaca is a small, domesticated species of livestock from the Andes region of South America. It is typically kept as a pet, and its fibers can be used for various purposes, such as making clothing and crafts. Alpacas are typically brown or black, and their ears and tails are often moved.
20
+ Although it is different from a llama, the two animals are often compared to when referring to their behavior.</s>
21
+ (gptq) [root@gpu03 GPTQ-for-LLaMa]# md5sum /root/alpaca-native-4bit/alpaca7b-4bit.pt
22
+ 74849953cc54e313b972d2cc9a05c24b /root/alpaca-native-4bit/alpaca7b-4bit.pt
23
+ (gptq) [root@gpu03 GPTQ-for-LLaMa]#
24
+ ```