GraySoft
Projects Models About FAQ Contact Download guIDE →

biomistral/biomistral-7b-zephyr-beta-slerp-gguf Q4_K_M GGUF - Free GGUF Download is indexed on GraySoft with repository links, GGUF quant files, and Hugging Face metadata. This page helps you pick a local model for guIDE or other runtimes. See related models in the same shard below.

Model Intelligence Sheet

biomistral/biomistral-7b-zephyr-beta-slerp-gguf overview

Abstract: Large Language Models (LLMs) have demonstrated remarkable versatility in recent years, offering potential applications across specialized domains such as healthcare and medicine. Despite the availability of various open-source LLMs tailored for health contexts, adapting general-purpose LLMs to the medical domain presents significant challenges. In this paper, we introduce BioMistral, an open-source LLM tailored for the biomedical domain, utilizing Mistral as its foundation model and further pre-trained on PubMed Central. We conduct a comprehensive evaluation of BioMistral on a benchmark comprising 10 established medical question-answering (QA) tasks in English. We also explore lightweight models obtained through quantization and model merging approaches. Our results demonstrate BioMistral's superior performance compared to existing open-source medical models and its competitive edge against proprietary counterparts. Finally, to address the limited availability of data beyond English and to assess the multilingual generalization of medical LLMs, we automatically translated and evaluated this benchmark into 7 other languages. This marks the first large-scale multilingual evaluation of LLMs in the medical domain. Datasets, multilingual evaluation benchmarks, scripts, and all the models obtained during our experiments are freely released. Advisory Notice! Although BioMistral is intended to encapsulate medical knowledge sourced from high-quality evidence, it hasn't been tailored to effectively, safely, or suitably convey this knowledge within professional parameters for action. We advise refraining from utilizing BioMistral in medical contexts unless it undergoes thorough alignment with specific use cases and undergoes further testing, notably including randomized controlled trials in real-world medical environments. BioMistral 7B may possess inherent risks and biases that have not yet been thoroughly assessed. Additionally, the model's performance has not been evaluated in real-world clinical settings. Consequently, we recommend using BioMistral 7B strictly as a research tool and advise against deploying it in production environments for natural language generation or any professional health and medical purposes. # 1. BioMistral models BioMistral is a suite of Mistral-based further pre-trained open source models suited for the medical domains and pre-trained using textual data from PubMed Central Open Access (CC0, CC BY, CC BY-SA, and CC BY-ND). All the models are trained using the CNRS (French National Centre for Scientific Research) Jean Zay French HPC. | Model Name | Base Model | Model Type | Sequence Length | Download | |:-------------------:|:----------------------------------:|:-------------------:|:---------------:|:-----------------------------------------------------:| | BioMistral-7B | Mistral-7B-Instruct-v0.1 | Further Pre-trained | 2048 | HuggingFace | | BioMistral-7B-DARE | Mistral-7B-Instruct-v0.1 | Merge DARE | 2048 | HuggingFace | | BioMistral-7B-TIES | Mistral-7B-Instruct-v0.1 | Merge TIES | 2048 | HuggingFace | | BioMistral-7B-SLERP | Mistral-7B-Instruct-v0.1 | Merge SLERP | 2048 | HuggingFace | # 2. Quantized Models | Base Model | Method | qgroupsize | wbit | version | VRAM GB | Time | Download | |:-------------------:|:------:|:------------:|:-----:|:-------:|:-------:|:------:|:--------:| | BioMistral-7B | FP16/BF16 | | | | 15.02 | x1.00 | HuggingFace | | BioMistral-7B | AWQ | 128 | 4 | GEMM | 4.68 | x1.41 | HuggingFace | | BioMistral-7B | AWQ | 128 | 4 | GEMV | 4.68 | x10.30 | HuggingFace | | BioMistral-7B | BnB.4 | | 4 | | 5.03 | x3.25 | HuggingFace | | BioMistral-7B | BnB.8 | | 8 | | 8.04 | x4.34 | HuggingFace | | BioMistral-7B-DARE | AWQ | 128 | 4 | GEMM | 4.68 | x1.41 | HuggingFace | | BioMistral-7B-TIES | AWQ | 128 | 4 | GEMM | 4.68 | x1.41 | HuggingFace | | BioMistral-7B-SLERP | AWQ | 128 | 4 | GEMM | 4.68 | x1.41 | HuggingFace | # 2. Using BioMistral You can use BioMistral with Hugging Face's Transformers library as follow. Loading the model and tokenizer : # 3. Supervised Fine-tuning Benchmark | | Clinical KG | Medical Genetics | Anatomy | Pro Medicine | College Biology | College Medicine | MedQA | MedQA 5 opts | PubMedQA | MedMCQA | Avg. | |-------------------------------------------|:---------------------------------------------:|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|------------------| | BioMistral 7B | 59.9 | 64.0 | 56.5 | 60.4 | 59.0 | 54.7 | 50.6 | 42.8 | 77.5 | 48.1 | 57.3 | | Mistral 7B Instruct | 62.9 | 57.0 | 55.6 | 59.4 | 62.5 | 57.2 | 42.0 | 40.9 | 75.7 | 46.1 | 55.9 | | | | | | | | | | | | | | | BioMistral 7B Ensemble | 62.8 | 62.7 | 57.5 | 63.5 | 64.3 | 55.7 | 50.6 | 43.6 | 77.5 | 48.8 | 58.7 | | BioMistral 7B DARE | 62.3 | 67.0 | 55.8 | 61.4 | 66.9 | 58.0 | 51.1 | 45.2 | 77.7 | 48.7 | 59.4 | | BioMistral 7B TIES | 60.1 | 65.0 | 58.5 | 60.5 | 60.4 | 56.5 | 49.5 | 43.2 | 77.5 | 48.1 | 57.9 | | BioMistral 7B SLERP | 62.5 | 64.7 | 55.8 | 62.7 | 64.8 | 56.3 | 50.8 | 44.3 | 77.8 | 48.6 | 58.8 | | | | | | | | | | | | | | | MedAlpaca 7B | 53.1 | 58.0 | 54.1 | 58.8 | 58.1 | 48.6 | 40.1 | 33.7 | 73.6 | 37.0 | 51.5 | | PMC-LLaMA 7B | 24.5 | 27.7 | 35.3 | 17.4 | 30.3 | 23.3 | 25.5 | 20.2 | 72.9 | 26.6 | 30.4 | | MediTron-7B | 41.6 | 50.3 | 46.4 | 27.9 | 44.4 | 30.8 | 41.6 | 28.1 | 74.9 | 41.3 | 42.7 | | BioMedGPT-LM-7B | 51.4 | 52.0 | 49.4 | 53.3 | 50.7 | 49.1 | 42.5 | 33.9 | 76.8 | 37.6 | 49.7 | | | | | | | | | | | | | | | GPT-3.5 Turbo 1106 | 74.71 | 74.00 | 65.92 | 72.79 | 72.91 | 64.73 | 57.71 | 50.82 | 72.66 | 53.79 | 66.0 | Supervised Fine-Tuning (SFT) performance of BioMistral 7B models compared to baselines, measured by accuracy (↑) and averaged across 3 random seeds of 3-shot. DARE, TIES, and SLERP are model merging strategies that combine BioMistral 7B and Mistral 7B Instruct. Best model in bold, and second-best underlined. GPT-3.5 Turbo performances are reported from the 3-shot results without SFT. # Citation BibTeX Arxiv : https://arxiv.org/abs/2402.10373 CAUTION! Both direct and downstream users need to be informed about the risks, biases, and constraints inherent in the model. While the model can produce natural language text, our exploration of its capabilities and limitations is just beginning. In fields such as medicine, comprehending these limitations is crucial. Hence, we strongly advise against deploying this model for natural language generation in production or for professional tasks in the realm of health and medicine.

