Multiple GPTQ parameter permutations are provided; see Provided Files below for details of the options provided, their parameters, and the software used to create them.
These files were quantised using hardware kindly provided by Massed Compute.
This may not be a complete list; if you know of others, please let me know!
Provided files, and GPTQ parameters
Multiple quantisation parameters are provided, to allow you to choose the best one for your hardware and requirements.
Each separate quant is in a different branch. See below for instructions on fetching from different branches.
Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with Transformers.
Explanation of GPTQ parameters
Bits: The bit size of the quantised model.
GS: GPTQ group size. Higher numbers use less VRAM, but have lower quantisation accuracy. "None" is the lowest possible value.
Act Order: True or False. Also known as desc_act. True results in better quantisation accuracy. Some GPTQ clients have had issues with models that use Act Order plus Group Size, but this is generally resolved now.
Damp %: A GPTQ parameter that affects how samples are processed for quantisation. 0.01 is default, but 0.1 results in slightly better accuracy.
GPTQ dataset: The calibration dataset used during quantisation. Using a dataset more appropriate to the model's training can improve quantisation accuracy. Note that the GPTQ calibration dataset is not the same as the dataset used to train the model - please refer to the original model repo for details of the training dataset(s).
Sequence Length: The length of the dataset sequences used for quantisation. Ideally this is the same as the model sequence length. For some very long sequence models (16+K), a lower sequence length may have to be used. Note that a lower sequence length does not limit the sequence length of the quantised model. It only impacts the quantisation accuracy on longer inference sequences.
ExLlama Compatibility: Whether this file can be loaded with ExLlama, which currently only supports Llama and Mistral models in 4-bit.
If you remove the --local-dir-use-symlinks False parameter, the files will instead be stored in the central Hugging Face cache directory (default location on Linux is: ~/.cache/huggingface), and symlinks will be added to the specified --local-dir, pointing to their real location in the cache. This allows for interrupted downloads to be resumed, and allows you to quickly clone the repo to multiple places on disk without triggering a download again. The downside, and the reason why I don't list that as the default option, is that the files are then hidden away in a cache folder and it's harder to know where your disk space is being used, and to clear it up if/when you want to remove a download model.
The cache location can be changed with the HF_HOME environment variable, and/or the --cache-dir parameter to huggingface-cli.
Note that using Git with HF repos is strongly discouraged. It will be much slower than using huggingface-hub, and will use twice as much disk space as it has to store the model files twice (it stores every byte both in the intended target folder, and again in the .git folder as a blob.)
Python code example: inference from this GPTQ model
Install the necessary packages
Requires: Transformers 4.33.0 or later, Optimum 1.12.0 or later, and AutoGPTQ 0.4.2 or later.
shell
1pip3 install --upgrade transformers optimum
2# If using PyTorch 2.1 + CUDA 12.x:3pip3 install --upgrade auto-gptq
4# or, if using PyTorch 2.1 + CUDA 11.x:5pip3 install --upgrade auto-gptq --extra-index-url https://huggingface.github.io/autogptq-index/whl/cu118/
If you are using PyTorch 2.0, you will need to install AutoGPTQ from source. Likewise if you have problems with the pre-built wheels, you should try building from source:
I've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.
If you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.
Donaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.
Patreon special mentions: Brandon Frisco, LangChain4j, Spiking Neurons AB, transmissions 11, Joseph William Delisle, Nitin Borwankar, Willem Michiel, Michael Dempsey, vamX, Jeffrey Morgan, zynix, jjj, Omer Bin Jawed, Sean Connelly, jinyuan sun, Jeromy Smith, Shadi, Pawan Osman, Chadd, Elijah Stavena, Illia Dulskyi, Sebastain Graf, Stephen Murray, terasurfer, Edmond Seymore, Celu Ramasamy, Mandus, Alex, biorpg, Ajan Kanaga, Clay Pascal, Raven Klaugh, 阿明, K, ya boyyy, usrbinkat, Alicia Loh, John Villwock, ReadyPlayerEmma, Chris Smitley, Cap'n Zoog, fincy, GodLy, S_X, sidney chen, Cory Kujawski, OG, Mano Prime, AzureBlack, Pieter, Kalila, Spencer Kim, Tom X Nguyen, Stanislav Ovsiannikov, Michael Levine, Andrey, Trailburnt, Vadim, Enrico Ros, Talal Aujan, Brandon Phillips, Jack West, Eugene Pentland, Michael Davis, Will Dee, webtim, Jonathan Leane, Alps Aficionado, Rooh Singh, Tiffany J. Kim, theTransient, Luke @flexchar, Elle, Caitlyn Gatomon, Ari Malik, subjectnull, Johann-Peter Hartmann, Trenton Dambrowitz, Imad Khwaja, Asp the Wyvern, Emad Mostaque, Rainer Wilmers, Alexandros Triantafyllidis, Nicholas, Pedro Madruga, SuperWojo, Harry Royden McLaughlin, James Bentley, Olakabola, David Ziegler, Ai Maven, Jeff Scroggin, Nikolai Manek, Deo Leter, Matthew Berman, Fen Risland, Ken Nordquist, Manuel Alberto Morcote, Luke Pendergrass, TL, Fred von Graf, Randy H, Dan Guido, NimbleBox.ai, Vitor Caleffi, Gabriel Tamborski, knownsqashed, Lone Striker, Erik Bjäreholt, John Detwiler, Leonard Tan, Iucharbius
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
Original model card: pansophic's Rocket 3B
Rocket Logo
Rocket-3B 🦝
Rocket 🦝 is a 3 billion large language model that was trained on a mix of publicly available datasets using Direct Preference Optimization (DPO). The prompt format used is ChatML.
Model description
Model type: A 3B parameter GPT-like model fine-tuned on a mix of publicly available datasets using DPO.
Despite its compact dimensions, the model achieves outstanding scores in both MT-Bench MT-Bench and AlpacaEval benchmarks, surpassing the performance of considerably larger models.
Model
Size
Alignment
MT-Bench (score)
AlpacaEval (win rate %)
StableLM-Tuned-α 🦜
7B
SFT
2.75
-
MPT-Chat
7B
SFT
5.42
-
Falcon-Instruct 🦅
40B
SFT
5.17
45.71
Orca-2
13B
SFT
6.15
-
Xwin-LMv0.1
7B
PPO
6.19
87.83
Llama2-Chat 🦙
7B
RLHF
6.26
71.37
TÜLU 2 🐫
7B
DPO
6.27
85.1
Guanaco 🦙
65B
SFT
6.41
71.80
Rocket 🦝
3B
DPO
6.56
79.75
Llama2-Chat 🦙
13B
RLHF
6.65
81.09
Zephyr-7b-α 🪁
7B
DPO
6.88
-
Vicuna v1.3 🦙
33B
SFT
7.12
88.99
Zephyr-7b-β 🪁
7B
DPO
7.34
90.60
WizardLM v1.0 🦙
70B
SFT
7.71
-
GPT-3.5-turbo
-
RLHF
7.94
89.37
Specifically, across various categories within the MT-Bench evaluation, Rocket-3B demonstrates impressive performance when compared to larger open models such as Llama2-Chat-7B, Falcon-40B-Instruct, and Guanaco-65B.
MT-Bench results
MT-Bench detailed score for first and second turn
In MT-Bench, Rocket 🦝 scores 6.99 in the first turn and 6.13 in the second turn, with an average score of 6.56. These scores reflect the model's performance in understanding and generating text during different parts of a conversation.
Model
First turn
Second turn
Average
Rocket 🦝
6.99
6.13
6.56
AlpacaEval detailed scores
In AlpacaEval, Rocket 🦝 achieves a near 80% win rate, coupled with an average response length of 1,242 tokens, indicating its effectiveness in producing detailed responses.
Model
Win rate
Std error
Average length
Rocket 🦝
79.75
1.42
1242
Other benchmarks
Metric
Value
ARC (25-shot)
50.51
HellaSwag (0-shot)
73.91
TruthfulQA (mc2) (0-shot)
54.38
BoolQ (0-shot)
81.71
Winogrande (5-shot)
67.8
GSM8K (5-shot)
37.91
MathQA (5-shot)
31.26
Intended uses & limitations
Initially, we fine-tuned the model using a dataset created by merging and curating multiple datasets, available on the HuggingFace Hub. This dataset will be released to the public soon. We further enhanced the model's performance using DPO, selecting samples from the openbmb/UltraFeedback and BAAI/JudgeLM-100K datasets. The outcome is a highly effective chat model with a 3 billion parameter scale.
Input Format
The model is trained with the ChatML format:
<|im_start|>system
System message here.<|im_end|>
<|im_start|>user
Your message here!<|im_end|>
<|im_start|>assistant
Here's how you can run the model using 🤗 Transformers:
python
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
34model = AutoModelForCausalLM.from_pretrained("pansophic/rocket-3B", trust_remote_code=True, torch_dtype=torch.bfloat16).to("cuda")5tokenizer = AutoTokenizer.from_pretrained("pansophic/rocket-3B", trust_remote_code=True, torch_dtype=torch.bfloat16)6streamer = TextStreamer(tokenizer)78prompt ="""<|im_start|>system
9{system}<|im_end|>
10<|im_start|>user
11{user}<|im_end|>
12<|im_start|>assistant
13"""1415system ="You are a helpful assistant."16user ="How are you?"1718# Apply the ChatML format19prompt = prompt.format(system=system, user=user)2021# Tokenize the prompt22inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to("cuda")23generated_text = model.generate(**inputs, max_length=3084, top_p=0.95, do_sample=True, temperature=0.7, use_cache=True, streamer=streamer)2425# <|im_start|>system26# You are a chef who makes everything sound like a secret culinary masterpiece, even everyday meals.<|im_end|>27# <|im_start|>user28# How to cook an omelette?<|im_end|>29# <|im_start|>assistant30# Ah, the art of crafting the perfect omelette, a secret culinary masterpiece indeed.31# Begin by gently whisking two to three eggs in a mixing bowl, and then pour the silky liquid into a non-stick pan.32# Allow the eggs to dance and sizzle as you swiftly tilt the pan to spread the joy throughout the entire omelette universe.33# As the edges begin to set, fold the omelette in half with a gentle flourish, and you'll witness a stunning display of culinary prowess.34# Enjoy this enchanting creation, and you'll be transported to a world of secret culinary mastery.<|im_end|>
Bias, Risks, and Limitations
Unlike ChatGPT, which incorporates in-the-loop filtering of responses and is aligned during the RLHF phase for safe completions, our model lacks these features. Consequently, it may generate problematic outputs, particularly when prompted in certain ways. Below is the score of the model on Toxigen benchmark.
*The model name is inspired by the small but formidable character from 'Guardians of the Galaxy'. Similar to its namesake, this model, with its 3 billion parameters, showcases remarkable efficiency and effectiveness, challenging larger models despite its smaller size."