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 models were quantised using hardware kindly provided by Latitude.sh.
A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
USER: {prompt}
ASSISTANT:
Provided files
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.
Branch
Bits
Group Size
Act Order (desc_act)
File Size
ExLlama Compatible?
Made With
Description
main
4
128
False
4.00 GB
True
GPTQ-for-LLaMa
Most compatible option. Good inference speed in AutoGPTQ and GPTQ-for-LLaMa. Lower inference quality than other options.
gptq-4bit-32g-actorder_True
4
32
True
4.28 GB
True
AutoGPTQ
4-bit, with Act Order and group size. 32g gives highest possible inference quality, with maximum VRAM usage. Poor AutoGPTQ CUDA speed.
gptq-4bit-64g-actorder_True
4
64
True
4.02 GB
True
AutoGPTQ
4-bit, with Act Order and group size. 64g uses less VRAM than 32g, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed.
gptq-4bit-128g-actorder_True
4
128
True
3.90 GB
True
AutoGPTQ
4-bit, with Act Order and group size. 128g uses even less VRAM, but with slightly lower accuracy. Poor AutoGPTQ CUDA speed.
gptq-8bit--1g-actorder_True
8
None
True
7.01 GB
False
AutoGPTQ
8-bit, with Act Order. No group size, to lower VRAM requirements and to improve AutoGPTQ speed.
gptq-8bit-128g-actorder_False
8
128
False
7.16 GB
False
AutoGPTQ
8-bit, with group size 128g for higher inference quality and without Act Order to improve AutoGPTQ speed.
How to download from branches
In text-generation-webui, you can add :branch to the end of the download name, eg TheBloke/vicuna-7B-v1.3-GPTQ:gptq-4bit-32g-actorder_True
1from transformers import AutoTokenizer, pipeline, logging
2from auto_gptq import AutoGPTQForCausalLM, BaseQuantizeConfig
34model_name_or_path ="TheBloke/vicuna-7B-v1.3-GPTQ"5model_basename ="vicuna-7b-v1.3-GPTQ-4bit-128g.no-act.order"67use_triton =False89tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)1011model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,12 model_basename=model_basename
13 use_safetensors=True,14 trust_remote_code=True,15 device="cuda:0",16 use_triton=use_triton,17 quantize_config=None)1819"""
20To download from a specific branch, use the revision parameter, as in this example:
2122model = AutoGPTQForCausalLM.from_quantized(model_name_or_path,
23 revision="gptq-4bit-32g-actorder_True",
24 model_basename=model_basename,
25 use_safetensors=True,
26 trust_remote_code=True,
27 device="cuda:0",
28 quantize_config=None)
29"""3031prompt ="Tell me about AI"32prompt_template=f'''A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.
3334USER: {prompt}35ASSISTANT:
36'''3738print("\n\n*** Generate:")3940input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()41output = model.generate(inputs=input_ids, temperature=0.7, max_new_tokens=512)42print(tokenizer.decode(output[0]))4344# Inference can also be done using transformers' pipeline4546# Prevent printing spurious transformers error when using pipeline with AutoGPTQ47logging.set_verbosity(logging.CRITICAL)4849print("*** Pipeline:")50pipe = pipeline(51"text-generation",52 model=model,53 tokenizer=tokenizer,54 max_new_tokens=512,55 temperature=0.7,56 top_p=0.95,57 repetition_penalty=1.1558)5960print(pipe(prompt_template)[0]['generated_text'])
Compatibility
The files provided will work with AutoGPTQ (CUDA and Triton modes), GPTQ-for-LLaMa (only CUDA has been tested), and Occ4m's GPTQ-for-LLaMa fork.
ExLlama works with Llama models in 4-bit. Please see the Provided Files table above for per-file compatibility.
Discord
For further support, and discussions on these models and AI in general, join us at:
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: Sam, theTransient, Jonathan Leane, Steven Wood, webtim, Johann-Peter Hartmann, Geoffrey Montalvo, Gabriel Tamborski, Willem Michiel, John Villwock, Derek Yates, Mesiah Bishop, Eugene Pentland, Pieter, Chadd, Stephen Murray, Daniel P. Andersen, terasurfer, Brandon Frisco, Thomas Belote, Sid, Nathan LeClaire, Magnesian, Alps Aficionado, Stanislav Ovsiannikov, Alex, Joseph William Delisle, Nikolai Manek, Michael Davis, Junyu Yang, K, J, Spencer Kim, Stefan Sabev, Olusegun Samson, transmissions 11, Michael Levine, Cory Kujawski, Rainer Wilmers, zynix, Kalila, Luke @flexchar, Ajan Kanaga, Mandus, vamX, Ai Maven, Mano Prime, Matthew Berman, subjectnull, Vitor Caleffi, Clay Pascal, biorpg, alfie_i, 阿明, Jeffrey Morgan, ya boyyy, Raymond Fosdick, knownsqashed, Olakabola, Leonard Tan, ReadyPlayerEmma, Enrico Ros, Dave, Talal Aujan, Illia Dulskyi, Sean Connelly, senxiiz, Artur Olbinski, Elle, Raven Klaugh, Fen Risland, Deep Realms, Imad Khwaja, Fred von Graf, Will Dee, usrbinkat, SuperWojo, Alexandros Triantafyllidis, Swaroop Kallakuri, Dan Guido, John Detwiler, Pedro Madruga, Iucharbius, Viktor Bowallius, Asp the Wyvern, Edmond Seymore, Trenton Dambrowitz, Space Cruiser, Spiking Neurons AB, Pyrater, LangChain4j, Tony Hughes, Kacper Wikieł, Rishabh Srivastava, David Ziegler, Luke Pendergrass, Andrey, Gabriel Puliatti, Lone Striker, Sebastain Graf, Pierre Kircher, Randy H, NimbleBox.ai, Vadim, danny, Deo Leter
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
Original model card: LmSys' Vicuna 7B v1.3
Vicuna Model Card
Model Details
Vicuna is a chat assistant trained by fine-tuning LLaMA on user-shared conversations collected from ShareGPT.
The primary use of Vicuna is research on large language models and chatbots.
The primary intended users of the model are researchers and hobbyists in natural language processing, machine learning, and artificial intelligence.
Vicuna v1.3 is fine-tuned from LLaMA with supervised instruction fine-tuning.
The training data is around 140K conversations collected from ShareGPT.com.
See more details in the "Training Details of Vicuna Models" section in the appendix of this paper.
Evaluation
Vicuna is evaluated with standard benchmarks, human preference, and LLM-as-a-judge. See more details in this paper and leaderboard.