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

thebloke/leo-hessianai-70b-chat-gguf overview

Comprehensive model page for thebloke/leo-hessianai-70b-chat-gguf

transformersggufllamatext-generationendedataset:LeoLM/OpenSchnabeltierdataset:OpenAssistant/OASST-DEdataset:FreedomIntelligence/alpaca-gpt4-deutschdataset:FreedomIntelligence/evol-instruct-deutschdataset:LeoLM/German_Poemsdataset:LeoLM/German_Songsbase_model:LeoLM/leo-hessianai-70b-chatbase_model:quantized:LeoLM/leo-hessianai-70b-chatlicense:llama2region:usconversational
thebloke/leo-hessianai-70b-chat-gguf visual
Downloads
115
Likes
1
Pipeline
text-generation
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

10 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
leo-hessianai-70b-chat.Q2_K.gguf GGUF Q2_K 27.27 GB Download
leo-hessianai-70b-chat.Q3_K_L.gguf GGUF Q3_K_L 33.67 GB Download
leo-hessianai-70b-chat.Q3_K_M.gguf GGUF Q3_K_M 30.91 GB Download
leo-hessianai-70b-chat.Q3_K_S.gguf GGUF Q3_K_S 27.87 GB Download
leo-hessianai-70b-chat.Q4_0.gguf GGUF 36.20 GB Download
leo-hessianai-70b-chat.Q4_K_M.gguf GGUF Q4_K_M 38.58 GB Download
leo-hessianai-70b-chat.Q4_K_S.gguf GGUF Q4_K_S 36.39 GB Download
leo-hessianai-70b-chat.Q5_0.gguf GGUF 44.20 GB Download
leo-hessianai-70b-chat.Q5_K_M.gguf GGUF Q5_K_M 45.41 GB Download
leo-hessianai-70b-chat.Q5_K_S.gguf GGUF Q5_K_S 44.20 GB Download

Model Details Live

