VOOZH about

URL: https://huggingface.co/TheBloke/airoboros-7b-gpt4-GPTQ

⇱ TheBloke/airoboros-7b-gpt4-GPTQ · Hugging Face


TheBloke's LLM work is generously supported by a grant from andreessen horowitz (a16z)


Jon Durbin's Airoboros 7b GPT4 GPTQ

These files are GPTQ 4bit model files for Jon Durbin's Airoboros 7b GPT4.

It is the result of quantising to 4bit using GPTQ-for-LLaMa.

Other repositories available

Prompt template

This uses Vicuna 1.1 format. Example:

USER: prompt
ASSISTANT:

How to easily download and use this model in text-generation-webui

Downloading the model

  1. Click the Model tab.
  2. Under Download custom model or LoRA, enter TheBloke/airoboros-7b-gpt4-GPTQ.
  3. Click Download.
  4. Wait until it says it's finished downloading.
  5. Untick "Autoload model"
  6. Click the Refresh icon next to Model in the top left.

To use with AutoGPTQ (if installed)

  1. In the Model drop-down: choose the model you just downloaded, airoboros-7b-gpt4-GPTQ.
  2. Under GPTQ, tick AutoGPTQ.
  3. Click Save settings for this model in the top right.
  4. Click Reload the Model in the top right.
  5. Once it says it's loaded, click the Text Generation tab and enter a prompt!

To use with GPTQ-for-LLaMa

  1. In the Model drop-down: choose the model you just downloaded, airoboros-7b-gpt4-GPTQ.
  2. If you see an error in the bottom right, ignore it - it's temporary.
  3. Fill out the GPTQ parameters on the right: Bits = 4, Groupsize = 128, model_type = Llama
  4. Click Save settings for this model in the top right.
  5. Click Reload the Model in the top right.
  6. Once it says it's loaded, click the Text Generation tab and enter a prompt!

Provided files

airoboros-7b-gpt4-GPTQ-4bit-128g.no-act.order.safetensors

This will work with all versions of GPTQ-for-LLaMa, and with AutoGPTQ.

It was created with

  • airoboros-7b-gpt4-GPTQ-4bit-128g.no-act.order.safetensors
    • Works with all versions of GPTQ-for-LLaMa code, both Triton and CUDA branches
    • Works with AutoGPTQ
    • Works with text-generation-webui one-click-installers
    • Parameters: Groupsize = 128. Act Order / desc_act = False.

Discord

For further support, and discussions on these models and AI in general, join us at:

TheBloke AI's Discord server

Thanks, and how to contribute.

Thanks to the chirper.ai team!

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.

Special thanks to: Aemon Algiz.

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: Jon Durbin's Airoboros 7b GPT4

Overview

This is a fine-tuned 7b parameter LlaMa model, using completely synthetic training data created gpt4 via https://github.com/jondurbin/airoboros

The context size has been increased to 4096.

The dataset used to fine-tune this model is available here, with a specific focus on:

  • trivia
  • math/reasoning (although it still sucks)
  • coding
  • multiple choice and fill-in-the-blank
  • context-obedient question answering
  • theory of mind
  • misc/general

This model was fine-tuned with a fork of FastChat, and therefore uses the standard vicuna template:

USER:
[prompt]

<\s>
ASSISTANT:

The most important bit, to me, is the context obedient question answering support, without extensive prompt engineering.

Note: the example prompt response pairs below are from the 13b model, YMMV with the 7b

Usage

The easiest way to get started is to use my fork of FastChat, which is mostly the same but allows for the increased context length and adds support for multi-line inputs:

pip install git+https://github.com/jondurbin/FastChat

Then, you can invoke it like so (after downloading the model):

python -m fastchat.serve.cli
 --model-path airoboros-7b-gpt4 \
 --temperature 0.5 \
 --max-new-tokens 4096 \
 --context-length 4096 \
 --conv-template vicuna_v1.1 \
 --no-history

Context obedient question answering

By obedient, I mean the model was trained to ignore what it thinks it knows, and uses the context to answer the question. The model was also tuned to limit the values to the provided context as much as possible to reduce hallucinations.

The format for a closed-context prompt is as follows:

BEGININPUT
BEGINCONTEXT
url: https://some.web.site/123
date: 2023-06-01
... other metdata ...
ENDCONTEXT
[insert your text blocks here]
ENDINPUT
[add as many other blocks, in the exact same format]
BEGININSTRUCTION
[insert your instruction(s). The model was tuned with single questions, paragraph format, lists, etc.]
ENDINSTRUCTION

Here's a trivial, but important example to prove the point:

BEGININPUT
BEGINCONTEXT
date: 2021-01-01
url: https://web.site/123
ENDCONTEXT
In a shocking turn of events, blueberries are now green, but will be sticking with the same name.
ENDINPUT
BEGININSTRUCTION
What color are bluberries? Source?
ENDINSTRUCTION

And the response:

Blueberries are now green.
Source:
date: 2021-01-01
url: https://web.site/123

Other stuff

Better coding

Example:

Create a python application with the following requirements:
- Asyncio FastAPI webserver
- ping endpoint that returns the current date in JSON format
- file upload endpoint, which calculates the file's sha256 checksum, and checks postgres to deduplicate

Word games / trivia

USER: This anagram of "silent" is what you do when paying attention and hearing someone.
ASSISTANT: listen
USER: Give me a list of 7 words that start with EN
ASSISTANT: 1. Endlessly
2. Enthusiastically
3. Enormously
4. Enveloping
5. Enduring
6. Enlightening
7. Encouraging

Multiple choice

USER: Which of the following astronomical objects is composed primarily of ice and rock, and is located in the Kuiper Belt?

A) Mercury
B) Venus
C) Pluto
D) Jupiter
ASSISTANT: [C, Pluto]

Writing

Downloads last month
9
Safetensors
Model size
7B params
Tensor type
F32
·
I32
·