transformersggufmistraltext-generationmergekitmergearxiv:2402.10373base_model:HuggingFaceH4/zephyr-7b-betabase_model:merge:HuggingFaceH4/zephyr-7b-betabase_model:Project44/BioMistral-7B-0.1-PubMed-V2base_model:merge:Project44/BioMistral-7B-0.1-PubMed-V2endpoints_compatibleregion:usconversational
biomistral/biomistral-7b-zephyr-beta-slerp-gguf visual
Downloads
141
Likes
3
Pipeline
text-generation
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

11 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
ggml-model-Q2_K.gguf GGUF Q2_K 2.53 GB Download
ggml-model-Q3_K_L.gguf GGUF Q3_K_L 3.56 GB Download
ggml-model-Q3_K_M.gguf GGUF Q3_K_M 3.28 GB Download
ggml-model-Q3_K_S.gguf GGUF Q3_K_S 2.95 GB Download
ggml-model-Q4_0.gguf GGUF 3.83 GB Download
ggml-model-Q4_K_M.gguf GGUF Q4_K_M 4.07 GB Download
ggml-model-Q4_K_S.gguf GGUF Q4_K_S 3.86 GB Download
ggml-model-Q5_K_M.gguf GGUF Q5_K_M 4.78 GB Download
ggml-model-Q5_K_S.gguf GGUF Q5_K_S 4.65 GB Download
ggml-model-Q6_K.gguf GGUF Q6_K 5.53 GB Download
ggml-model-Q8_0.gguf GGUF 7.17 GB Download