Model Slug
thebloke/leo-hessianai-70b-chat-gguf
Author
TheBloke
Pipeline Task
text-generation
Library
transformers
Created
2023-12-11
Last Modified
2023-12-11
Gated
No
Private
No
HF SHA
8247227ca2d85229cd2b21baede55bf6f3734d30
License
llama2
Language
en, de
Base Model
LeoLM/leo-hessianai-70b-chat

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "base_model": "LeoLM/leo-hessianai-70b-chat",
    "datasets": [
      "LeoLM/OpenSchnabeltier",
      "OpenAssistant/OASST-DE",
      "FreedomIntelligence/alpaca-gpt4-deutsch",
      "FreedomIntelligence/evol-instruct-deutsch",
      "LeoLM/German_Poems",
      "LeoLM/German_Songs"
    ],
    "inference": false,
    "language": [
      "en",
      "de"
    ],
    "library_name": "transformers",
    "license": "llama2",
    "model_creator": "LAION LeoLM",
    "model_name": "Leo Hessianai 70B Chat",
    "model_type": "llama",
    "pipeline_tag": "text-generation",
    "prompt_template": "<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n",
    "quantized_by": "TheBloke",
    "frontmatter": {
      "base_model": "LeoLM/leo-hessianai-70b-chat",
      "datasets": [
        "LeoLM/OpenSchnabeltier",
        "OpenAssistant/OASST-DE",
        "FreedomIntelligence/alpaca-gpt4-deutsch",
        "FreedomIntelligence/evol-instruct-deutsch",
        "LeoLM/German_Poems",
        "LeoLM/German_Songs"
      ],
      "inference": "false",
      "language": [
        "en",
        "de"
      ],
      "library_name": "transformers",
      "license": "llama2",
      "model_creator": "LAION LeoLM",
      "model_name": "Leo Hessianai 70B Chat",
      "model_type": "llama",
      "pipeline_tag": "text-generation",
      "prompt_template": "'<|im_start|>system",
      "quantized_by": "TheBloke"
    },
    "hero_image_url": "https://i.imgur.com/EBdldam.jpg",
    "summary": "",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nbase_model: LeoLM/leo-hessianai-70b-chat\ndatasets:\n- LeoLM/OpenSchnabeltier\n- OpenAssistant/OASST-DE\n- FreedomIntelligence/alpaca-gpt4-deutsch\n- FreedomIntelligence/evol-instruct-deutsch\n- LeoLM/German_Poems\n- LeoLM/German_Songs\ninference: false\nlanguage:\n- en\n- de\nlibrary_name: transformers\nlicense: llama2\nmodel_creator: LAION LeoLM\nmodel_name: Leo Hessianai 70B Chat\nmodel_type: llama\npipeline_tag: text-generation\nprompt_template: '<|im_start|>system\n\n  {system_message}<|im_end|>\n\n  <|im_start|>user\n\n  {prompt}<|im_end|>\n\n  <|im_start|>assistant\n\n  '\nquantized_by: TheBloke\n---\n<!-- markdownlint-disable MD041 -->\n\n<!-- header start -->\n<!-- 200823 -->\n<div style=\"width: auto; margin-left: auto; margin-right: auto\">\n<img src=\"https://i.imgur.com/EBdldam.jpg\" alt=\"TheBlokeAI\" style=\"width: 100%; min-width: 400px; display: block; margin: auto;\">\n</div>\n<div style=\"display: flex; justify-content: space-between; width: 100%;\">\n    <div style=\"display: flex; flex-direction: column; align-items: flex-start;\">\n        <p style=\"margin-top: 0.5em; margin-bottom: 0em;\"><a href=\"https://discord.gg/theblokeai\">Chat & support: TheBloke's Discord server</a></p>\n    </div>\n    <div style=\"display: flex; flex-direction: column; align-items: flex-end;\">\n        <p style=\"margin-top: 0.5em; margin-bottom: 0em;\"><a href=\"https://www.patreon.com/TheBlokeAI\">Want to contribute? TheBloke's Patreon page</a></p>\n    </div>\n</div>\n<div style=\"text-align:center; margin-top: 0em; margin-bottom: 0em\"><p style=\"margin-top: 0.25em; margin-bottom: 0em;\">TheBloke's LLM work is generously supported by a grant from <a href=\"https://a16z.com\">andreessen horowitz (a16z)</a></p></div>\n<hr style=\"margin-top: 1.0em; margin-bottom: 1.0em;\">\n<!-- header end -->\n\n# Leo Hessianai 70B Chat - GGUF\n- Model creator: [LAION LeoLM](https://huggingface.co/LeoLM)\n- Original model: [Leo Hessianai 70B Chat](https://huggingface.co/LeoLM/leo-hessianai-70b-chat)\n\n<!-- description start -->\n## Description\n\nThis repo contains GGUF format model files for [LAION LeoLM's Leo Hessianai 70B Chat](https://huggingface.co/LeoLM/leo-hessianai-70b-chat).\n\nThese files were quantised using hardware kindly provided by [Massed Compute](https://massedcompute.com/).\n\n<!-- description end -->\n<!-- README_GGUF.md-about-gguf start -->\n### About GGUF\n\nGGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.\n\nHere is an incomplete list of clients and libraries that are known to support GGUF:\n\n* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.\n* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.\n* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.\n* [GPT4All](https://gpt4all.io/index.html), a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.\n* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.\n* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.\n* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.\n* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.\n* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.\n* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.\n\n<!-- README_GGUF.md-about-gguf end -->\n<!-- repositories-available start -->\n## Repositories available\n\n* [AWQ model(s) for GPU inference.](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-AWQ)\n* [GPTQ models for GPU inference, with multiple quantisation parameter options.](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GPTQ)\n* [2, 3, 4, 5, 6 and 8-bit GGUF models for CPU+GPU inference](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF)\n* [LAION LeoLM's original unquantised fp16 model in pytorch format, for GPU inference and for further conversions](https://huggingface.co/LeoLM/leo-hessianai-70b-chat)\n<!-- repositories-available end -->\n\n<!-- prompt-template start -->\n## Prompt template: ChatML\n\n```\n<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n\n```\n\n<!-- prompt-template end -->\n\n\n<!-- compatibility_gguf start -->\n## Compatibility\n\nThese quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)\n\nThey are also compatible with many third party UIs and libraries - please see the list at the top of this README.\n\n## Explanation of quantisation methods\n\n<details>\n  <summary>Click to see details</summary>\n\nThe new methods available are:\n\n* GGML_TYPE_Q2_K - \"type-1\" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)\n* GGML_TYPE_Q3_K - \"type-0\" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.\n* GGML_TYPE_Q4_K - \"type-1\" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.\n* GGML_TYPE_Q5_K - \"type-1\" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw\n* GGML_TYPE_Q6_K - \"type-0\" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw\n\nRefer to the Provided Files table below to see what files use which methods, and how.\n</details>\n<!-- compatibility_gguf end -->\n\n<!-- README_GGUF.md-provided-files start -->\n## Provided files\n\n| Name | Quant method | Bits | Size | Max RAM required | Use case |\n| ---- | ---- | ---- | ---- | ---- | ----- |\n| [leo-hessianai-70b-chat.Q2_K.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q2_K.gguf) | Q2_K | 2 | 29.28 GB| 31.78 GB | smallest, significant quality loss - not recommended for most purposes |\n| [leo-hessianai-70b-chat.Q3_K_S.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q3_K_S.gguf) | Q3_K_S | 3 | 29.92 GB| 32.42 GB | very small, high quality loss |\n| [leo-hessianai-70b-chat.Q3_K_M.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q3_K_M.gguf) | Q3_K_M | 3 | 33.19 GB| 35.69 GB | very small, high quality loss |\n| [leo-hessianai-70b-chat.Q3_K_L.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q3_K_L.gguf) | Q3_K_L | 3 | 36.15 GB| 38.65 GB | small, substantial quality loss |\n| [leo-hessianai-70b-chat.Q4_0.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q4_0.gguf) | Q4_0 | 4 | 38.87 GB| 41.37 GB | legacy; small, very high quality loss - prefer using Q3_K_M |\n| [leo-hessianai-70b-chat.Q4_K_S.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q4_K_S.gguf) | Q4_K_S | 4 | 39.08 GB| 41.58 GB | small, greater quality loss |\n| [leo-hessianai-70b-chat.Q4_K_M.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q4_K_M.gguf) | Q4_K_M | 4 | 41.42 GB| 43.92 GB | medium, balanced quality - recommended |\n| [leo-hessianai-70b-chat.Q5_0.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q5_0.gguf) | Q5_0 | 5 | 47.46 GB| 49.96 GB | legacy; medium, balanced quality - prefer using Q4_K_M |\n| [leo-hessianai-70b-chat.Q5_K_S.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q5_K_S.gguf) | Q5_K_S | 5 | 47.46 GB| 49.96 GB | large, low quality loss - recommended |\n| [leo-hessianai-70b-chat.Q5_K_M.gguf](https://huggingface.co/TheBloke/leo-hessianai-70B-chat-GGUF/blob/main/leo-hessianai-70b-chat.Q5_K_M.gguf) | Q5_K_M | 5 | 48.76 GB| 51.26 GB | large, very low quality loss - recommended |\n| leo-hessianai-70b-chat.Q6_K.gguf | Q6_K | 6 | 56.59 GB| 59.09 GB | very large, extremely low quality loss |\n| leo-hessianai-70b-chat.Q8_0.gguf | Q8_0 | 8 | 73.29 GB| 75.79 GB | very large, extremely low quality loss - not recommended |\n\n**Note**: the above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.\n\n### Q6_K and Q8_0 files are split and require joining\n\n**Note:** HF does not support uploading files larger than 50GB. Therefore I have uploaded the Q6_K and Q8_0 files as split files.\n\n<details>\n  <summary>Click for instructions regarding Q6_K and Q8_0 files</summary>\n   \n### q6_K \nPlease download:\n* `leo-hessianai-70b-chat.Q6_K.gguf-split-a`\n* `leo-hessianai-70b-chat.Q6_K.gguf-split-b`\n\n### q8_0\nPlease download:\n* `leo-hessianai-70b-chat.Q8_0.gguf-split-a`\n* `leo-hessianai-70b-chat.Q8_0.gguf-split-b`\n\nTo join the files, do the following:\n\nLinux and macOS:\n```\ncat leo-hessianai-70b-chat.Q6_K.gguf-split-* > leo-hessianai-70b-chat.Q6_K.gguf && rm leo-hessianai-70b-chat.Q6_K.gguf-split-*\ncat leo-hessianai-70b-chat.Q8_0.gguf-split-* > leo-hessianai-70b-chat.Q8_0.gguf && rm leo-hessianai-70b-chat.Q8_0.gguf-split-*\n```\nWindows command line:\n```\nCOPY /B leo-hessianai-70b-chat.Q6_K.gguf-split-a + leo-hessianai-70b-chat.Q6_K.gguf-split-b leo-hessianai-70b-chat.Q6_K.gguf\ndel leo-hessianai-70b-chat.Q6_K.gguf-split-a leo-hessianai-70b-chat.Q6_K.gguf-split-b\n\nCOPY /B leo-hessianai-70b-chat.Q8_0.gguf-split-a + leo-hessianai-70b-chat.Q8_0.gguf-split-b leo-hessianai-70b-chat.Q8_0.gguf\ndel leo-hessianai-70b-chat.Q8_0.gguf-split-a leo-hessianai-70b-chat.Q8_0.gguf-split-b\n```\n\n</details>\n<!-- README_GGUF.md-provided-files end -->\n\n<!-- README_GGUF.md-how-to-download start -->\n## How to download GGUF files\n\n**Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.\n\nThe following clients/libraries will automatically download models for you, providing a list of available models to choose from:\n\n* LM Studio\n* LoLLMS Web UI\n* Faraday.dev\n\n### In `text-generation-webui`\n\nUnder Download Model, you can enter the model repo: TheBloke/leo-hessianai-70B-chat-GGUF and below it, a specific filename to download, such as: leo-hessianai-70b-chat.Q4_K_M.gguf.\n\nThen click Download.\n\n### On the command line, including multiple files at once\n\nI recommend using the `huggingface-hub` Python library:\n\n```shell\npip3 install huggingface-hub\n```\n\nThen you can download any individual model file to the current directory, at high speed, with a command like this:\n\n```shell\nhuggingface-cli download TheBloke/leo-hessianai-70B-chat-GGUF leo-hessianai-70b-chat.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False\n```\n\n<details>\n  <summary>More advanced huggingface-cli download usage (click to read)</summary>\n\nYou can also download multiple files at once with a pattern:\n\n```shell\nhuggingface-cli download TheBloke/leo-hessianai-70B-chat-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'\n```\n\nFor more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).\n\nTo accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:\n\n```shell\npip3 install hf_transfer\n```\n\nAnd set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:\n\n```shell\nHF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download TheBloke/leo-hessianai-70B-chat-GGUF leo-hessianai-70b-chat.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False\n```\n\nWindows Command Line users: You can set the environment variable by running `set HF_HUB_ENABLE_HF_TRANSFER=1` before the download command.\n</details>\n<!-- README_GGUF.md-how-to-download end -->\n\n<!-- README_GGUF.md-how-to-run start -->\n## Example `llama.cpp` command\n\nMake sure you are using `llama.cpp` from commit [d0cee0d](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.\n\n```shell\n./main -ngl 35 -m leo-hessianai-70b-chat.Q4_K_M.gguf --color -c 8192 --temp 0.7 --repeat_penalty 1.1 -n -1 -p \"<|im_start|>system\\n{system_message}<|im_end|>\\n<|im_start|>user\\n{prompt}<|im_end|>\\n<|im_start|>assistant\"\n```\n\nChange `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.\n\nChange `-c 8192` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically. Note that longer sequence lengths require much more resources, so you may need to reduce this value.\n\nIf you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`\n\nFor other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)\n\n## How to run in `text-generation-webui`\n\nFurther instructions can be found in the text-generation-webui documentation, here: [text-generation-webui/docs/04 ‐ Model Tab.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/04%20%E2%80%90%20Model%20Tab.md#llamacpp).\n\n## How to run from Python code\n\nYou can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries. Note that at the time of writing (Nov 27th 2023), ctransformers has not been updated for some time and is not compatible with some recent models. Therefore I recommend you use llama-cpp-python.\n\n### How to load this model in Python code, using llama-cpp-python\n\nFor full documentation, please see: [llama-cpp-python docs](https://abetlen.github.io/llama-cpp-python/).\n\n#### First install the package\n\nRun one of the following commands, according to your system:\n\n```shell\n# Base ctransformers with no GPU acceleration\npip install llama-cpp-python\n# With NVidia CUDA acceleration\nCMAKE_ARGS=\"-DLLAMA_CUBLAS=on\" pip install llama-cpp-python\n# Or with OpenBLAS acceleration\nCMAKE_ARGS=\"-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS\" pip install llama-cpp-python\n# Or with CLBLast acceleration\nCMAKE_ARGS=\"-DLLAMA_CLBLAST=on\" pip install llama-cpp-python\n# Or with AMD ROCm GPU acceleration (Linux only)\nCMAKE_ARGS=\"-DLLAMA_HIPBLAS=on\" pip install llama-cpp-python\n# Or with Metal GPU acceleration for macOS systems only\nCMAKE_ARGS=\"-DLLAMA_METAL=on\" pip install llama-cpp-python\n\n# In windows, to set the variables CMAKE_ARGS in PowerShell, follow this format; eg for NVidia CUDA:\n$env:CMAKE_ARGS = \"-DLLAMA_OPENBLAS=on\"\npip install llama-cpp-python\n```\n\n#### Simple llama-cpp-python example code\n\n```python\nfrom llama_cpp import Llama\n\n# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.\nllm = Llama(\n  model_path=\"./leo-hessianai-70b-chat.Q4_K_M.gguf\",  # Download the model file first\n  n_ctx=8192,  # The max sequence length to use - note that longer sequence lengths require much more resources\n  n_threads=8,            # The number of CPU threads to use, tailor to your system and the resulting performance\n  n_gpu_layers=35         # The number of layers to offload to GPU, if you have GPU acceleration available\n)\n\n# Simple inference example\noutput = llm(\n  \"<|im_start|>system\\n{system_message}<|im_end|>\\n<|im_start|>user\\n{prompt}<|im_end|>\\n<|im_start|>assistant\", # Prompt\n  max_tokens=512,  # Generate up to 512 tokens\n  stop=[\"</s>\"],   # Example stop token - not necessarily correct for this specific model! Please check before using.\n  echo=True        # Whether to echo the prompt\n)\n\n# Chat Completion API\n\nllm = Llama(model_path=\"./leo-hessianai-70b-chat.Q4_K_M.gguf\", chat_format=\"llama-2\")  # Set chat_format according to the model you are using\nllm.create_chat_completion(\n    messages = [\n        {\"role\": \"system\", \"content\": \"You are a story writing assistant.\"},\n        {\n            \"role\": \"user\",\n            \"content\": \"Write a story about llamas.\"\n        }\n    ]\n)\n```\n\n## How to use with LangChain\n\nHere are guides on using llama-cpp-python and ctransformers with LangChain:\n\n* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)\n* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)\n\n<!-- README_GGUF.md-how-to-run end -->\n\n<!-- footer start -->\n<!-- 200823 -->\n## Discord\n\nFor further support, and discussions on these models and AI in general, join us at:\n\n[TheBloke AI's Discord server](https://discord.gg/theblokeai)\n\n## Thanks, and how to contribute\n\nThanks to the [chirper.ai](https://chirper.ai) team!\n\nThanks to Clay from [gpus.llm-utils.org](llm-utils)!\n\nI'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.\n\nIf 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.\n\nDonaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.\n\n* Patreon: https://patreon.com/TheBlokeAI\n* Ko-Fi: https://ko-fi.com/TheBlokeAI\n\n**Special thanks to**: Aemon Algiz.\n\n**Patreon special mentions**: Michael Levine, 阿明, Trailburnt, Nikolai Manek, John Detwiler, Randy H, Will Dee, Sebastain Graf, NimbleBox.ai, Eugene Pentland, Emad Mostaque, Ai Maven, Jim Angel, Jeff Scroggin, Michael Davis, Manuel Alberto Morcote, Stephen Murray, Robert, Justin Joy, Luke @flexchar, Brandon Frisco, Elijah Stavena, S_X, Dan Guido, Undi ., Komninos Chatzipapas, Shadi, theTransient, Lone Striker, Raven Klaugh, jjj, Cap'n Zoog, Michel-Marie MAUDET (LINAGORA), Matthew Berman, David, Fen Risland, Omer Bin Jawed, Luke Pendergrass, Kalila, OG, Erik Bjäreholt, Rooh Singh, Joseph William Delisle, Dan Lewis, TL, John Villwock, AzureBlack, Brad, Pedro Madruga, Caitlyn Gatomon, K, jinyuan sun, Mano Prime, Alex, Jeffrey Morgan, Alicia Loh, Illia Dulskyi, Chadd, transmissions 11, fincy, Rainer Wilmers, ReadyPlayerEmma, knownsqashed, Mandus, biorpg, Deo Leter, Brandon Phillips, SuperWojo, Sean Connelly, Iucharbius, Jack West, Harry Royden McLaughlin, Nicholas, terasurfer, Vitor Caleffi, Duane Dunston, Johann-Peter Hartmann, David Ziegler, Olakabola, Ken Nordquist, Trenton Dambrowitz, Tom X Nguyen, Vadim, Ajan Kanaga, Leonard Tan, Clay Pascal, Alexandros Triantafyllidis, JM33133, Xule, vamX, ya boyyy, subjectnull, Talal Aujan, Alps Aficionado, wassieverse, Ari Malik, James Bentley, Woland, Spencer Kim, Michael Dempsey, Fred von Graf, Elle, zynix, William Richards, Stanislav Ovsiannikov, Edmond Seymore, Jonathan Leane, Martin Kemka, usrbinkat, Enrico Ros\n\n\nThank you to all my generous patrons and donaters!\n\nAnd thank you again to a16z for their generous grant.\n\n<!-- footer end -->\n\n<!-- original-model-card start -->\n# Original model card: LAION LeoLM's Leo Hessianai 70B Chat\n\n# LAION LeoLM 70b Chat: **L**inguistically **E**nhanced **O**pen **L**anguage **M**odel\nMeet LeoLM, the first open and commercially available German Foundation Language Model built on Llama-2.\nOur models extend Llama-2's capabilities into German through continued pretraining on a large corpus of German-language and mostly locality specific text.\nThanks to a compute grant at HessianAI's new supercomputer **42**, we release a series foundation models trained with 8k context length\nunder the [Llama-2 community license](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt). Now, we're finally releasing the\nmuch anticipated `leo-hessianai-70b`, the largest model of this series based on `Llama-2-70b`.\nWith this release, we hope to bring a new wave of opportunities to German open-source and commercial LLM research and accelerate adoption.\nRead our [blog post](https://laion.ai/blog/leo-lm/) or our paper (preprint coming soon) for more details!\n\n\n*A project by Björn Plüster and Christoph Schuhmann in collaboration with LAION and HessianAI.*\n\n## LeoLM Chat\n`LeoLM/leo-hessianai-70b-chat` is a German chat model built on our foundation model `LeoLM/leo-hessianai-70b` and finetuned on a selection of German instruction datasets.\nThe model performs exceptionally well on writing, explanation and discussion tasks but struggles somewhat with math and advanced reasoning. See our MT-Bench-DE scores:\n```\n{\n    \"first_turn\": 7.2375,\n    \"second_turn\": 6.5375,\n    \"categories\": {\n        \"writing\": 8.55,\n        \"roleplay\": 7.15,\n        \"reasoning\": 4.2,\n        \"math\": 4.85,\n        \"coding\": 4.85,\n        \"extraction\": 7.75,\n        \"stem\": 8.45,\n        \"humanities\": 9.3\n    },\n    \"average\": 6.8875\n}\n```\nHave a look at some examples [in this Google Doc](https://docs.google.com/document/d/1SAAikkPAF4oLoFISqE0P1mRL5OUk8l2pI90zZC4bP1E/edit?usp=sharing).\n\n\n## Model Details\n\n- **Finetuned from:** [LeoLM/leo-hessianai-70b](https://huggingface.co/LeoLM/leo-hessianai-70b)\n- **Model type:** Causal decoder-only transformer language model\n- **Language:** English and German\n- **Demo:** [Web Demo]()\n- **License:** [LLAMA 2 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Llama-2-70b/raw/main/LICENSE.txt)\n- **Contact:** [LAION Discord](https://discord.com/invite/eq3cAMZtCC) or [Björn Plüster](mailto:bjoern.pl@outlook.de)\n\n\n## Use in 🤗Transformers\nFirst install direct dependencies:\n```\npip install transformers torch\n```\nThen load the model in transformers:\n```python\nfrom transformers import pipeline\nimport torch\n\nsystem_prompt = \"\"\"<|im_start|>system\nDies ist eine Unterhaltung zwischen einem intelligenten, hilfsbereitem KI-Assistenten und einem Nutzer.\nDer Assistent gibt ausführliche, hilfreiche und ehrliche Antworten.<|im_end|>\n\n\"\"\"\nprompt_format = \"<|im_start|>user\\n{prompt}<|im_end|>\\n<|im_start|>assistant\\n\"\nprompt = \"Erkläre mir wie die Fahrradwegesituation in Hamburg ist.\"\n\ngenerator = pipeline(model=\"LeoLM/leo-hessianai-70b-chat\", device=\"cuda\", torch_dtype=torch.float16)\nprint(generator(prompt_format.format(prompt=prompt), do_sample=True, top_p=0.95, max_length=8192))\n```\n\n\"*Hamburg verfügt über ein umfangreiches Netzwerk an Radwegen, das ein effizientes und angenehmes Radfahren in der ganzen Stadt ermöglicht. Die Radwege variieren in Bezug auf ihre Qualität, wobei einige erstklassig mit eigens für Radfahrer reservierten Spuren sind, während andere einfache Fahrradsymbole auf dem Boden haben, die anzeigen, dass Radfahrer abwechselnd mit dem Autoverkehr auf der Straße fahren sollten. Einige Nebenstraßen haben auch spezielle Fahrradspuren, wobei einige mit Bordsteinabsenkungen zur Seite der Autospuren markiert sind. Zusätzlich haben viele Hauptstraßen, insbesondere in Nebenstraßen, fahrradfreundliche Abstände zwischen den geparkten Autos und dem Gehweg, was ein bequemes Fahren auf der Straße ermöglicht. Der Bau von Radschnellwegen, die schnelles und effizientes Radfahren in und aus der Stadt ermöglichen, ist im Gange und wird in den kommenden Jahren fortgesetzt. Insgesamt sind die Radwege in Hamburg weitläufig und gut ausgeschildert, was es zu einem angenehmen Ort macht, um mit dem Fahrrad zu fahren.*\"\n\n## Prompting / Prompt Template\n\nPrompt dialogue template (ChatML format):\n\n```\n\"\"\"\n<|im_start|>system\n{system_message}<|im_end|>\n<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n\"\"\"\n```\n\nThe model input can contain multiple conversation turns between user and assistant, e.g.\n```\n<|im_start|>user\n{prompt 1}<|im_end|>\n<|im_start|>assistant\n{reply 1}<|im_end|>\n<|im_start|>user\n{prompt 2}<|im_end|>\n<|im_start|>assistant\n(...)\n```\n\n## Ethical Considerations and Limitations\n\nLeoLM has been tested in English and German, and has not covered, nor could it cover all scenarios.\nFor these reasons, as with all LLMs, the potential outputs of `LeoLM/leo-hessianai-70b-chat` cannot be predicted\nin advance, and the model may in some instances produce inaccurate, biased or other objectionable responses\nto user prompts. Therefore, before deploying any applications of `LeoLM/leo-hessianai-70b-chat`, developers should\nperform safety testing and tuning tailored to their specific applications of the model.\n\nWe are aware of the model refusing to answer more often than desired. This will be adressed in future versions. For now, the training\ndataset is equal to that used for our smaller chat variants.\n\nPlease see Meta's [Responsible Use Guide](https://ai.meta.com/llama/responsible-use-guide/).\n\n## Finetuning Details\n\n| Hyperparameter  | Value  |\n|---|---|\n| Num epochs | 3 |\n| Examples per epoch  | 131214  |\n| Global batch size | 256 |\n| Learning rate  |  1.5e-5 |\n| Warmup steps  |  15 |\n| LR scheduler  |  Cosine |\n| Adam betas  | (0.9, 0.95)  |\n| Weight Decay | 0.01  |\n\n## Dataset Details\n```\n## Stats for 'Subset of OpenAssistant/OASST-DE' (3534 samples (100.0%))\n-----------------\n  Accepted: 3534/3534 (100.0%)\n  Accepted tokens: 2259302\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 29\n  Max tokens per sample: 2484\n  Avg tokens per sample: 639.3044708545557\n-----------------\n\n## Stats for 'Subset of FreedomIntelligence/evol-instruct-deutsch' (57841 samples (100.0%))\n-----------------\n  Accepted: 57841/57841 (100.0%)\n  Accepted tokens: 42958192\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 33\n  Max tokens per sample: 5507\n  Avg tokens per sample: 742.6944900675991\n-----------------\n\n## Stats for 'Subset of FreedomIntelligence/alpaca-gpt4-deutsch' (48969 samples (100.0%))\n-----------------\n  Accepted: 48969/48969 (100.0%)\n  Accepted tokens: 13372005\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 19\n  Max tokens per sample: 1359\n  Avg tokens per sample: 273.07082031489307\n-----------------\n\n## Stats for 'Subset of LeoLM/OpenSchnabeltier' (21314 samples (100.0%))\n-----------------\n  Accepted: 21314/21314 (100.0%)\n  Accepted tokens: 8134690\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 25\n  Max tokens per sample: 1202\n  Avg tokens per sample: 381.65947264708643\n-----------------\n\n## Stats for 'Subset of LeoLM/German_Poems' (490 samples (100.0%))\n-----------------\n  Accepted: 490/490 (100.0%)\n  Accepted tokens: 618642\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 747\n  Max tokens per sample: 1678\n  Avg tokens per sample: 1262.534693877551\n-----------------\n\n## Stats for 'Subset of LeoLM/German_Songs' (392 samples (100.0%))\n-----------------\n  Accepted: 392/392 (100.0%)\n  Accepted tokens: 187897\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 231\n  Max tokens per sample: 826\n  Avg tokens per sample: 479.3290816326531\n-----------------\n\n## Stats for 'total' (132540 samples (100.0%))\n-----------------\n  Accepted: 132540/132540 (100.0%)\n  Accepted tokens: 67530728\n  Skipped: 0 (0.0%)\n  Min tokens per sample: 19\n  Max tokens per sample: 5507\n  Avg tokens per sample: 509.51205673758864\n-----------------\n```\n\n<!-- original-model-card end -->\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "llama",
    "text-generation",
    "en",
    "de",
    "dataset:LeoLM/OpenSchnabeltier",
    "dataset:OpenAssistant/OASST-DE",
    "dataset:FreedomIntelligence/alpaca-gpt4-deutsch",
    "dataset:FreedomIntelligence/evol-instruct-deutsch",
    "dataset:LeoLM/German_Poems",
    "dataset:LeoLM/German_Songs",
    "base_model:LeoLM/leo-hessianai-70b-chat",
    "base_model:quantized:LeoLM/leo-hessianai-70b-chat",
    "license:llama2",
    "region:us",
    "conversational"
  ],
  "likes": 1,
  "downloads": 115,
  "gated": false,
  "private": false,
  "last_modified": "2023-12-11T05:56:42.000Z",
  "created_at": "2023-12-11T05:15:08.000Z",
  "pipeline_tag": "text-generation",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "65769adc06fdcd4ca992eeba",
  "id": "TheBloke/leo-hessianai-70B-chat-GGUF",
  "modelId": "TheBloke/leo-hessianai-70B-chat-GGUF",
  "sha": "8247227ca2d85229cd2b21baede55bf6f3734d30",
  "createdAt": "2023-12-11T05:15:08.000Z",
  "lastModified": "2023-12-11T05:56:42.000Z",
  "author": "TheBloke",
  "downloads": 115,
  "likes": 1,
  "gated": false,
  "private": false,
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "siblings_count": 20
}