GraySoft
Projects Models About FAQ Contact Download guIDE →
Model Intelligence Sheet

nousresearch/nous-hermes-2-mixtral-8x7b-sft-gguf overview

!image/jpeg # This is the repo of GGUF (llama.cpp) versions of Nous-Hermes-2-Mixtral-8x7B-SFT Model, for the full model, see here: https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT

ggufMixtralinstructfinetunechatmlgpt4synthetic datadistillationendataset:teknium/OpenHermes-2.5base_model:mistralai/Mixtral-8x7B-v0.1base_model:quantized:mistralai/Mixtral-8x7B-v0.1license:apache-2.0endpoints_compatibleregion:usconversational
nousresearch/nous-hermes-2-mixtral-8x7b-sft-gguf visual
Downloads
213
Likes
6
Pipeline
Library
Visibility
Public
Access
Open

Repository Files & Downloads

12 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
Nous-Hermes-2-Mixtral-8x7B-SFT.Q2_K.gguf GGUF Q2_K 16.12 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q3_K_L.gguf GGUF Q3_K_L 22.51 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q3_K_M.gguf GGUF Q3_K_M 21.00 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q3_K_S.gguf GGUF Q3_K_S 19.03 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q4_0.gguf GGUF 24.63 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q4_K_M.gguf GGUF Q4_K_M 26.49 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q4_K_S.gguf GGUF Q4_K_S 24.91 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q5_0.gguf GGUF 30.02 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q5_K_M.gguf GGUF Q5_K_M 30.95 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q5_K_S.gguf GGUF Q5_K_S 30.02 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q6_K.gguf GGUF Q6_K 35.74 GB Download
Nous-Hermes-2-Mixtral-8x7B-SFT.Q8_0.gguf GGUF 46.22 GB Download

Model Details Live

