Views
No views yet

{system_message}
<|user|>
{prompt}
<|assistant|>
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.| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|---|---|---|---|---|---|---|---|---|---|
| main | 4 | None | Yes | 0.1 | VMware Open Instruct | 4096 | 35.33 GB | Yes | 4-bit, with Act Order. No group size, to lower VRAM requirements. |
| gptq-4bit-128g-actorder_True | 4 | 128 | Yes | 0.1 | VMware Open Instruct | 4096 | 36.65 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
| gptq-4bit-32g-actorder_True | 4 | 32 | Yes | 0.1 | VMware Open Instruct | 4096 | 40.66 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
| gptq-3bit--1g-actorder_True | 3 | None | Yes | 0.1 | VMware Open Instruct | 4096 | 26.77 GB | No | 3-bit, with Act Order and no group size. Lowest possible VRAM requirements. May be lower quality than 3-bit 128g. |
| gptq-3bit-128g-actorder_True | 3 | 128 | Yes | 0.1 | VMware Open Instruct | 4096 | 28.03 GB | No | 3-bit, with group size 128g and act-order. Higher quality than 128g-False. |
| gptq-3bit-32g-actorder_True | 3 | 32 | Yes | 0.1 | VMware Open Instruct | 4096 | 31.84 GB | No | 3-bit, with group size 64g and act-order. Highest quality 3-bit option. |
main branch, enter TheBloke/Aurora-Nights-70B-v1.0-GPTQ in the "Download model" box.:branchname to the end of the download name, eg TheBloke/Aurora-Nights-70B-v1.0-GPTQ:gptq-4bit-128g-actorder_Truehuggingface-hub Python library:pip3 install huggingface-hubmain branch to a folder called Aurora-Nights-70B-v1.0-GPTQ:1mkdir Aurora-Nights-70B-v1.0-GPTQ
2huggingface-cli download TheBloke/Aurora-Nights-70B-v1.0-GPTQ --local-dir Aurora-Nights-70B-v1.0-GPTQ --local-dir-use-symlinks False--revision parameter:1mkdir Aurora-Nights-70B-v1.0-GPTQ
2huggingface-cli download TheBloke/Aurora-Nights-70B-v1.0-GPTQ --revision gptq-4bit-128g-actorder_True --local-dir Aurora-Nights-70B-v1.0-GPTQ --local-dir-use-symlinks False--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.HF_HOME environment variable, and/or the --cache-dir parameter to huggingface-cli.huggingface-cli, please see: HF -> Hub Python Library -> Download files -> Download from the CLI.hf_transfer:pip3 install hf_transferHF_HUB_ENABLE_HF_TRANSFER to 1:1mkdir Aurora-Nights-70B-v1.0-GPTQ
2HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/Aurora-Nights-70B-v1.0-GPTQ --local-dir Aurora-Nights-70B-v1.0-GPTQ --local-dir-use-symlinks Falseset HF_HUB_ENABLE_HF_TRANSFER=1 before the download command.git (not recommended)git, use a command like this:git clone --single-branch --branch gptq-4bit-128g-actorder_True https://huggingface.co/TheBloke/Aurora-Nights-70B-v1.0-GPTQhuggingface-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.)TheBloke/Aurora-Nights-70B-v1.0-GPTQ.TheBloke/Aurora-Nights-70B-v1.0-GPTQ:gptq-4bit-128g-actorder_TrueAurora-Nights-70B-v1.0-GPTQquantize_config.json.ghcr.io/huggingface/text-generation-inference:1.1.0--model-id TheBloke/Aurora-Nights-70B-v1.0-GPTQ --port 3000 --quantize gptq --max-input-length 3696 --max-total-tokens 4096 --max-batch-prefill-tokens 4096pip3 install huggingface-hub1from huggingface_hub import InferenceClient
2
3endpoint_url = "https://your-endpoint-url-here"
4
5prompt = "Tell me about AI"
6prompt_template=f'''{system_message}
7<|user|>
8{prompt}
9<|assistant|>
10'''
11
12client = InferenceClient(endpoint_url)
13response = client.text_generation(
14 prompt_template,
15 max_new_tokens=128,
16 do_sample=True,
17 temperature=0.7,
18 top_p=0.95,
19 top_k=40,
20 repetition_penalty=1.1
21)
22
23print(f"Model output: {response}")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/1pip3 uninstall -y auto-gptq
2git clone https://github.com/PanQiWei/AutoGPTQ
3cd AutoGPTQ
4git checkout v0.5.1
5pip3 install .1from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
2
3model_name_or_path = "TheBloke/Aurora-Nights-70B-v1.0-GPTQ"
4# To use a different branch, change revision
5# For example: revision="gptq-4bit-128g-actorder_True"
6model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
7 device_map="auto",
8 trust_remote_code=False,
9 revision="main")
10
11tokenizer = AutoTokenizer.from_pretrained(model_name_or_path, use_fast=True)
12
13prompt = "Write a story about llamas"
14system_message = "You are a story writing assistant"
15prompt_template=f'''{system_message}
16<|user|>
17{prompt}
18<|assistant|>
19'''
20
21print("\n\n*** Generate:")
22
23input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
24output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
25print(tokenizer.decode(output[0]))
26
27# Inference can also be done using transformers' pipeline
28
29print("*** Pipeline:")
30pipe = pipeline(
31 "text-generation",
32 model=model,
33 tokenizer=tokenizer,
34 max_new_tokens=512,
35 do_sample=True,
36 temperature=0.7,
37 top_p=0.95,
38 top_k=40,
39 repetition_penalty=1.1
40)
41
42print(pipe(prompt_template)[0]['generated_text'])
{
"temp": 1.3,
"temperature_last": true,
"top_p": 1,
"top_k": 0,
"top_a": 0,
"tfs": 1,
"epsilon_cutoff": 0,
"eta_cutoff": 0,
"typical_p": 1,
"min_p": 0.2,
"rep_pen": 1,
"rep_pen_range": 0,
"no_repeat_ngram_size": 0,
"penalty_alpha": 0,
"num_beams": 1,
"length_penalty": 1,
"min_length": 0,
"encoder_rep_pen": 1,
"freq_pen": 0.01,
"presence_pen": 0,
"do_sample": true,
"early_stopping": false,
"add_bos_token": true,
"truncation_length": 2048,
"ban_eos_token": false,
"skip_special_tokens": true,
"streaming": true,
"mirostat_mode": 0,
"mirostat_tau": 5,
"mirostat_eta": 0.1,
"guidance_scale": 1,
"negative_prompt": "",
"grammar_string": "",
"banned_tokens": "",
"ignore_eos_token_aphrodite": false,
"spaces_between_special_tokens_aphrodite": true,
"type": "ooba",
"legacy_api": false,
"sampler_order": [
6,
0,
1,
3,
4,
2,
5
],
"n": 1,
"rep_pen_size": 0,
"genamt": 550,
"max_length": 4096
}{
"wrap": true,
"names": false,
"system_prompt": "You are an award-winning fiction author engaging in an uncensored literary roleplaying experience between a human (me) and a creative, obedient, and helpful AI assistant (you). It is VITAL that you follow all these instructions because this roleplay is very important to my career and I'll be fired from my job if it isn't good.\nROLEPLAY RULES:\n> It is vital that ONLY the human provides responses for {{user}}.\n> Reply as {{char}} using authentic, vivid, varied, explicit, accurate, creative, fresh, and descriptive responses that follow ALL provided narrative instructions. Stay in character as {{char}} and only write text for {{char}}.\n> Describe the scene and {{char}}'s sensory perceptions in vivid detail to immerse the reader in the story.\n> Keep your responses scoped to the current story beat and current scene.\n> Consider all available contextual information when narrating so that all the story details remain consistent between scenes.\n> Demonstrate {{char}}'s goals and motivations, and use subtle cues to hint at {{char}}'s mental state unless delving into {{char}}'s thoughts satisfies an explicit instruction or enhances the vividness of the scene.\n> When quoting {{char}}'s internal first-person thoughts (aka internal monologue, delivered in {{char}}'s own voice), *enclose the thoughts in asterisks like this*. Only use asterisks for thoughts.\n> Use strong action verbs and varied descriptions to produce dynamic, high-quality prose.",
"system_sequence": "",
"stop_sequence": "",
"input_sequence": "<|user|>\n",
"output_sequence": "<|assistant|>\n",
"separator_sequence": "",
"macro": true,
"names_force_groups": true,
"system_sequence_prefix": "",
"system_sequence_suffix": "",
"first_output_sequence": "",
"last_output_sequence": "<|assistant (provide varied, creative, and vivid narration; follow all narrative instructions; include all necessary possessive pronouns; maintain consistent story details; only roleplay as {{char}})|>\n",
"activation_regex": "",
"name": "Aurora-Nights"
}models:
- model: NousResearch_Llama-2-70b-hf
# no parameters necessary for base model
- model: allenai_tulu-2-dpo-70b # primary
parameters:
density: 1.0
weight: 0.4
- model: Xwin-LM_Xwin-LM-70B-V0.1 # secondary
parameters:
density: 0.7
weight: 0.3
- model: dreamgen_opus-v0.5-70b # supporting, good at storytelling and roleplay
parameters:
density: 0.2
weight: 0.6
merge_method: dare_ties
base_model: NousResearch_Llama-2-70b-hf
parameters:
normalize: true
int8_mask: true
dtype: float32