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

richarderkhov/h2oai_-_h2o-danube-1.8b-chat-gguf overview

Summary h2o-danube-1.8b-chat is an chat fine-tuned model by H2O.ai with 1.8 billion parameters. For details, please refer to our Technical Report. We release three versions of this model: | Model Name | Description | |:-----------------------------------------------------------------------------------|:----------------| | h2oai/h2o-danube-1.8b-base | Base model | | h2oai/h2o-danube-1.8b-sft | SFT tuned | | h2oai/h2o-danube-1.8b-chat | SFT + DPO tuned | This model was trained using H2O LLM Studio.

ggufarxiv:2401.16818endpoints_compatibleregion:usconversational
richarderkhov/h2oai_-_h2o-danube-1.8b-chat-gguf visual
Downloads
805
Likes
1
Pipeline
Library
Visibility
Public
Access
Open

Repository Files & Downloads

21 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
h2o-danube-1.8b-chat.IQ3_M.gguf GGUF IQ3_M 813.67 MB Download
h2o-danube-1.8b-chat.IQ3_S.gguf GGUF IQ3_S 787.02 MB Download
h2o-danube-1.8b-chat.IQ3_XS.gguf GGUF IQ3_XS 749.76 MB Download
h2o-danube-1.8b-chat.IQ4_NL.gguf GGUF IQ4_NL 1014.60 MB Download
h2o-danube-1.8b-chat.IQ4_XS.gguf GGUF IQ4_XS 965.23 MB Download
h2o-danube-1.8b-chat.Q2_K.gguf GGUF Q2_K 677.78 MB Download
h2o-danube-1.8b-chat.Q3_K.gguf GGUF Q3_K 863.23 MB Download
h2o-danube-1.8b-chat.Q3_K_L.gguf GGUF Q3_K_L 934.80 MB Download
h2o-danube-1.8b-chat.Q3_K_M.gguf GGUF Q3_K_M 863.23 MB Download
h2o-danube-1.8b-chat.Q3_K_S.gguf GGUF Q3_K_S 782.04 MB Download
h2o-danube-1.8b-chat.Q4_0.gguf GGUF 1003.59 MB Download
h2o-danube-1.8b-chat.Q4_1.gguf GGUF 1.08 GB Download
h2o-danube-1.8b-chat.Q4_K.gguf GGUF Q4_K 1.04 GB Download
h2o-danube-1.8b-chat.Q4_K_M.gguf GGUF Q4_K_M 1.04 GB Download
h2o-danube-1.8b-chat.Q4_K_S.gguf GGUF Q4_K_S 1010.70 MB Download
h2o-danube-1.8b-chat.Q5_0.gguf GGUF 1.18 GB Download
h2o-danube-1.8b-chat.Q5_1.gguf GGUF 1.29 GB Download
h2o-danube-1.8b-chat.Q5_K.gguf GGUF Q5_K 1.21 GB Download
h2o-danube-1.8b-chat.Q5_K_M.gguf GGUF Q5_K_M 1.21 GB Download
h2o-danube-1.8b-chat.Q5_K_S.gguf GGUF Q5_K_S 1.18 GB Download
h2o-danube-1.8b-chat.Q6_K.gguf GGUF Q6_K 1.40 GB Download

Model Details Live