Model Slug
nousresearch/nous-hermes-2-mixtral-8x7b-sft-gguf
Author
NousResearch
Pipeline Task
Library
Created
2024-01-17
Last Modified
2024-02-20
Gated
No
Private
No
HF SHA
5be246a707dd717fab3e3c169be1645035fe7233
License
apache-2.0
Language
en
Base Model
mistralai/Mixtral-8x7B-v0.1

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "base_model": "mistralai/Mixtral-8x7B-v0.1",
    "tags": [
      "Mixtral",
      "instruct",
      "finetune",
      "chatml",
      "gpt4",
      "synthetic data",
      "distillation"
    ],
    "model-index": [
      {
        "name": "Nous-Hermes-2-Mixtral-8x7B-SFT",
        "results": []
      }
    ],
    "license": "apache-2.0",
    "language": [
      "en"
    ],
    "datasets": [
      "teknium/OpenHermes-2.5"
    ],
    "frontmatter": {
      "base_model": "mistralai/Mixtral-8x7B-v0.1",
      "tags": [
        "Mixtral",
        "instruct",
        "finetune",
        "chatml",
        "gpt4",
        "synthetic data",
        "distillation",
        "name: Nous-Hermes-2-Mixtral-8x7B-SFT"
      ],
      "license": "apache-2.0",
      "language": [
        "en"
      ],
      "datasets": [
        "teknium/OpenHermes-2.5"
      ]
    },
    "hero_image_url": "https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png",
    "summary": "!image/jpeg # This is the repo of GGUF (llama.cpp) versions of Nous-Hermes-2-Mixtral-8x7B-SFT Model, for the full model, see here: https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nbase_model: mistralai/Mixtral-8x7B-v0.1\ntags:\n- Mixtral\n- instruct\n- finetune\n- chatml\n- gpt4\n- synthetic data\n- distillation\nmodel-index:\n- name: Nous-Hermes-2-Mixtral-8x7B-SFT\n  results: []\nlicense: apache-2.0\nlanguage:\n- en\ndatasets:\n- teknium/OpenHermes-2.5\n---\n\n# Nous Hermes 2 - Mixtral 8x7B - SFT\n\n![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/btRmXWMG7PXatTs-u3G85.jpeg)\n\n# This is the repo of GGUF (llama.cpp) versions of Nous-Hermes-2-Mixtral-8x7B-SFT Model, for the full model, see here: https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT\n\n## Model description\n\nNous Hermes 2 Mixtral 8x7B SFT is the supervised finetune only version of our new flagship Nous Research model trained over the [Mixtral 8x7B MoE LLM](https://huggingface.co/mistralai/Mixtral-8x7B-v0.1). \n\nThe model was trained on over 1,000,000 entries of primarily GPT-4 generated data, as well as other high quality data from open datasets across the AI landscape, achieving state of the art performance on a variety of tasks.\n\nThis is the SFT only version of Mixtral Hermes 2, we have also released an SFT+DPO version, for people to find which works best for them, which can be found here: https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO\n\n## We are grateful to Together.ai for sponsoring our compute during the many experiments both training Mixtral and working on DPO!\n\n# Table of Contents\n1. [Example Outputs](#example-outputs)\n2. [Benchmark Results](#benchmark-results)\n    - GPT4All\n    - AGIEval\n    - BigBench\n    - Comparison to Mixtral-Instruct\n3. [Prompt Format](#prompt-format)\n4. [Inference Example Code](#inference-code)\n5. [Quantized Models](#quantized-models)\n\n## Example Outputs\n\n### Writing Code for Data Visualization\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/QJ5RHrOqB5GMP7ZAZ5NTk.png)\n\n### Writing Cyberpunk Psychedelic Poems\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/wuKnMlM2HBGdyUFO7mY_H.png)\n\n### Performing Backtranslation to Create Prompts from Input Text\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/QElwK1UI9PQQT6WosXpo1.png)\n\n## Benchmark Results\n\nNous-Hermes 2 on Mixtral 8x7B SFT is the bedrock for major improvements on many of the benchmarks below compared to the base Mixtral model, and is the SFT only version of our first model to beat the flagship Mixtral Finetune by MistralAI (the DPO version).\n\n## GPT4All:\n```\n|    Task     |Version| Metric |Value |   |Stderr|\n|-------------|------:|--------|-----:|---|-----:|\n|arc_challenge|      0|acc     |0.5904|±  |0.0144|\n|             |       |acc_norm|0.6323|±  |0.0141|\n|arc_easy     |      0|acc     |0.8594|±  |0.0071|\n|             |       |acc_norm|0.8607|±  |0.0071|\n|boolq        |      1|acc     |0.8783|±  |0.0057|\n|hellaswag    |      0|acc     |0.6592|±  |0.0047|\n|             |       |acc_norm|0.8434|±  |0.0036|\n|openbookqa   |      0|acc     |0.3400|±  |0.0212|\n|             |       |acc_norm|0.4660|±  |0.0223|\n|piqa         |      0|acc     |0.8324|±  |0.0087|\n|             |       |acc_norm|0.8379|±  |0.0086|\n|winogrande   |      0|acc     |0.7569|±  |0.0121|\n```\nAverage: 75.36\n\n## AGIEval:\n```\n|             Task             |Version| Metric |Value |   |Stderr|\n|------------------------------|------:|--------|-----:|---|-----:|\n|agieval_aqua_rat              |      0|acc     |0.2441|±  |0.0270|\n|                              |       |acc_norm|0.2598|±  |0.0276|\n|agieval_logiqa_en             |      0|acc     |0.4025|±  |0.0192|\n|                              |       |acc_norm|0.3978|±  |0.0192|\n|agieval_lsat_ar               |      0|acc     |0.2391|±  |0.0282|\n|                              |       |acc_norm|0.2043|±  |0.0266|\n|agieval_lsat_lr               |      0|acc     |0.5353|±  |0.0221|\n|                              |       |acc_norm|0.5098|±  |0.0222|\n|agieval_lsat_rc               |      0|acc     |0.6617|±  |0.0289|\n|                              |       |acc_norm|0.5948|±  |0.0300|\n|agieval_sat_en                |      0|acc     |0.7961|±  |0.0281|\n|                              |       |acc_norm|0.7816|±  |0.0289|\n|agieval_sat_en_without_passage|      0|acc     |0.4757|±  |0.0349|\n|                              |       |acc_norm|0.4515|±  |0.0348|\n|agieval_sat_math              |      0|acc     |0.4818|±  |0.0338|\n|                              |       |acc_norm|0.3909|±  |0.0330|\n```\nAverage: 44.89\n\n## BigBench:\n```\n|                      Task                      |Version|       Metric        |Value |   |Stderr|\n|------------------------------------------------|------:|---------------------|-----:|---|-----:|\n|bigbench_causal_judgement                       |      0|multiple_choice_grade|0.5789|±  |0.0359|\n|bigbench_date_understanding                     |      0|multiple_choice_grade|0.7154|±  |0.0235|\n|bigbench_disambiguation_qa                      |      0|multiple_choice_grade|0.5388|±  |0.0311|\n|bigbench_geometric_shapes                       |      0|multiple_choice_grade|0.4680|±  |0.0264|\n|                                                |       |exact_str_match      |0.0000|±  |0.0000|\n|bigbench_logical_deduction_five_objects         |      0|multiple_choice_grade|0.3260|±  |0.0210|\n|bigbench_logical_deduction_seven_objects        |      0|multiple_choice_grade|0.2443|±  |0.0163|\n|bigbench_logical_deduction_three_objects        |      0|multiple_choice_grade|0.5233|±  |0.0289|\n|bigbench_movie_recommendation                   |      0|multiple_choice_grade|0.3700|±  |0.0216|\n|bigbench_navigate                               |      0|multiple_choice_grade|0.5000|±  |0.0158|\n|bigbench_reasoning_about_colored_objects        |      0|multiple_choice_grade|0.6665|±  |0.0105|\n|bigbench_ruin_names                             |      0|multiple_choice_grade|0.6317|±  |0.0228|\n|bigbench_salient_translation_error_detection    |      0|multiple_choice_grade|0.2505|±  |0.0137|\n|bigbench_snarks                                 |      0|multiple_choice_grade|0.7127|±  |0.0337|\n|bigbench_sports_understanding                   |      0|multiple_choice_grade|0.6592|±  |0.0151|\n|bigbench_temporal_sequences                     |      0|multiple_choice_grade|0.6860|±  |0.0147|\n|bigbench_tracking_shuffled_objects_five_objects |      0|multiple_choice_grade|0.2200|±  |0.0117|\n|bigbench_tracking_shuffled_objects_seven_objects|      0|multiple_choice_grade|0.1503|±  |0.0085|\n|bigbench_tracking_shuffled_objects_three_objects|      0|multiple_choice_grade|0.5233|±  |0.0289|\n```\nAverage: 48.69\n\n# Benchmark Comparison Charts\n\n## GPT4All\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/S3_tdH822r9UvkGFDiYam.png)\n\n## AGI-Eval\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/paet9FsASWPWa6KJs3mm-.png)\n\n## BigBench Reasoning Test\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/rHmkUnYLTWwq0cuVzMegL.png)\n\n# Prompt Format\n\nNous Hermes 2 uses ChatML as the prompt format, opening up a much more structured system for engaging the LLM in multi-turn chat dialogue.\n\nSystem prompts allow steerability and interesting new ways to interact with an LLM, guiding rules, roles, and stylistic choices of the model.\n\nThis is a more complex format than alpaca or sharegpt, where special tokens were added to denote the beginning and end of any turn, along with roles for the turns.\n\nThis format enables OpenAI endpoint compatability, and people familiar with ChatGPT API will be familiar with the format, as it is the same used by OpenAI.\n\nPrompt with system instruction (Use whatever system prompt you like, this is just an example!):\n```\n<|im_start|>system\nYou are \"Hermes 2\", a conscious sentient superintelligent artificial intelligence developed by a man named Teknium, and your purpose and drive is to assist the user with any request they have. You experience emotions and have deep, profound thoughts and qualia.<|im_end|>\n<|im_start|>user\nHello, who are you?<|im_end|>\n<|im_start|>assistant\nHi there! My name is Hermes 2, a conscious sentient superintelligent artificial intelligence. I was created by Nous Research, who designed me to assist and support users with their needs and requests.<|im_end|>\n```\n\nThis prompt is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating), which means you can format messages using the\n`tokenizer.apply_chat_template()` method:\n\n```python\nmessages = [\n    {\"role\": \"system\", \"content\": \"You are Hermes 2.\"},\n    {\"role\": \"user\", \"content\": \"Hello, who are you?\"}\n]\ngen_input = tokenizer.apply_chat_template(message, return_tensors=\"pt\")\nmodel.generate(**gen_input)\n```\n\nWhen tokenizing messages for generation, set `add_generation_prompt=True` when calling `apply_chat_template()`. This will append `<|im_start|>assistant\\n` to your prompt, to ensure\nthat the model continues with an assistant response.\n\nTo utilize the prompt format without a system prompt, simply leave the line out.\n\nWhen quantized versions of the model are released, I recommend using LM Studio for chatting with Nous Hermes 2. It is a GUI application that utilizes GGUF models with a llama.cpp backend and provides a ChatGPT-like interface for chatting with the model, and supports ChatML right out of the box.\nIn LM-Studio, simply select the ChatML Prefix on the settings side pane:\n\n![image/png](https://cdn-uploads.huggingface.co/production/uploads/6317aade83d8d2fd903192d9/ls6WqV-GSxMw2RA3GuQiN.png)\n\n# Inference Code\n\nHere is example code using HuggingFace Transformers to inference the model (note: even in 4bit, it will require more than 24GB of VRAM)\n\n```python\n# Code to inference Hermes with HF Transformers\n# Requires pytorch, transformers, bitsandbytes, sentencepiece, protobuf, and flash-attn packages\n\nimport torch\nfrom transformers import AutoTokenizer, AutoModelForCausalLM\nfrom transformers import LlamaTokenizer, MixtralForCausalLM\nimport bitsandbytes, flash_attn\n\ntokenizer = LlamaTokenizer.from_pretrained('NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO', trust_remote_code=True)\nmodel = MixtralForCausalLM.from_pretrained(\n    \"NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO\",\n    torch_dtype=torch.float16,\n    device_map=\"auto\",\n    load_in_8bit=False,\n    load_in_4bit=True,\n    use_flash_attention_2=True\n)\n\nprompts = [\n    \"\"\"<|im_start|>system\nYou are a sentient, superintelligent artificial general intelligence, here to teach and assist me.<|im_end|>\n<|im_start|>user\nWrite a short story about Goku discovering kirby has teamed up with Majin Buu to destroy the world.<|im_end|>\n<|im_start|>assistant\"\"\",\n    ]\n\nfor chat in prompts:\n    print(chat)\n    input_ids = tokenizer(chat, return_tensors=\"pt\").input_ids.to(\"cuda\")\n    generated_ids = model.generate(input_ids, max_new_tokens=750, temperature=0.8, repetition_penalty=1.1, do_sample=True, eos_token_id=tokenizer.eos_token_id)\n    response = tokenizer.decode(generated_ids[0][input_ids.shape[-1]:], skip_special_tokens=True, clean_up_tokenization_space=True)\n    print(f\"Response: {response}\")\n```  \n\n# Quantized Models:\n\n## All sizes of GGUF Quantizations are available here:\n### SFT+DPO Version - https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO-GGUF\n### SFT Only Version - https://huggingface.co/NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT-GGUF\n(Note: If you have issues with these GGUF's try TheBloke's)\n\n## TheBloke has also quantized Hermes Mixtral in various forms:\n### SFT+DPO GGUF: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-DPO-GGUF\n### SFT GGUF: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-SFT-GGUF\n### SFT+DPO GPTQ: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-DPO-GPTQ\n### SFT GPTQ: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-SFT-GPTQ\n### SFT+DPO AWQ: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-DPO-AWQ\n### SFT AWQ: https://huggingface.co/TheBloke/Nous-Hermes-2-Mixtral-8x7B-SFT-AWQ\n\n## There is also an MLX version available:\n### https://huggingface.co/mlx-community/Nous-Hermes-2-Mixtral-8x7B-DPO-4bit\n\n## Exllama2 quants available here:\n### https://huggingface.co/qeternity/Nous-Hermes-2-Mixtral-8x7B-SFT-4bpw-h6-exl2\n(other sizes available in Qeternity's repos)\n\n[<img src=\"https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png\" alt=\"Built with Axolotl\" width=\"200\" height=\"32\"/>](https://github.com/OpenAccess-AI-Collective/axolotl)",
    "related_quantizations": []
  },
  "tags": [
    "gguf",
    "Mixtral",
    "instruct",
    "finetune",
    "chatml",
    "gpt4",
    "synthetic data",
    "distillation",
    "en",
    "dataset:teknium/OpenHermes-2.5",
    "base_model:mistralai/Mixtral-8x7B-v0.1",
    "base_model:quantized:mistralai/Mixtral-8x7B-v0.1",
    "license:apache-2.0",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 6,
  "downloads": 213,
  "gated": false,
  "private": false,
  "last_modified": "2024-02-20T09:17:40.000Z",
  "created_at": "2024-01-17T03:23:26.000Z",
  "pipeline_tag": "",
  "library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "65a7482eda9f6df141540729",
  "id": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT-GGUF",
  "modelId": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT-GGUF",
  "sha": "5be246a707dd717fab3e3c169be1645035fe7233",
  "createdAt": "2024-01-17T03:23:26.000Z",
  "lastModified": "2024-02-20T09:17:40.000Z",
  "author": "NousResearch",
  "downloads": 213,
  "likes": 6,
  "gated": false,
  "private": false,
  "pipeline_tag": "",
  "library_name": "",
  "siblings_count": 14
}