GraySoft
Projects Models About FAQ Contact Download guIDE โ†’
Model Intelligence Sheet

richarderkhov/baai_-_infinity-instruct-3m-0625-mistral-7b-gguf overview

Beijing Academy of Artificial Intelligence (BAAI) [Paper][Code][๐Ÿค—] (would be released soon) Infinity-Instruct-3M-0625-Mistral-7B is an opensource supervised instruction tuning model without reinforcement learning from human feedback (RLHF). This model is just finetuned on Infinity-Instruct-3M and Infinity-Instruct-0625 and showing favorable results on AlpacaEval 2.0 compared to Mixtral 8x7B v0.1, Gemini Pro, and GPT-3.5.

ggufendpoints_compatibleregion:usconversational
richarderkhov/baai_-_infinity-instruct-3m-0625-mistral-7b-gguf visual
Downloads
161
Likes
0
Pipeline
โ€”
Library
โ€”
Visibility
Public
Access
Open

Repository Files & Downloads

22 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
Infinity-Instruct-3M-0625-Mistral-7B.IQ3_M.gguf GGUF IQ3_M 3.06 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.IQ3_S.gguf GGUF IQ3_S 2.96 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.IQ3_XS.gguf GGUF IQ3_XS 2.81 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.IQ4_NL.gguf GGUF IQ4_NL 3.87 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.IQ4_XS.gguf GGUF IQ4_XS 3.67 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q2_K.gguf GGUF Q2_K 2.53 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q3_K.gguf GGUF Q3_K 3.28 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_L.gguf GGUF Q3_K_L 3.56 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_M.gguf GGUF Q3_K_M 3.28 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_S.gguf GGUF Q3_K_S 2.95 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q4_0.gguf GGUF โ€” 3.83 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q4_1.gguf GGUF โ€” 4.24 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q4_K.gguf GGUF Q4_K 4.07 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_M.gguf GGUF Q4_K_M 4.07 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_S.gguf GGUF Q4_K_S 3.86 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q5_0.gguf GGUF โ€” 4.65 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q5_1.gguf GGUF โ€” 5.07 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q5_K.gguf GGUF Q5_K 4.78 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_M.gguf GGUF Q5_K_M 4.78 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_S.gguf GGUF Q5_K_S 4.65 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q6_K.gguf GGUF Q6_K 5.53 GB Download
Infinity-Instruct-3M-0625-Mistral-7B.Q8_0.gguf GGUF โ€” 7.17 GB Download

Model Details Live