Model Details Live

Model Slug
biomistral/biomistral-7b-zephyr-beta-slerp-gguf
Author
BioMistral
Pipeline Task
text-generation
Library
transformers
Created
2024-02-19
Last Modified
2024-02-19
Gated
No
Private
No
HF SHA
c256ea84ce59a623344f1070ead427e6c585c7cf
License
Unknown
Language
Unknown
Base Model
HuggingFaceH4/zephyr-7b-beta, Project44/BioMistral-7B-0.1-PubMed-V2

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "base_model": [
      "HuggingFaceH4/zephyr-7b-beta",
      "Project44/BioMistral-7B-0.1-PubMed-V2"
    ],
    "library_name": "transformers",
    "tags": [
      "mergekit",
      "merge"
    ],
    "frontmatter": {
      "base_model": [
        "HuggingFaceH4/zephyr-7b-beta",
        "Project44/BioMistral-7B-0.1-PubMed-V2"
      ],
      "library_name": "transformers",
      "tags": [
        "mergekit",
        "merge"
      ]
    },
    "hero_image_url": "https://huggingface.co/BioMistral/BioMistral-7B/resolve/main/wordart_blue_m_rectangle.png?download=true",
    "summary": "**Abstract:** Large Language Models (LLMs) have demonstrated remarkable versatility in recent years, offering potential applications across specialized domains such as healthcare and medicine. Despite the availability of various open-source LLMs tailored for health contexts, adapting general-purpose LLMs to the medical domain presents significant challenges. In this paper, we introduce BioMistral, an open-source LLM tailored for the biomedical domain, utilizing Mistral as its foundation model and further pre-trained on PubMed Central. We conduct a comprehensive evaluation of BioMistral on a benchmark comprising 10 established medical question-answering (QA) tasks in English. We also explore lightweight models obtained through quantization and model merging approaches. Our results demonstrate BioMistral's superior performance compared to existing open-source medical models and its competitive edge against proprietary counterparts. Finally, to address the limited availability of data beyond English and to assess the multilingual generalization of medical LLMs, we automatically translated and evaluated this benchmark into 7 other languages. This marks the first large-scale multilingual evaluation of LLMs in the medical domain. Datasets, multilingual evaluation benchmarks, scripts, and all the models obtained during our experiments are freely released. **Advisory Notice!** Although BioMistral is intended to encapsulate medical knowledge sourced from high-quality evidence, it hasn't been tailored to effectively, safely, or suitably convey this knowledge within professional parameters for action. We advise refraining from utilizing BioMistral in medical contexts unless it undergoes thorough alignment with specific use cases and undergoes further testing, notably including randomized controlled trials in real-world medical environments. BioMistral 7B may possess inherent risks and biases that have not yet been thoroughly assessed. Additionally, the model's performance has not been evaluated in real-world clinical settings. Consequently, we recommend using BioMistral 7B strictly as a research tool and advise against deploying it in production environments for natural language generation or any professional health and medical purposes. # 1. BioMistral models **BioMistral** is a suite of Mistral-based further pre-trained open source models suited for the medical domains and pre-trained using textual data from PubMed Central Open Access (CC0, CC BY, CC BY-SA, and CC BY-ND). All the models are trained using the CNRS (French National Centre for Scientific Research) Jean Zay French HPC. |      Model Name     |             Base Model             |      Model Type     | Sequence Length |                          Download                          | |:-------------------:|:----------------------------------:|:-------------------:|:---------------:|:-----------------------------------------------------:| |    BioMistral-7B    | Mistral-7B-Instruct-v0.1 | Further Pre-trained |       2048      |    HuggingFace    | |  BioMistral-7B-DARE | Mistral-7B-Instruct-v0.1 |      Merge DARE     |       2048      |  HuggingFace | |  BioMistral-7B-TIES | Mistral-7B-Instruct-v0.1 |      Merge TIES     |       2048      |  HuggingFace | | BioMistral-7B-SLERP | Mistral-7B-Instruct-v0.1 |     Merge SLERP     |       2048      | HuggingFace | # 2. Quantized Models |      Base Model     | Method | q_group_size | w_bit | version | VRAM GB |  Time  | Download | |:-------------------:|:------:|:------------:|:-----:|:-------:|:-------:|:------:|:--------:| |    BioMistral-7B    | FP16/BF16       |              |   |       |  15.02  |  x1.00 | HuggingFace         | |    BioMistral-7B    |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | HuggingFace         | |    BioMistral-7B    |   AWQ  |      128     |   4   |   GEMV  |   4.68  | x10.30 | HuggingFace         | |    BioMistral-7B    |  BnB.4 |              |   4   |         |   5.03  |  x3.25 | HuggingFace         | |    BioMistral-7B    |  BnB.8 |              |   8   |         |   8.04  |  x4.34 | HuggingFace         | |  BioMistral-7B-DARE |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | HuggingFace         | |  BioMistral-7B-TIES |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | HuggingFace         | | BioMistral-7B-SLERP |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | HuggingFace         | # 2. Using BioMistral You can use BioMistral with Hugging Face's Transformers library as follow. Loading the model and tokenizer : ``python from transformers import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained(\"BioMistral/BioMistral-7B\") model = AutoModel.from_pretrained(\"BioMistral/BioMistral-7B\") ` # 3. Supervised Fine-tuning Benchmark | | Clinical KG | Medical Genetics | Anatomy | Pro Medicine | College Biology | College Medicine | MedQA | MedQA 5 opts | PubMedQA | MedMCQA | Avg. | |-------------------------------------------|:---------------------------------------------:|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|------------------| | **BioMistral 7B** | 59.9 | 64.0 | 56.5 | 60.4 | 59.0 | 54.7 | 50.6 | 42.8 | 77.5 | 48.1 | 57.3 | | **Mistral 7B Instruct** | **62.9** | 57.0 | 55.6 | 59.4 | 62.5 | 57.2 | 42.0 | 40.9 | 75.7 | 46.1 | 55.9 | | | | | | | | | | | | | | | **BioMistral 7B Ensemble** | 62.8 | 62.7 | 57.5 | **63.5** | 64.3 | 55.7 | 50.6 | 43.6 | 77.5 | **48.8** | 58.7 | | **BioMistral 7B DARE** | 62.3 | **67.0** | 55.8 | 61.4 | **66.9** | **58.0** | **51.1** | **45.2** | 77.7 | 48.7 | **59.4** | | **BioMistral 7B TIES** | 60.1 | 65.0 | **58.5** | 60.5 | 60.4 | 56.5 | 49.5 | 43.2 | 77.5 | 48.1 | 57.9 | | **BioMistral 7B SLERP** | 62.5 | 64.7 | 55.8 | 62.7 | 64.8 | 56.3 | 50.8 | 44.3 | **77.8** | 48.6 | 58.8 | | | | | | | | | | | | | | | **MedAlpaca 7B** | 53.1 | 58.0 | 54.1 | 58.8 | 58.1 | 48.6 | 40.1 | 33.7 | 73.6 | 37.0 | 51.5 | | **PMC-LLaMA 7B** | 24.5 | 27.7 | 35.3 | 17.4 | 30.3 | 23.3 | 25.5 | 20.2 | 72.9 | 26.6 | 30.4 | | **MediTron-7B** | 41.6 | 50.3 | 46.4 | 27.9 | 44.4 | 30.8 | 41.6 | 28.1 | 74.9 | 41.3 | 42.7 | | **BioMedGPT-LM-7B** | 51.4 | 52.0 | 49.4 | 53.3 | 50.7 | 49.1 | 42.5 | 33.9 | 76.8 | 37.6 | 49.7 | | | | | | | | | | | | | | | **GPT-3.5 Turbo 1106*** | 74.71 | 74.00 | 65.92 | 72.79 | 72.91 | 64.73 | 57.71 | 50.82 | 72.66 | 53.79 | 66.0 | Supervised Fine-Tuning (SFT) performance of BioMistral 7B models compared to baselines, measured by accuracy (↑) and averaged across 3 random seeds of 3-shot. DARE, TIES, and SLERP are model merging strategies that combine BioMistral 7B and Mistral 7B Instruct. Best model in bold, and second-best underlined. *GPT-3.5 Turbo performances are reported from the 3-shot results without SFT. # Citation BibTeX Arxiv : https://arxiv.org/abs/2402.10373 `bibtex @misc{labrak2024biomistral, title={BioMistral: A Collection of Open-Source Pretrained Large Language Models for Medical Domains}, author={Yanis Labrak and Adrien Bazoge and Emmanuel Morin and Pierre-Antoine Gourraud and Mickael Rouvier and Richard Dufour}, year={2024}, eprint={2402.10373}, archivePrefix={arXiv}, primaryClass={cs.CL} } `` **CAUTION!** Both direct and downstream users need to be informed about the risks, biases, and constraints inherent in the model. While the model can produce natural language text, our exploration of its capabilities and limitations is just beginning. In fields such as medicine, comprehending these limitations is crucial. Hence, we strongly advise against deploying this model for natural language generation in production or for professional tasks in the realm of health and medicine.",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nbase_model:\n- HuggingFaceH4/zephyr-7b-beta\n- Project44/BioMistral-7B-0.1-PubMed-V2\nlibrary_name: transformers\ntags:\n- mergekit\n- merge\n\n---\n# BioMistral-7B-zephyr-beta-slerp\n\nThis is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).\n\n## Merge Details\n### Merge Method\n\nThis model was merged using the SLERP merge method.\n\n### Models Merged\n\nThe following models were included in the merge:\n* [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta)\n* [Project44/BioMistral-7B-0.1-PubMed-V2](https://huggingface.co/Project44/BioMistral-7B-0.1-PubMed-V2)\n\n### Configuration\n\nThe following YAML configuration was used to produce this model:\n\n```yaml\n\nslices:\n  - sources:\n      - model: HuggingFaceH4/zephyr-7b-beta\n        layer_range: [0, 32]\n      - model: Project44/BioMistral-7B-0.1-PubMed-V2\n        layer_range: [0, 32]\nmerge_method: slerp\nbase_model: HuggingFaceH4/zephyr-7b-beta\nparameters:\n  t:\n    - filter: self_attn\n      value: [0, 0.5, 0.3, 0.7, 1]\n    - filter: mlp\n      value: [1, 0.5, 0.7, 0.3, 0]\n    - value: 0.5\ndtype: bfloat16\n\n```\n\n\n<p align=\"center\">\n  <img src=\"https://huggingface.co/BioMistral/BioMistral-7B/resolve/main/wordart_blue_m_rectangle.png?download=true\" alt=\"drawing\" width=\"250\"/>\n</p>\n\n# BioMistral: A Collection of Open-Source Pretrained Large Language Models for Medical Domains\n\n**Abstract:**\n\nLarge Language Models (LLMs) have demonstrated remarkable versatility in recent years, offering potential applications across specialized domains such as healthcare and medicine. Despite the availability of various open-source LLMs tailored for health contexts, adapting general-purpose LLMs to the medical domain presents significant challenges.\nIn this paper, we introduce BioMistral, an open-source LLM tailored for the biomedical domain, utilizing Mistral as its foundation model and further pre-trained on PubMed Central. We conduct a comprehensive evaluation of BioMistral on a benchmark comprising 10 established medical question-answering (QA) tasks in English. We also explore lightweight models obtained through quantization and model merging approaches. Our results demonstrate BioMistral's superior performance compared to existing open-source medical models and its competitive edge against proprietary counterparts. Finally, to address the limited availability of data beyond English and to assess the multilingual generalization of medical LLMs, we automatically translated and evaluated this benchmark into 7 other languages. This marks the first large-scale multilingual evaluation of LLMs in the medical domain. Datasets, multilingual evaluation benchmarks, scripts, and all the models obtained during our experiments are freely released.\n\n**Advisory Notice!** Although BioMistral is intended to encapsulate medical knowledge sourced from high-quality evidence, it hasn't been tailored to effectively, safely, or suitably convey this knowledge within professional parameters for action. We advise refraining from utilizing BioMistral in medical contexts unless it undergoes thorough alignment with specific use cases and undergoes further testing, notably including randomized controlled trials in real-world medical environments. BioMistral 7B may possess inherent risks and biases that have not yet been thoroughly assessed. Additionally, the model's performance has not been evaluated in real-world clinical settings. Consequently, we recommend using BioMistral 7B strictly as a research tool and advise against deploying it in production environments for natural language generation or any professional health and medical purposes.\n\n# 1. BioMistral models\n\n**BioMistral** is a suite of Mistral-based further pre-trained open source models suited for the medical domains and pre-trained using textual data from PubMed Central Open Access (CC0, CC BY, CC BY-SA, and CC BY-ND). All the models are trained using the CNRS (French National Centre for Scientific Research) [Jean Zay](http://www.idris.fr/jean-zay/) French HPC.\n\n|      Model Name     |             Base Model             |      Model Type     | Sequence Length |                          Download                          |\n|:-------------------:|:----------------------------------:|:-------------------:|:---------------:|:-----------------------------------------------------:|\n|    BioMistral-7B    | [Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) | Further Pre-trained |       2048      |    [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B)    |\n|  BioMistral-7B-DARE | [Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) |      Merge DARE     |       2048      |  [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-DARE) |\n|  BioMistral-7B-TIES | [Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) |      Merge TIES     |       2048      |  [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-TIES) |\n| BioMistral-7B-SLERP | [Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) |     Merge SLERP     |       2048      | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-SLERP) |\n\n# 2. Quantized Models\n\n|      Base Model     | Method | q_group_size | w_bit | version | VRAM GB |  Time  | Download |\n|:-------------------:|:------:|:------------:|:-----:|:-------:|:-------:|:------:|:--------:|\n|    BioMistral-7B    | FP16/BF16       |              |   |       |  15.02  |  x1.00 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B)         |\n|    BioMistral-7B    |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-AWQ-QGS128-W4-GEMM)         |\n|    BioMistral-7B    |   AWQ  |      128     |   4   |   GEMV  |   4.68  | x10.30 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-AWQ-QGS128-W4-GEMV)         |\n|    BioMistral-7B    |  BnB.4 |              |   4   |         |   5.03  |  x3.25 | [HuggingFace](blank)         |\n|    BioMistral-7B    |  BnB.8 |              |   8   |         |   8.04  |  x4.34 | [HuggingFace](blank)         |\n|  BioMistral-7B-DARE |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-DARE-AWQ-QGS128-W4-GEMM)         |\n|  BioMistral-7B-TIES |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-TIES-AWQ-QGS128-W4-GEMM)         |\n| BioMistral-7B-SLERP |   AWQ  |      128     |   4   |   GEMM  |   4.68  |  x1.41 | [HuggingFace](https://huggingface.co/BioMistral/BioMistral-7B-SLERP-AWQ-QGS128-W4-GEMM)         |\n\n# 2. Using BioMistral\n\nYou can use BioMistral with [Hugging Face's Transformers library](https://github.com/huggingface/transformers) as follow.\n\nLoading the model and tokenizer :\n\n```python\nfrom transformers import AutoModel, AutoTokenizer\n\ntokenizer = AutoTokenizer.from_pretrained(\"BioMistral/BioMistral-7B\")\nmodel = AutoModel.from_pretrained(\"BioMistral/BioMistral-7B\")\n```\n\n# 3. Supervised Fine-tuning Benchmark\n\n| | Clinical KG | Medical Genetics | Anatomy | Pro Medicine | College Biology | College Medicine | MedQA | MedQA 5 opts | PubMedQA | MedMCQA | Avg. |\n|-------------------------------------------|:---------------------------------------------:|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|-----------------------------------------------|------------------|\n| **BioMistral 7B** | 59.9 | 64.0 | 56.5 | 60.4 | 59.0 | 54.7 | 50.6 | 42.8 | 77.5 | 48.1 | 57.3 |\n| **Mistral 7B Instruct** | **62.9** | 57.0 | 55.6 | 59.4 | 62.5 | <u>57.2</u> | 42.0 | 40.9 | 75.7 | 46.1 | 55.9 |\n| | | | | | | | | | | | |\n| **BioMistral 7B Ensemble** | <u>62.8</u> | 62.7 | <u>57.5</u> | **63.5** | 64.3 | 55.7 | 50.6 | 43.6 | 77.5 | **48.8** | 58.7 |\n| **BioMistral 7B DARE** | 62.3 | **67.0** | 55.8 | 61.4 | **66.9** | **58.0** | **51.1** | **45.2** | <u>77.7</u> | <u>48.7</u> | **59.4** |\n| **BioMistral 7B TIES** | 60.1 | <u>65.0</u> | **58.5** | 60.5 | 60.4 | 56.5 | 49.5 | 43.2 | 77.5 | 48.1 | 57.9 |\n| **BioMistral 7B SLERP** | 62.5 | 64.7 | 55.8 | <u>62.7</u> | <u>64.8</u> | 56.3 | <u>50.8</u> | <u>44.3</u> | **77.8** | 48.6 | <u>58.8</u> |\n| | | | | | | | | | | | |\n| **MedAlpaca 7B** | 53.1 | 58.0 | 54.1 | 58.8 | 58.1 | 48.6 | 40.1 | 33.7 | 73.6 | 37.0 | 51.5 |\n| **PMC-LLaMA 7B** | 24.5 | 27.7 | 35.3 | 17.4 | 30.3 | 23.3 | 25.5 | 20.2 | 72.9 | 26.6 | 30.4 |\n| **MediTron-7B** | 41.6 | 50.3 | 46.4 | 27.9 | 44.4 | 30.8 | 41.6 | 28.1 | 74.9 | 41.3 | 42.7 |\n| **BioMedGPT-LM-7B** | 51.4 | 52.0 | 49.4 | 53.3 | 50.7 | 49.1 | 42.5 | 33.9 | 76.8 | 37.6 | 49.7 |\n| | | | | | | | | | | | |\n| **GPT-3.5 Turbo 1106*** | 74.71 | 74.00 | 65.92 | 72.79 | 72.91 | 64.73 | 57.71 | 50.82 | 72.66 | 53.79 | 66.0 |\n\nSupervised Fine-Tuning (SFT) performance of BioMistral 7B models compared to baselines, measured by accuracy (↑) and averaged across 3 random seeds of 3-shot. DARE, TIES, and SLERP are model merging strategies that combine BioMistral 7B and Mistral 7B Instruct. Best model in bold, and second-best underlined. *GPT-3.5 Turbo performances are reported from the 3-shot results without SFT.\n\n# Citation BibTeX\n\nArxiv : [https://arxiv.org/abs/2402.10373](https://arxiv.org/abs/2402.10373)\n\n```bibtex\n@misc{labrak2024biomistral,\n      title={BioMistral: A Collection of Open-Source Pretrained Large Language Models for Medical Domains}, \n      author={Yanis Labrak and Adrien Bazoge and Emmanuel Morin and Pierre-Antoine Gourraud and Mickael Rouvier and Richard Dufour},\n      year={2024},\n      eprint={2402.10373},\n      archivePrefix={arXiv},\n      primaryClass={cs.CL}\n}\n```\n\n**CAUTION!** Both direct and downstream users need to be informed about the risks, biases, and constraints inherent in the model. While the model can produce natural language text, our exploration of its capabilities and limitations is just beginning. In fields such as medicine, comprehending these limitations is crucial. Hence, we strongly advise against deploying this model for natural language generation in production or for professional tasks in the realm of health and medicine.\n\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "mistral",
    "text-generation",
    "mergekit",
    "merge",
    "arxiv:2402.10373",
    "base_model:HuggingFaceH4/zephyr-7b-beta",
    "base_model:merge:HuggingFaceH4/zephyr-7b-beta",
    "base_model:Project44/BioMistral-7B-0.1-PubMed-V2",
    "base_model:merge:Project44/BioMistral-7B-0.1-PubMed-V2",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 3,
  "downloads": 141,
  "gated": false,
  "private": false,
  "last_modified": "2024-02-19T22:47:38.000Z",
  "created_at": "2024-02-19T22:03:27.000Z",
  "pipeline_tag": "text-generation",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "65d3d02f8163f2b8df42bed9",
  "id": "BioMistral/BioMistral-7B-Zephyr-Beta-SLERP-GGUF",
  "modelId": "BioMistral/BioMistral-7B-Zephyr-Beta-SLERP-GGUF",
  "sha": "c256ea84ce59a623344f1070ead427e6c585c7cf",
  "createdAt": "2024-02-19T22:03:27.000Z",
  "lastModified": "2024-02-19T22:47:38.000Z",
  "author": "BioMistral",
  "downloads": 141,
  "likes": 3,
  "gated": false,
  "private": false,
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "siblings_count": 14
}