Views
No views yet

<|im_start|>system
{system_message}<|im_end|>
<|im_start|>user
{prompt}<|im_end|>
<|im_start|>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 | 128 | Yes | 0.1 | German Quad | 2048 | 5.98 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 | German Quad | 2048 | 6.59 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
| gptq-8bit--1g-actorder_True | 8 | None | Yes | 0.1 | German Quad | 2048 | 11.01 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
| gptq-8bit-128g-actorder_True | 8 | 128 | Yes | 0.1 | German Quad | 2048 | 11.25 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
| gptq-8bit-32g-actorder_True | 8 | 32 | Yes | 0.1 | German Quad | 2048 | 11.99 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
| gptq-4bit-64g-actorder_True | 4 | 64 | Yes | 0.1 | German Quad | 2048 | 6.18 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
main branch, enter TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ in the "Download model" box.:branchname to the end of the download name, eg TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ:gptq-4bit-32g-actorder_Truehuggingface-hub Python library:pip3 install huggingface-hubmain branch to a folder called LUNA-SOLARkrautLM-Instruct-GPTQ:1mkdir LUNA-SOLARkrautLM-Instruct-GPTQ
2huggingface-cli download TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ --local-dir LUNA-SOLARkrautLM-Instruct-GPTQ --local-dir-use-symlinks False--revision parameter:1mkdir LUNA-SOLARkrautLM-Instruct-GPTQ
2huggingface-cli download TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ --revision gptq-4bit-32g-actorder_True --local-dir LUNA-SOLARkrautLM-Instruct-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 LUNA-SOLARkrautLM-Instruct-GPTQ
2HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ --local-dir LUNA-SOLARkrautLM-Instruct-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-32g-actorder_True https://huggingface.co/TheBloke/LUNA-SOLARkrautLM-Instruct-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/LUNA-SOLARkrautLM-Instruct-GPTQ.TheBloke/LUNA-SOLARkrautLM-Instruct-GPTQ:gptq-4bit-32g-actorder_TrueLUNA-SOLARkrautLM-Instruct-GPTQquantize_config.json.ghcr.io/huggingface/text-generation-inference:1.1.0--model-id TheBloke/LUNA-SOLARkrautLM-Instruct-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'''<|im_start|>system
7{system_message}<|im_end|>
8<|im_start|>user
9{prompt}<|im_end|>
10<|im_start|>assistant
11'''
12
13client = InferenceClient(endpoint_url)
14response = client.text_generation(prompt,
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
22print(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/LUNA-SOLARkrautLM-Instruct-GPTQ"
4# To use a different branch, change revision
5# For example: revision="gptq-4bit-32g-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'''<|im_start|>system
16{system_message}<|im_end|>
17<|im_start|>user
18{prompt}<|im_end|>
19<|im_start|>assistant
20'''
21
22print("\n\n*** Generate:")
23
24input_ids = tokenizer(prompt_template, return_tensors='pt').input_ids.cuda()
25output = model.generate(inputs=input_ids, temperature=0.7, do_sample=True, top_p=0.95, top_k=40, max_new_tokens=512)
26print(tokenizer.decode(output[0]))
27
28# Inference can also be done using transformers' pipeline
29
30print("*** Pipeline:")
31pipe = pipeline(
32 "text-generation",
33 model=model,
34 tokenizer=tokenizer,
35 max_new_tokens=512,
36 do_sample=True,
37 temperature=0.7,
38 top_p=0.95,
39 top_k=40,
40 repetition_penalty=1.1
41)
42
43print(pipe(prompt_template)[0]['generated_text'])
result < 0.1, %: being well below 0.9, indicate that our dataset is free from contamination.| Dataset | ARC | MMLU | TruthfulQA | GSM8K |
|---|---|---|---|---|
| SauerkrautLM-DPO | result < 0.1, %: 0.0 | result < 0.1, %: 0.09 | result < 0.1, %: 0.13 | result < 0.1, %: 0.16 |
<|im_start|>system
Du bist LUNA-SOLARkrautLM, ein großes Sprachmodell, das höflich und kompetent antwortet.<|im_end|>
<|im_start|>user
Wie geht es dir?<|im_end|>
<|im_start|>assistant
### User:
Hello, how are you?
### Assistant:
Hi there! I am an AI language model, so I don't have personal feelings or emotions in the traditional sense. However, I can assure you that my systems and processes are functioning well at this moment, allowing me to provide helpful responses for your queries.
How may I assist you today?
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 5, batch_size: auto
|Tasks|Version| Filter |n-shot| Metric |Value | |Stderr|
|-----|-------|----------|-----:|-----------|-----:|---|-----:|
|gsm8k|Yaml |get-answer| 5|exact_match|0.6467|± |0.0132|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 0, batch_size: auto (64)
| Tasks |Version|Filter|n-shot|Metric|Value | |Stderr|
|--------------|-------|------|-----:|------|-----:|---|-----:|
|truthfulqa_mc2|Yaml |none | 0|acc |0.7368|± |0.0149|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 25, batch_size: auto (32)
| Tasks |Version|Filter|n-shot| Metric |Value| |Stderr|
|-------------|-------|------|-----:|--------|----:|---|-----:|
|arc_challenge|Yaml |none | 25|acc |0.692|± |0.0135|
| | |none | 25|acc_norm|0.715|± |0.0132|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 0, batch_size: auto (64)
| Tasks |Version|Filter|n-shot|Metric| Value | |Stderr|
|-----------|-------|------|-----:|------|------:|---|-----:|
|paws_de |Yaml |none | 0|acc | 0.3965|± |0.0109|
|wmt16-en-de|Yaml |none | 0|bleu | 3.5784|± |0.1325|
| | |none | 0|ter |64.5707|± |0.4514|
| | |none | 0|chrf |45.7068|± |0.3861|
|xnli_de |Yaml |none | 0|acc | 0.4129|± |0.0099|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 10, batch_size: auto (32)
| Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
|---------|-------|------|-----:|--------|-----:|---|-----:|
|hellaswag|Yaml |none | 10|acc |0.7131|± |0.0045|
| | |none | 10|acc_norm|0.8815|± |0.0032|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct), gen_kwargs: (), limit: None, num_fewshot: 5, batch_size: auto (64)
| Tasks |Version|Filter|n-shot|Metric| Value | |Stderr|
|-----------|-------|------|-----:|------|------:|---|-----:|
|wmt16-de-en|Yaml |none | 5|bleu |14.9310|± |0.8014|
| | |none | 5|ter |46.3206|± |0.4087|
| | |none | 5|chrf |60.8637|± |0.4436|
|wmt16-en-de|Yaml |none | 5|bleu | 6.2016|± |0.2918|
| | |none | 5|ter |63.9997|± |0.4591|
| | |none | 5|chrf |51.1399|± |0.3978|
|xnli_de |Yaml |none | 5|acc | 0.4703|± |0.0100|
hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct,dtype=float16), gen_kwargs: (), limit: None, num_fewshot: 5, batch_size: auto (16)
| Tasks |Version|Filter|n-shot|Metric|Value | |Stderr|
|---------------------------------------|-------|------|-----:|------|-----:|---|-----:|
|mmlu |N/A |none | 0|acc |0.6461|± |0.1215|
| - humanities |N/A |none | 5|acc |0.5960|± |0.1200|
| - formal_logic |Yaml |none | 5|acc |0.4683|± |0.0446|
| - high_school_european_history |Yaml |none | 5|acc |0.8121|± |0.0305|
| - high_school_us_history |Yaml |none | 5|acc |0.8480|± |0.0252|
| - high_school_world_history |Yaml |none | 5|acc |0.8312|± |0.0244|
| - international_law |Yaml |none | 5|acc |0.7851|± |0.0375|
| - jurisprudence |Yaml |none | 5|acc |0.7685|± |0.0408|
| - logical_fallacies |Yaml |none | 5|acc |0.7423|± |0.0344|
| - moral_disputes |Yaml |none | 5|acc |0.7283|± |0.0239|
| - moral_scenarios |Yaml |none | 5|acc |0.3899|± |0.0163|
| - philosophy |Yaml |none | 5|acc |0.7074|± |0.0258|
| - prehistory |Yaml |none | 5|acc |0.7716|± |0.0234|
| - professional_law |Yaml |none | 5|acc |0.4824|± |0.0128|
| - world_religions |Yaml |none | 5|acc |0.7661|± |0.0325|
| - other |N/A |none | 5|acc |0.7097|± |0.0900|
| - business_ethics |Yaml |none | 5|acc |0.7700|± |0.0423|
| - clinical_knowledge |Yaml |none | 5|acc |0.6792|± |0.0287|
| - college_medicine |Yaml |none | 5|acc |0.6647|± |0.0360|
| - global_facts |Yaml |none | 5|acc |0.3600|± |0.0482|
| - human_aging |Yaml |none | 5|acc |0.6861|± |0.0311|
| - management |Yaml |none | 5|acc |0.8350|± |0.0368|
| - marketing |Yaml |none | 5|acc |0.8504|± |0.0234|
| - medical_genetics |Yaml |none | 5|acc |0.6700|± |0.0473|
| - miscellaneous |Yaml |none | 5|acc |0.7893|± |0.0146|
| - nutrition |Yaml |none | 5|acc |0.7549|± |0.0246|
| - professional_accounting |Yaml |none | 5|acc |0.5213|± |0.0298|
| - professional_medicine |Yaml |none | 5|acc |0.7353|± |0.0268|
| - virology |Yaml |none | 5|acc |0.5783|± |0.0384|
| - social_sciences |N/A |none | 5|acc |0.7501|± |0.0684|
| - econometrics |Yaml |none | 5|acc |0.5175|± |0.0470|
| - high_school_geography |Yaml |none | 5|acc |0.8485|± |0.0255|
| - high_school_government_and_politics|Yaml |none | 5|acc |0.8912|± |0.0225|
| - high_school_macroeconomics |Yaml |none | 5|acc |0.6615|± |0.0240|
| - high_school_microeconomics |Yaml |none | 5|acc |0.7311|± |0.0288|
| - high_school_psychology |Yaml |none | 5|acc |0.8385|± |0.0158|
| - human_sexuality |Yaml |none | 5|acc |0.7023|± |0.0401|
| - professional_psychology |Yaml |none | 5|acc |0.6683|± |0.0190|
| - public_relations |Yaml |none | 5|acc |0.6909|± |0.0443|
| - security_studies |Yaml |none | 5|acc |0.7633|± |0.0272|
| - sociology |Yaml |none | 5|acc |0.8358|± |0.0262|
| - us_foreign_policy |Yaml |none | 5|acc |0.8800|± |0.0327|
| - stem |N/A |none | 5|acc |0.5569|± |0.1360|
| - abstract_algebra |Yaml |none | 5|acc |0.3800|± |0.0488|
| - anatomy |Yaml |none | 5|acc |0.6148|± |0.0420|
| - astronomy |Yaml |none | 5|acc |0.7237|± |0.0364|
| - college_biology |Yaml |none | 5|acc |0.7708|± |0.0351|
| - college_chemistry |Yaml |none | 5|acc |0.4600|± |0.0501|
| - college_computer_science |Yaml |none | 5|acc |0.5400|± |0.0501|
| - college_mathematics |Yaml |none | 5|acc |0.2700|± |0.0446|
| - college_physics |Yaml |none | 5|acc |0.3333|± |0.0469|
| - computer_security |Yaml |none | 5|acc |0.7300|± |0.0446|
| - conceptual_physics |Yaml |none | 5|acc |0.6213|± |0.0317|
| - electrical_engineering |Yaml |none | 5|acc |0.6276|± |0.0403|
| - elementary_mathematics |Yaml |none | 5|acc |0.4788|± |0.0257|
| - high_school_biology |Yaml |none | 5|acc |0.8065|± |0.0225|
| - high_school_chemistry |Yaml |none | 5|acc |0.5123|± |0.0352|
| - high_school_computer_science |Yaml |none | 5|acc |0.7000|± |0.0461|
| - high_school_mathematics |Yaml |none | 5|acc |0.3889|± |0.0297|
| - high_school_physics |Yaml |none | 5|acc |0.3576|± |0.0391|
| - high_school_statistics |Yaml |none | 5|acc |0.5926|± |0.0335|
| - machine_learning |Yaml |none | 5|acc |0.4554|± |0.0473|
| Groups |Version|Filter|n-shot|Metric|Value | |Stderr|
|------------------|-------|------|-----:|------|-----:|---|-----:|
|mmlu |N/A |none | 0|acc |0.6461|± |0.1215|
| - humanities |N/A |none | 5|acc |0.5960|± |0.1200|
| - other |N/A |none | 5|acc |0.7097|± |0.0900|
| - social_sciences|N/A |none | 5|acc |0.7501|± |0.0684|
| - stem |N/A |none | 5|acc |0.5569|± |0.1360|########## Average ##########
score
model
gpt-4 8.990625
gpt-3.5-turbo 7.943750
claude-instant-v1 7.905660
claude-v1 7.900000
UNA-SOLAR-10.7B-Instruct-v1.0 7.521875
LUNA-SOLARkrautLM-Instruct 7.462500
vicuna-33b-v1.3 7.121875
wizardlm-30b 7.009375
Llama-2-70b-chat 6.856250
Llama-2-13b-chat 6.650000
guanaco-33b 6.528125
tulu-30b 6.434375
guanaco-65b 6.409375
oasst-sft-7-llama-30b 6.409375
palm-2-chat-bison-001 6.400000
mpt-30b-chat 6.393750
vicuna-13b-v1.3 6.387500
wizardlm-13b 6.353125
Llama-2-7b-chat 6.268750
vicuna-7b-v1.3 5.996875
baize-v2-13b 5.750000
nous-hermes-13b 5.553459
mpt-7b-chat 5.459119
gpt4all-13b-snoozy 5.452830
koala-13b 5.350000
mpt-30b-instruct 5.218750
falcon-40b-instruct 5.168750
h2ogpt-oasst-open-llama-13b 4.625000
alpaca-13b 4.531250
chatglm-6b 4.500000
oasst-sft-4-pythia-12b 4.318750
rwkv-4-raven-14b 3.984375
dolly-v2-12b 3.275000
fastchat-t5-3b 3.040625
stablelm-tuned-alpha-7b 2.753125
llama-13b 2.606250