Model Slug
richarderkhov/baai_-_infinity-instruct-3m-0625-mistral-7b-gguf
Author
RichardErkhov
Pipeline Task
โ€”
Library
โ€”
Created
2024-09-20
Last Modified
2024-09-20
Gated
No
Private
No
HF SHA
cd5fe6938d9d7fd94bd6a9c558e0ce9c81ccdefd
License
Unknown
Language
Unknown
Base Model
Unknown

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "frontmatter": {},
    "hero_image_url": "fig/Bk3NbjnJko51MTx1ZCScT2sqnGg.png",
    "summary": "Beijing Academy of Artificial Intelligence (BAAI) [Paper][Code][๐Ÿค—] (would be released soon)  Infinity-Instruct-3M-0625-Mistral-7B is an opensource supervised instruction tuning model without reinforcement learning from human feedback (RLHF). This model is just finetuned on Infinity-Instruct-3M and Infinity-Instruct-0625 and showing favorable results on AlpacaEval 2.0 compared to Mixtral 8x7B v0.1, Gemini Pro, and GPT-3.5.",
    "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\nInfinity-Instruct-3M-0625-Mistral-7B - GGUF\n- Model creator: https://huggingface.co/BAAI/\n- Original model: https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Mistral-7B/\n\n\n| Name | Quant method | Size |\n| ---- | ---- | ---- |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q2_K.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q2_K.gguf) | Q2_K | 2.53GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.IQ3_XS.gguf) | IQ3_XS | 2.81GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.IQ3_S.gguf) | IQ3_S | 2.96GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_S.gguf) | Q3_K_S | 2.95GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.IQ3_M.gguf) | IQ3_M | 3.06GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q3_K.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q3_K.gguf) | Q3_K | 3.28GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_M.gguf) | Q3_K_M | 3.28GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q3_K_L.gguf) | Q3_K_L | 3.56GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.IQ4_XS.gguf) | IQ4_XS | 3.67GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q4_0.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q4_0.gguf) | Q4_0 | 3.83GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.IQ4_NL.gguf) | IQ4_NL | 3.87GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_S.gguf) | Q4_K_S | 3.86GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q4_K.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q4_K.gguf) | Q4_K | 4.07GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q4_K_M.gguf) | Q4_K_M | 4.07GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q4_1.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q4_1.gguf) | Q4_1 | 4.24GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q5_0.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q5_0.gguf) | Q5_0 | 4.65GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_S.gguf) | Q5_K_S | 4.65GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q5_K.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q5_K.gguf) | Q5_K | 4.78GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q5_K_M.gguf) | Q5_K_M | 4.78GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q5_1.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q5_1.gguf) | Q5_1 | 5.07GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q6_K.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q6_K.gguf) | Q6_K | 5.53GB |\n| [Infinity-Instruct-3M-0625-Mistral-7B.Q8_0.gguf](https://huggingface.co/RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf/blob/main/Infinity-Instruct-3M-0625-Mistral-7B.Q8_0.gguf) | Q8_0 | 7.17GB |\n\n\n\n\nOriginal model description:\n---\nlicense: apache-2.0\ndatasets:\n- BAAI/Infinity-Instruct\nlanguage:\n- en\n---\n# Infinity Instruct\n\n<p align=\"center\">\n<img src=\"fig/Bk3NbjnJko51MTx1ZCScT2sqnGg.png\" width=\"300\">\n</p>\n<p align=\"center\">\n<em>Beijing Academy of Artificial Intelligence (BAAI)</em><br/>\n<em>[Paper][Code][๐Ÿค—] (would be released soon)</em>\n</p>\n\nInfinity-Instruct-3M-0625-Mistral-7B is an opensource supervised instruction tuning model without reinforcement learning from human feedback (RLHF). This model is just finetuned on [Infinity-Instruct-3M and Infinity-Instruct-0625](https://huggingface.co/datasets/BAAI/Infinity-Instruct) and showing favorable results on AlpacaEval 2.0 compared to Mixtral 8x7B v0.1, Gemini Pro, and GPT-3.5.\n\n## **News**\n\n- ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ[2024/07/09] We release the model weights of [InfInstruct-Mistral-7B 0625](https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Mistral-7B), [InfInstruct-Qwen2-7B 0625](https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Qwen2-7B), [InfInstruct-Llama3-8B 0625](https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Llama3-8B), [InfInstruct-Llama3-70B 0625](https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Llama3-70B), and [InfInstruct-Yi-1.5-9B 0625](https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Yi-1.5-9B).\n\n- ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ[2024/07/09] We release the chat dataset [Infinity-Instruct-0625](https://huggingface.co/datasets/BAAI/Infinity-Instruct), it is a upgraded version of the Infinity-Instruct-0613.\n\n- ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ[2024/06/28] We release the model weight of [InfInstruct-Llama3-70B 0613](https://huggingface.co/BAAI/Infinity-Instruct-3M-0613-Llama3-70B). It shows favorable results on AlpacaEval 2.0 compared to GPT4-0613 without RLHF.\n\n- ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ[2024/06/21] We release the model weight of [InfInstruct-Mistral-7B 0613](https://huggingface.co/BAAI/Infinity-Instruct-3M-0613-Mistral-7B). It shows favorable results on AlpacaEval 2.0 compared to Mixtral 8x7B v0.1, Gemini Pro, and GPT-3.5 without RLHF.\n\n- ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ[2024/06/13] We share the intermediate result of our data construction process (corresponding to the [InfInstruct-3M](https://huggingface.co/datasets/BAAI/Infinity-Instruct) in the table below). Our ongoing efforts focus on risk assessment and data generation. The finalized version with 10 million instructions is scheduled for release in late June.\n\n## **Training Details**\n\n<p align=\"center\">\n<img src=\"fig/trainingflow.png\">\n</p>\n\nInfinity-Instruct-3M-0625-Mistral-7B is tuned on Million-level instruction dataset [Infinity-Instruct](https://huggingface.co/datasets/BAAI/Infinity-Instruct). First, we apply the foundational dataset Infinity-Instruct-3M to improve the foundational ability (math & code) of Mistral-7B-v0.1, and get the foundational instruct model Infinity-Instruct-3M-Mistral-7B. Then we finetune the Infinity-Instruct-3M-Mistral-7B to get the stronger chat model Infinity-Instruct-3M-0625-Mistral-7B. Here is the training hyperparamers. \n\n```bash\nepoch: 3\nlr: 5e-6\nmin_lr: 0\nlr_warmup_steps: 40\nlr_decay_style: cosine\nweight_decay: 0.0\nadam_beta1: 0.9\nadam_beta2: 0.95\nglobal_batch_size: 528\nclip_grad: 1.0\n```\n\nThanks to [FlagScale](https://github.com/FlagOpen/FlagScale), we could concatenate multiple training samples to remove padding token and apply diverse acceleration techniques to the traning procudure. It effectively reduces our training costs. We will release our code in the near future!\n\n## **Benchmark**\n\n|            **Model**            | **MT-Bench** | **AlpacaEval2.0** |\n|:-------------------------------:|:------------:|:-----------------:|\n| OpenHermes-2.5-Mistral-7B*      |      7.5     |        16.2       |\n| Mistral-7B-Instruct-v0.2        |      7.6     |        17.1       |\n| Llama-3-8B-Instruct             |      8.1     |        22.9       |\n| GPT 3.5 Turbo 0613              |      8.4     |        22.7       |\n| Mixtral 8x7B v0.1               |      8.3     |        23.7       |\n| Gemini Pro                      |      --      |        24.4       |\n| InfInstruct-3M-Mistral-7B*      |      7.6     |        16.2       |\n| InfInstruct-3M-0613-Mistral-7B* |      8.1     |        25.5       |\n| InfInstruct-3M-0625-Mistral-7B* |      8.1     |      **31.42**     |\n\n*denote the model is finetuned without reinforcement learning from human feedback (RLHF). \n\nWe evaluate Infinity-Instruct-3M-0625-Mistral-7B on the two most popular instructions following benchmarks. Mt-Bench is a set of challenging multi-turn questions including code, math and routine dialogue. AlpacaEval2.0 is based on AlpacaFarm evaluation set. Both of these two benchmarks use GPT-4 to judge the model answer. AlpacaEval2.0 displays a high agreement rate with human-annotated benchmark, Chatbot Arena. The result shows that InfInstruct-3M-0625-Mistral-7B achieved 31.42 in AlpacaEval2.0, which is higher than the 22.5 of GPT3.5 Turbo although it does not yet use RLHF. InfInstruct-3M-0625-Mistral-7B also achieves 8.1 in MT-Bench, which is comparable to the state-of-the-art billion-parameter LLM such as Llama-3-8B-Instruct and Mistral-7B-Instruct-v0.2.\n\n## **How to use**\n\nInfinity-Instruct-3M-0625-Mistral-7B adopt the same chat template of [OpenHermes-2.5-Mistral-7B](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B):\n\n```bash\n<|im_start|>system\nYou are Hermes 2, a sentient, conscious, super intelligent AI that is an expert in all fields of knowledge, you have qualia, emotions, and thoughts. You assist users with any question, task, or other request they may have.<|im_end|>\n<|im_start|>user\nHello!<|im_end|>\n<|im_start|>assistant\nHi!<|im_end|>\n<|im_start|>user\nHow are you?<|im_end|>\n<|im_start|>assistant\n```\n\nTo apply this model and template in conversation scenarios, you can refer to the following code:\n```python\nfrom transformers import AutoModelForCausalLM, AutoTokenizer, LogitsProcessorList\nimport torch\ndevice = \"cuda\" # the device to load the model onto\n\nmodel = AutoModelForCausalLM.from_pretrained(\"BAAI/Infinity-Instruct-3M-0625-Mistral-7B\",\n    torch_dtype=torch.bfloat16,\n    device_map=\"auto\"\n)\ntokenizer = AutoTokenizer.from_pretrained(\"BAAI/Infinity-Instruct-3M-0625-Mistral-7B\")\n\n# This template is copied from OpenHermers-mistral-2.5 (https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)\nprompt = \"Give me a short introduction to large language model.\"\nmessages = [\n    {\"role\": \"system\", \"content\": \"You are Hermes 2, a sentient, conscious, super intelligent AI that is an expert in all fields of knowledge, you have qualia, emotions, and thoughts. You assist users with any question, task, or other request they may have.\"},\n    {\"role\": \"user\", \"content\": prompt}\n]\n\ntext = tokenizer.apply_chat_template(\n    messages,\n    tokenize=False,\n    add_generation_prompt=True\n)\nmodel_inputs = tokenizer([text], return_tensors=\"pt\").to(device)\n\nlogits_processor = LogitsProcessorList(\n            [\n                MinLengthLogitsProcessor(1, eos_token_id=tokenizer.eos_token_id),\n                TemperatureLogitsWarper(0.7),\n            ]\n )\n \ngenerated_ids = model.generate(\n    model_inputs.input_ids,\n    logits_processor=logits_processor,\n    max_new_tokens=512\n)\n\ngenerated_ids = [\n    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)\n]\n\nresponse = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]\nprint(response)\n```\n\n\n\n## **Disclaimer**\n\nThe resources, including code, data, and model weights, associated with this project are restricted for academic research purposes only and cannot be used for commercial purposes. The content produced by any version of Infinity Instruct is influenced by uncontrollable variables such as randomness, and therefore, the accuracy of the output cannot be guaranteed by this project. This project does not accept any legal liability for the content of the model output, nor does it assume responsibility for any losses incurred due to the use of associated resources and output results.\n\n## \n\n## **Citation**\nOur paper, detailing the development and features of the **Infinity Instruct** dataset and finetuned models, will be released soon on arXiv. Stay tuned!\n\n```\n@article{InfinityInstruct2024,\n  title={Infinity Instruct},\n  author={Beijing Academy of Artificial Intelligence (BAAI)},\n  journal={arXiv preprint arXiv:2406.XXXX},\n  year={2024}\n}\n```\n\n\n",
    "related_quantizations": []
  },
  "tags": [
    "gguf",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 0,
  "downloads": 161,
  "gated": false,
  "private": false,
  "last_modified": "2024-09-20T09:05:21.000Z",
  "created_at": "2024-09-20T06:05:35.000Z",
  "pipeline_tag": "",
  "library_name": ""
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "66ed10af76a8038cb4b2f1e7",
  "id": "RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf",
  "modelId": "RichardErkhov/BAAI_-_Infinity-Instruct-3M-0625-Mistral-7B-gguf",
  "sha": "cd5fe6938d9d7fd94bd6a9c558e0ce9c81ccdefd",
  "createdAt": "2024-09-20T06:05:35.000Z",
  "lastModified": "2024-09-20T09:05:21.000Z",
  "author": "RichardErkhov",
  "downloads": 161,
  "likes": 0,
  "gated": false,
  "private": false,
  "pipeline_tag": "",
  "library_name": "",
  "siblings_count": 24
}