AWQ is an efficient, accurate and blazing-fast low-bit weight quantization method, currently supporting 4-bit quantization. Compared to GPTQ, it offers faster Transformers-based inference with equivalent or better quality compared to the most commonly used GPTQ settings.
For my first release of AWQ models, I am releasing 128g models only. I will consider adding 32g as well if there is interest, and once I have done perplexity and evaluation comparisons, but at this time 32g models are still not fully tested with AutoAWQ and vLLM.
When using vLLM from Python code, again set quantization=awq.
For example:
python
1from vllm import LLM, SamplingParams
23prompts =[4"Tell me about AI",5"Write a story about llamas",6"What is 291 - 150?",7"How much wood would a woodchuck chuck if a woodchuck could chuck wood?",8]9prompt_template=f'''<#meta#>
10- Date: [DATE]
11- Task: [TASK TYPE]
12<#system#>
13{system_message}14<#chat#>
15<#user#>
16{prompt}17<#bot#>
18'''1920prompts =[prompt_template.format(prompt=prompt)for prompt in prompts]2122sampling_params = SamplingParams(temperature=0.8, top_p=0.95)2324llm = LLM(model="TheBloke/Inkbot-13B-8k-0.2-AWQ", quantization="awq", dtype="auto")2526outputs = llm.generate(prompts, sampling_params)2728# Print the outputs.29for output in outputs:30 prompt = output.prompt
31 generated_text = output.outputs[0].text
32print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
Multi-user inference server: Hugging Face Text Generation Inference (TGI)
Use TGI version 1.1.0 or later. The official Docker container is: ghcr.io/huggingface/text-generation-inference:1.1.0
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: Pierre Kircher, Stanislav Ovsiannikov, Michael Levine, Eugene Pentland, Andrey, 준교 김, Randy H, Fred von Graf, Artur Olbinski, Caitlyn Gatomon, terasurfer, Jeff Scroggin, James Bentley, Vadim, Gabriel Puliatti, Harry Royden McLaughlin, Sean Connelly, Dan Guido, Edmond Seymore, Alicia Loh, subjectnull, AzureBlack, Manuel Alberto Morcote, Thomas Belote, Lone Striker, Chris Smitley, Vitor Caleffi, Johann-Peter Hartmann, Clay Pascal, biorpg, Brandon Frisco, sidney chen, transmissions 11, Pedro Madruga, jinyuan sun, Ajan Kanaga, Emad Mostaque, Trenton Dambrowitz, Jonathan Leane, Iucharbius, usrbinkat, vamX, George Stoitzev, Luke Pendergrass, theTransient, Olakabola, Swaroop Kallakuri, Cap'n Zoog, Brandon Phillips, Michael Dempsey, Nikolai Manek, danny, Matthew Berman, Gabriel Tamborski, alfie_i, Raymond Fosdick, Tom X Nguyen, Raven Klaugh, LangChain4j, Magnesian, Illia Dulskyi, David Ziegler, Mano Prime, Luis Javier Navarrete Lozano, Erik Bjäreholt, 阿明, Nathan Dryer, Alex, Rainer Wilmers, zynix, TL, Joseph William Delisle, John Villwock, Nathan LeClaire, Willem Michiel, Joguhyik, GodLy, OG, Alps Aficionado, Jeffrey Morgan, ReadyPlayerEmma, Tiffany J. Kim, Sebastain Graf, Spencer Kim, Michael Davis, webtim, Talal Aujan, knownsqashed, John Detwiler, Imad Khwaja, Deo Leter, Jerry Meng, Elijah Stavena, Rooh Singh, Pieter, SuperWojo, Alexandros Triantafyllidis, Stephen Murray, Ai Maven, ya boyyy, Enrico Ros, Ken Nordquist, Deep Realms, Nicholas, Spiking Neurons AB, Elle, Will Dee, Jack West, RoA, Luke @flexchar, Viktor Bowallius, Derek Yates, Subspace Studios, jjj, Toran Billups, Asp the Wyvern, Fen Risland, Ilya, NimbleBox.ai, Chadd, Nitin Borwankar, Emre, Mandus, Leonard Tan, Kalila, K, Trailburnt, S_X, Cory Kujawski
Thank you to all my generous patrons and donaters!
And thank you again to a16z for their generous grant.
Original model card: Adam Brusselback's Inkbot 13B 8K 0.2
Model Card for Inkbot
Model Details
Inkbot is a conversational AI model designed to interpret and respond to structured prompts with or without contextual information. Its unique feature lies in the structured prompt system, allowing users to engage in dynamic dialogues that can evolve based on context, metadata, and user input.
Performance
The model excels in RAG type queries, answering from context, and overriding memory when necessary.
It can handle very large contexts, but may sometimes enter a repeating text loop, especially during complex tasks.
The model is intended to be more functional and less chatty, avoiding the waste of tokens on superfluous language.
<#meta#>
- Date: 2023-07-20
- Task: general
<#system#>
A dialogue focused on determining dates based on context clues.
<#chat#>
<#user#>
What is today's date?
<#bot#>
The date is: 2023-07-20
<#user#>
When did the event in the provided context take place?
<#user_context#>
It's the day after new years eve, and I'm starting 2018 with a headache.
<#bot#>
The event in the context took place on: 2018-01-01
Without Context:
<#meta#>
- Date: 2023-07-20
- Task: general
<#system#>
A simple dialogue about daily queries.
<#chat#>
<#user#>
Will it rain today?
<#bot#>
I am not sure, without knowing your location I am unable to determine the weather.
<#user#>
Can you compose a haiku for me?
<#bot#>
Whispers of the breeze,
Nature's melodies unfold,
Dawn dispels the night.
Task Options
The model has been trained on a variety of tasks. Below is a breakdown of these tasks, along with example prompts to help guide your usage.
2. Content Generation
Tasks in this category involve creating or expanding content.
kg_writer (800 examples)
Example Prompts:
"Using the provided knowledge graph, write an article about the topics and entities in the graph, incorporating the linked ideas. Use idea tags while writing to help focus."
"Construct a story based on the information in the knowledge graph."
summary (1,600 examples)
Example Prompts:
"Generate an extensive summary of the given document."
"Please read the provided document to understand the context and content. Use this understanding to generate a summary. Separate the article into chunks, and sequentially create a summary for each chunk. Give me a final summary in the end."
paraphrase (1,100 examples)
Example Prompts:
"Rephrase the following sentence while retaining its original meaning."
"Can you provide an alternative wording for the paragraph below?"
3. Content Analysis
Tasks in this category evaluate, grade, or filter content.
grading (400 examples)
Example Prompts:
"Based on the provided document, please rate the usefulness as training data on a scale from 0-5."
sponsorblock (5,200 examples)
Example Prompts:
"Read the document and extract any sentences or phrases that contain explicit mentions of sponsorship, promotional partnerships, or any form of paid content."
4. Information Structuring
Tasks in this category involve the structured representation or extraction of information.
kg (3,600 examples)
Example Prompts:
"Create a Knowledge Graph from the document provided."
"Extract key concepts and relationships from the conversation to form a knowledge graph."
5. General Interaction
Tasks in this category are designed for general questions and interactions.
general (1,600 examples)
Example Prompts:
"What is the capital of France?"
"Explain particle physics to a 5 years old."
Limitations
Adhere to the prompt structure for best results.
When providing contextual details, clarity is essential for Inkbot to derive accurate and meaningful responses.
The overriding memory from user_context property generally only works for the next prompt or two, after which the model reverts to its original behavior.
On complex tasks, like creating a coherent story based on a set of facts from context, there's a potential for a repeating text loop as context fills.
Sometimes the model doesn't know when to end a knowledge graph, which can result in adding nodes and edges until it runs out of context.
Additional Notes
Use rope-freq-scale=0.5 or compress_pos_emb=2 for 8k ctx
The 'date', 'task', and 'system' are crucial metadata components that need to be provided outside the core dialogue.
Use the 'user_context' when you want to offer supplementary context that guides Inkbot's response. You can interleave it in the chat log as necessary. It comes after the users instruction.
The specific tag format, such as <#word#>, is used to because there are filters in a lot of APIs for <|word|> and this makes interactions easier.