Model Slug
richarderkhov/h2oai_-_h2o-danube-1.8b-chat-gguf
Author
RichardErkhov
Pipeline Task
Library
Created
2024-05-10
Last Modified
2024-05-10
Gated
No
Private
No
HF SHA
d8e374b1371b9d13f0edf3593c0f60f5eca46c79
License
Unknown
Language
Unknown
Base Model
Unknown

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "frontmatter": {},
    "hero_image_url": "",
    "summary": "## Summary h2o-danube-1.8b-chat is an chat fine-tuned model by H2O.ai with 1.8 billion parameters. For details, please refer to our Technical Report. We release three versions of this model: | Model Name                                                                         |  Description    | |:-----------------------------------------------------------------------------------|:----------------| |  h2oai/h2o-danube-1.8b-base   | Base model      | |  h2oai/h2o-danube-1.8b-sft     | SFT tuned       | |  h2oai/h2o-danube-1.8b-chat   | SFT + DPO tuned | This model was trained using H2O LLM Studio.",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "Quantization made by Richard Erkhov.\n\n[Github](https://github.com/RichardErkhov)\n\n[Discord](https://discord.gg/pvy7H8DZMG)\n\n[Request more models](https://github.com/RichardErkhov/quant_request)\n\n\nh2o-danube-1.8b-chat - GGUF\n- Model creator: https://huggingface.co/h2oai/\n- Original model: https://huggingface.co/h2oai/h2o-danube-1.8b-chat/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [h2o-danube-1.8b-chat.Q2_K.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q2_K.gguf) | Q2_K | 0.66GB |\n| [h2o-danube-1.8b-chat.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.IQ3_XS.gguf) | IQ3_XS | 0.73GB |\n| [h2o-danube-1.8b-chat.IQ3_S.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.IQ3_S.gguf) | IQ3_S | 0.77GB |\n| [h2o-danube-1.8b-chat.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q3_K_S.gguf) | Q3_K_S | 0.76GB |\n| [h2o-danube-1.8b-chat.IQ3_M.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.IQ3_M.gguf) | IQ3_M | 0.79GB |\n| [h2o-danube-1.8b-chat.Q3_K.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q3_K.gguf) | Q3_K | 0.84GB |\n| [h2o-danube-1.8b-chat.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q3_K_M.gguf) | Q3_K_M | 0.84GB |\n| [h2o-danube-1.8b-chat.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q3_K_L.gguf) | Q3_K_L | 0.91GB |\n| [h2o-danube-1.8b-chat.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.IQ4_XS.gguf) | IQ4_XS | 0.94GB |\n| [h2o-danube-1.8b-chat.Q4_0.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q4_0.gguf) | Q4_0 | 0.98GB |\n| [h2o-danube-1.8b-chat.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.IQ4_NL.gguf) | IQ4_NL | 0.99GB |\n| [h2o-danube-1.8b-chat.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q4_K_S.gguf) | Q4_K_S | 0.99GB |\n| [h2o-danube-1.8b-chat.Q4_K.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q4_K.gguf) | Q4_K | 1.04GB |\n| [h2o-danube-1.8b-chat.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q4_K_M.gguf) | Q4_K_M | 1.04GB |\n| [h2o-danube-1.8b-chat.Q4_1.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q4_1.gguf) | Q4_1 | 1.08GB |\n| [h2o-danube-1.8b-chat.Q5_0.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q5_0.gguf) | Q5_0 | 1.18GB |\n| [h2o-danube-1.8b-chat.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q5_K_S.gguf) | Q5_K_S | 1.18GB |\n| [h2o-danube-1.8b-chat.Q5_K.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q5_K.gguf) | Q5_K | 1.21GB |\n| [h2o-danube-1.8b-chat.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q5_K_M.gguf) | Q5_K_M | 1.21GB |\n| [h2o-danube-1.8b-chat.Q5_1.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q5_1.gguf) | Q5_1 | 1.29GB |\n| [h2o-danube-1.8b-chat.Q6_K.gguf](https://huggingface.co/RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf/blob/main/h2o-danube-1.8b-chat.Q6_K.gguf) | Q6_K | 1.4GB |\n\n\n\n\nOriginal model description:\n---\nlanguage:\n- en\nlibrary_name: transformers\nlicense: apache-2.0\ntags:\n- gpt\n- llm\n- large language model\n- h2o-llmstudio\nthumbnail: >-\n  https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources/images/favicon.ico\ndatasets:\n- HuggingFaceH4/ultrafeedback_binarized\n- Intel/orca_dpo_pairs\n- argilla/distilabel-math-preference-dpo\n- Open-Orca/OpenOrca\n- OpenAssistant/oasst2\n- HuggingFaceH4/ultrachat_200k\n- meta-math/MetaMathQA\nwidget:\n- messages:\n  - role: user\n    content: Why is drinking water so healthy?\npipeline_tag: text-generation\n---\n# Model Card\n## Summary\n\nh2o-danube-1.8b-chat is an chat fine-tuned model by H2O.ai with 1.8 billion parameters. For details, please refer to our [Technical Report](https://arxiv.org/abs/2401.16818). We release three versions of this model:\n\n| Model Name                                                                         |  Description    |\n|:-----------------------------------------------------------------------------------|:----------------|\n|  [h2oai/h2o-danube-1.8b-base](https://huggingface.co/h2oai/h2o-danube-1.8b-base)   | Base model      |\n|  [h2oai/h2o-danube-1.8b-sft](https://huggingface.co/h2oai/h2o-danube-1.8b-sft)     | SFT tuned       |\n|  [h2oai/h2o-danube-1.8b-chat](https://huggingface.co/h2oai/h2o-danube-1.8b-chat)   | SFT + DPO tuned |\n\nThis model was trained using [H2O LLM Studio](https://github.com/h2oai/h2o-llmstudio).\n\n## Model Architecture\n\nWe adjust the Llama 2 architecture for a total of around 1.8b parameters. We use the original Llama 2 tokenizer with a vocabulary size of 32,000 and train our model up to a context length of 16,384. We incorporate the sliding window attention from mistral with a size of 4,096.\n\nThe details of the model architecture are:\n\n| Hyperparameter  |  Value |\n|:----------------|:-------|\n|    n_layers     |     24 |\n|     n_heads     |     32 |\n|  n_query_groups |      8 |\n|     n_embd      |   2560 |\n|   vocab size    |  32000 |\n| sequence length |  16384 |\n\n## Usage\n\nTo use the model with the `transformers` library on a machine with GPUs, first make sure you have the `transformers` library installed.\n\n```bash\npip install transformers==4.36.1\n```\n\n```python\nimport torch\nfrom transformers import pipeline\n\npipe = pipeline(\n    \"text-generation\",\n    model=\"h2oai/h2o-danube-1.8b-chat\",\n    torch_dtype=torch.bfloat16,\n    device_map=\"auto\",\n)\n\n# We use the HF Tokenizer chat template to format each message\n# https://huggingface.co/docs/transformers/main/en/chat_templating\nmessages = [\n    {\"role\": \"user\", \"content\": \"Why is drinking water so healthy?\"},\n]\nprompt = pipe.tokenizer.apply_chat_template(\n    messages,\n    tokenize=False,\n    add_generation_prompt=True,\n)\nres = pipe(\n    prompt,\n    max_new_tokens=256,\n)\nprint(res[0][\"generated_text\"])\n# <|prompt|>Why is drinking water so healthy?</s><|answer|> Drinking water is healthy for several reasons: [...]\n```\n\n## Benchmarks\n\nCommonsense, world-knowledge and reading comprehension tested in 0-shot:\n\n| Benchmark     |   acc_n  |\n|:--------------|:--------:|\n| ARC-easy      |   67.51  |\n| ARC-challenge |   39.25  |\n| BoolQ         |   77.89  |\n| Hellaswag     |   67.60  |\n| OpenBookQA    |   39.20  |\n| PiQA          |   76.71  |\n| TriviaQA      |   36.29  |\n| Winogrande    |   65.35  |\n\n## Quantization and sharding\n\nYou can load the models using quantization by specifying ```load_in_8bit=True``` or ```load_in_4bit=True```. Also, sharding on multiple GPUs is possible by setting ```device_map=auto```.\n\n## Model Architecture\n\n```\nMistralForCausalLM(\n  (model): MistralModel(\n    (embed_tokens): Embedding(32000, 2560, padding_idx=0)\n    (layers): ModuleList(\n      (0-23): 24 x MistralDecoderLayer(\n        (self_attn): MistralAttention(\n          (q_proj): Linear(in_features=2560, out_features=2560, bias=False)\n          (k_proj): Linear(in_features=2560, out_features=640, bias=False)\n          (v_proj): Linear(in_features=2560, out_features=640, bias=False)\n          (o_proj): Linear(in_features=2560, out_features=2560, bias=False)\n          (rotary_emb): MistralRotaryEmbedding()\n        )\n        (mlp): MistralMLP(\n          (gate_proj): Linear(in_features=2560, out_features=6912, bias=False)\n          (up_proj): Linear(in_features=2560, out_features=6912, bias=False)\n          (down_proj): Linear(in_features=6912, out_features=2560, bias=False)\n          (act_fn): SiLU()\n        )\n        (input_layernorm): MistralRMSNorm()\n        (post_attention_layernorm): MistralRMSNorm()\n      )\n    )\n    (norm): MistralRMSNorm()\n  )\n  (lm_head): Linear(in_features=2560, out_features=32000, bias=False)\n)\n```\n\n## Model Configuration\n\nThis model was trained using H2O LLM Studio and with the configuration in [cfg.yaml](cfg.yaml). Visit [H2O LLM Studio](https://github.com/h2oai/h2o-llmstudio) to learn how to train your own large language models.\n\n\n## Disclaimer\n\nPlease read this disclaimer carefully before using the large language model provided in this repository. Your use of the model signifies your agreement to the following terms and conditions.\n\n- Biases and Offensiveness: The large language model is trained on a diverse range of internet text data, which may contain biased, racist, offensive, or otherwise inappropriate content. By using this model, you acknowledge and accept that the generated content may sometimes exhibit biases or produce content that is offensive or inappropriate. The developers of this repository do not endorse, support, or promote any such content or viewpoints.\n- Limitations: The large language model is an AI-based tool and not a human. It may produce incorrect, nonsensical, or irrelevant responses. It is the user's responsibility to critically evaluate the generated content and use it at their discretion.\n- Use at Your Own Risk: Users of this large language model must assume full responsibility for any consequences that may arise from their use of the tool. The developers and contributors of this repository shall not be held liable for any damages, losses, or harm resulting from the use or misuse of the provided model.\n- Ethical Considerations: Users are encouraged to use the large language model responsibly and ethically. By using this model, you agree not to use it for purposes that promote hate speech, discrimination, harassment, or any form of illegal or harmful activities.\n- Reporting Issues: If you encounter any biased, offensive, or otherwise inappropriate content generated by the large language model, please report it to the repository maintainers through the provided channels. Your feedback will help improve the model and mitigate potential issues.\n- Changes to this Disclaimer: The developers of this repository reserve the right to modify or update this disclaimer at any time without prior notice. It is the user's responsibility to periodically review the disclaimer to stay informed about any changes.\n\nBy using the large language model provided in this repository, you agree to accept and comply with the terms and conditions outlined in this disclaimer. If you do not agree with any part of this disclaimer, you should refrain from using the model and any content generated by it.\n\n",
    "related_quantizations": []
  },
  "tags": [
    "gguf",
    "arxiv:2401.16818",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 1,
  "downloads": 805,
  "gated": false,
  "private": false,
  "last_modified": "2024-05-10T15:53:00.000Z",
  "created_at": "2024-05-10T15:27:47.000Z",
  "pipeline_tag": "",
  "library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "663e3cf35124b4d7d2a52e8f",
  "id": "RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf",
  "modelId": "RichardErkhov/h2oai_-_h2o-danube-1.8b-chat-gguf",
  "sha": "d8e374b1371b9d13f0edf3593c0f60f5eca46c79",
  "createdAt": "2024-05-10T15:27:47.000Z",
  "lastModified": "2024-05-10T15:53:00.000Z",
  "author": "RichardErkhov",
  "downloads": 805,
  "likes": 1,
  "gated": false,
  "private": false,
  "pipeline_tag": "",
  "library_name": "",
  "siblings_count": 23
}