BAAI / Infinity-Instruct-7M-0729-mistral-7B

huggingface.co
Total runs: 664
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 03 2024
text-generation

Introduction of Infinity-Instruct-7M-0729-mistral-7B

Model Details of Infinity-Instruct-7M-0729-mistral-7B

Infinity Instruct

Beijing Academy of Artificial Intelligence (BAAI)
[Paper][Code][🤗] (would be released soon)

Infinity-Instruct-7M-Gen-Mistral-7B is an opensource supervised instruction tuning model without reinforcement learning from human feedback (RLHF). This model is just finetuned on Infinity-Instruct-7M and Infinity-Instruct-Gen and showing favorable results on AlpacaEval 2.0 compared to Mixtral 8x22B v0.1, Gemini Pro, and GPT-4.

News
Training Details

Infinity-Instruct-7M-Gen-Mistral-7B is tuned on Million-level instruction dataset Infinity-Instruct . First, we apply the foundational dataset Infinity-Instruct-7M to improve the foundational ability (math & code) of Mistral-7B-v0.1, and get the foundational instruct model Infinity-Instruct-7M-Mistral-7B. Then we finetune the Infinity-Instruct-7M-Mistral-7B to get the stronger chat model Infinity-Instruct-7M-Gen-Mistral-7B. Here is the training hyperparamers.

epoch: 3
lr: 5e-6
min_lr: 0
lr_warmup_steps: 40
lr_decay_style: cosine
weight_decay: 0.0
adam_beta1: 0.9
adam_beta2: 0.95
global_batch_size: 528
clip_grad: 1.0

Thanks to 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!

Benchmark
Model MT-Bench AlpacaEval2.0 Arena-hard
GPT-4-0314 9.0 35.3 50.0
GPT-4-0613 9.2 30.2 37.9
GPT-4-1106 9.3 30.2 --
Gemini Pro -- 24.4 17.8
Mixtral 8x7B v0.1 8.3 23.7 23.4
Mistral-7B-Instruct-v0.2 7.6 17.1 --
InfInstruct-3M-0613-Mistral-7B 8.1 25.5 --
InfInstruct-3M-0625-Mistral-7B 8.1 31.4 --
InfInstruct-3M-0629-Mistral-7B 8.1 40.0 26.9

*denote the model is finetuned without reinforcement learning from human feedback (RLHF).

How to use

Infinity-Instruct-7M-Gen-Mistral-7B adopt the same chat template of OpenHermes-2.5-Mistral-7B :

<|im_start|>system
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.<|im_end|>
<|im_start|>user
Hello!<|im_end|>
<|im_start|>assistant
Hi!<|im_end|>
<|im_start|>user
How are you?<|im_end|>
<|im_start|>assistant

To apply this model and template in conversation scenarios, you can refer to the following code:

from transformers import AutoModelForCausalLM, AutoTokenizer, LogitsProcessorList
import torch
device = "cuda" # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained("BAAI/Infinity-Instruct-7M-Gen-Mistral-7B",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-7M-Gen-Mistral-7BB")

# This template is copied from OpenHermers-mistral-2.5 (https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)
prompt = "Give me a short introduction to large language model."
messages = [
    {"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."},
    {"role": "user", "content": prompt}
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

logits_processor = LogitsProcessorList(
            [
                MinLengthLogitsProcessor(1, eos_token_id=tokenizer.eos_token_id),
                TemperatureLogitsWarper(0.7),
            ]
 )
 
generated_ids = model.generate(
    model_inputs.input_ids,
    logits_processor=logits_processor,
    max_new_tokens=512
)

generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Disclaimer

The 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.

Citation

Our paper, detailing the development and features of the Infinity Instruct dataset and finetuned models, will be released soon on arXiv. Stay tuned!

@article{InfinityInstruct2024,
  title={Infinity Instruct},
  author={Beijing Academy of Artificial Intelligence (BAAI)},
  journal={arXiv preprint arXiv:2406.XXXX},
  year={2024}
}

Runs of BAAI Infinity-Instruct-7M-0729-mistral-7B on huggingface.co

664
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About Infinity-Instruct-7M-0729-mistral-7B huggingface.co Model

More Infinity-Instruct-7M-0729-mistral-7B license Visit here:

https://choosealicense.com/licenses/apache-2.0

Infinity-Instruct-7M-0729-mistral-7B huggingface.co

Infinity-Instruct-7M-0729-mistral-7B huggingface.co is an AI model on huggingface.co that provides Infinity-Instruct-7M-0729-mistral-7B's model effect (), which can be used instantly with this BAAI Infinity-Instruct-7M-0729-mistral-7B model. huggingface.co supports a free trial of the Infinity-Instruct-7M-0729-mistral-7B model, and also provides paid use of the Infinity-Instruct-7M-0729-mistral-7B. Support call Infinity-Instruct-7M-0729-mistral-7B model through api, including Node.js, Python, http.

Infinity-Instruct-7M-0729-mistral-7B huggingface.co Url

https://huggingface.co/BAAI/Infinity-Instruct-7M-0729-mistral-7B

BAAI Infinity-Instruct-7M-0729-mistral-7B online free

Infinity-Instruct-7M-0729-mistral-7B huggingface.co is an online trial and call api platform, which integrates Infinity-Instruct-7M-0729-mistral-7B's modeling effects, including api services, and provides a free online trial of Infinity-Instruct-7M-0729-mistral-7B, you can try Infinity-Instruct-7M-0729-mistral-7B online for free by clicking the link below.

BAAI Infinity-Instruct-7M-0729-mistral-7B online free url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-7M-0729-mistral-7B

Infinity-Instruct-7M-0729-mistral-7B install

Infinity-Instruct-7M-0729-mistral-7B is an open source model from GitHub that offers a free installation service, and any user can find Infinity-Instruct-7M-0729-mistral-7B on GitHub to install. At the same time, huggingface.co provides the effect of Infinity-Instruct-7M-0729-mistral-7B install, users can directly use Infinity-Instruct-7M-0729-mistral-7B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Infinity-Instruct-7M-0729-mistral-7B install url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-7M-0729-mistral-7B

Url of Infinity-Instruct-7M-0729-mistral-7B

Infinity-Instruct-7M-0729-mistral-7B huggingface.co Url

Provider of Infinity-Instruct-7M-0729-mistral-7B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 62.8M
Run Growth: -2.2M
Growth Rate: -3.54%
Updated:February 22 2024
huggingface.co

Total runs: 34.8M
Run Growth: -1.9M
Growth Rate: -5.59%
Updated:July 03 2024
huggingface.co

Total runs: 10.1M
Run Growth: -1.1M
Growth Rate: -11.04%
Updated:February 21 2024
huggingface.co

Total runs: 9.8M
Run Growth: -3.3M
Growth Rate: -34.01%
Updated:February 21 2024
huggingface.co

Total runs: 1.9M
Run Growth: 158.6K
Growth Rate: 8.50%
Updated:April 17 2024
huggingface.co

Total runs: 712.1K
Run Growth: -363.1K
Growth Rate: -50.99%
Updated:April 02 2024
huggingface.co

Total runs: 619.2K
Run Growth: -361.7K
Growth Rate: -58.42%
Updated:October 12 2023
huggingface.co

Total runs: 193.4K
Run Growth: -430.2K
Growth Rate: -222.51%
Updated:December 13 2023
huggingface.co

Total runs: 73.3K
Run Growth: -5.2K
Growth Rate: -7.08%
Updated:October 12 2023
huggingface.co

Total runs: 64.2K
Run Growth: 49.3K
Growth Rate: 76.72%
Updated:October 12 2023
huggingface.co

Total runs: 57.9K
Run Growth: -10.8K
Growth Rate: -18.57%
Updated:July 13 2026
huggingface.co

Total runs: 50.6K
Run Growth: 4.4K
Growth Rate: 8.80%
Updated:October 12 2023
huggingface.co

Total runs: 40.4K
Run Growth: 4.2K
Growth Rate: 10.38%
Updated:January 15 2025
huggingface.co

Total runs: 39.8K
Run Growth: 2.3K
Growth Rate: 5.72%
Updated:November 14 2023
huggingface.co

Total runs: 15.6K
Run Growth: -714
Growth Rate: -4.58%
Updated:April 16 2025
huggingface.co

Total runs: 10.4K
Run Growth: 10.4K
Growth Rate: 100.00%
Updated:September 16 2026
huggingface.co

Total runs: 7.0K
Run Growth: -8.3K
Growth Rate: -118.15%
Updated:October 12 2023
huggingface.co

Total runs: 4.8K
Run Growth: 2.0K
Growth Rate: 42.00%
Updated:May 20 2025
huggingface.co

Total runs: 3.3K
Run Growth: 900
Growth Rate: 27.22%
Updated:April 19 2024
huggingface.co

Total runs: 2.8K
Run Growth: 806
Growth Rate: 29.30%
Updated:September 11 2026
huggingface.co

Total runs: 2.4K
Run Growth: 1.1K
Growth Rate: 46.55%
Updated:April 10 2026
huggingface.co

Total runs: 1.8K
Run Growth: 991
Growth Rate: 54.18%
Updated:November 28 2024
huggingface.co

Total runs: 1.7K
Run Growth: -13.9K
Growth Rate: -812.30%
Updated:January 15 2025
huggingface.co

Total runs: 1.6K
Run Growth: 214
Growth Rate: 13.41%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -215
Growth Rate: -15.65%
Updated:December 31 2022
huggingface.co

Total runs: 902
Run Growth: 455
Growth Rate: 50.44%
Updated:September 11 2026
huggingface.co

Total runs: 757
Run Growth: -10
Growth Rate: -1.32%
Updated:May 23 2025
huggingface.co

Total runs: 665
Run Growth: -836
Growth Rate: -125.71%
Updated:February 07 2024
huggingface.co

Total runs: 637
Run Growth: -127
Growth Rate: -19.94%
Updated:October 24 2024
huggingface.co

Total runs: 606
Run Growth: -527
Growth Rate: -86.96%
Updated:October 23 2024
huggingface.co

Total runs: 585
Run Growth: 585
Growth Rate: 100.00%
Updated:October 01 2026
huggingface.co

Total runs: 504
Run Growth: -186
Growth Rate: -36.90%
Updated:July 13 2026
huggingface.co

Total runs: 466
Run Growth: -84
Growth Rate: -18.03%
Updated:April 18 2023
huggingface.co

Total runs: 465
Run Growth: 315
Growth Rate: 67.74%
Updated:April 02 2024
huggingface.co

Total runs: 427
Run Growth: 129
Growth Rate: 30.21%
Updated:July 13 2026
huggingface.co

Total runs: 409
Run Growth: -15
Growth Rate: -3.67%
Updated:April 10 2026
huggingface.co

Total runs: 404
Run Growth: -125
Growth Rate: -30.94%
Updated:July 13 2026
huggingface.co

Total runs: 400
Run Growth: -96
Growth Rate: -24.00%
Updated:August 11 2026
huggingface.co

Total runs: 395
Run Growth: 15
Growth Rate: 3.80%
Updated:December 25 2025
huggingface.co

Total runs: 351
Run Growth: -249
Growth Rate: -70.94%
Updated:August 11 2026
huggingface.co

Total runs: 336
Run Growth: 134
Growth Rate: 39.88%
Updated:July 13 2026
huggingface.co

Total runs: 295
Run Growth: 22
Growth Rate: 7.46%
Updated:July 13 2026
huggingface.co

Total runs: 293
Run Growth: -130
Growth Rate: -44.37%
Updated:July 13 2026
huggingface.co

Total runs: 292
Run Growth: 65
Growth Rate: 22.26%
Updated:August 18 2026
huggingface.co

Total runs: 278
Run Growth: 278
Growth Rate: 100.00%
Updated:September 05 2026
huggingface.co

Total runs: 265
Run Growth: -86
Growth Rate: -32.45%
Updated:March 07 2024
huggingface.co

Total runs: 262
Run Growth: 56
Growth Rate: 21.37%
Updated:July 13 2026
huggingface.co

Total runs: 256
Run Growth: -198
Growth Rate: -77.34%
Updated:October 27 2023
huggingface.co

Total runs: 244
Run Growth: -407
Growth Rate: -161.51%
Updated:December 25 2025
huggingface.co

Total runs: 238
Run Growth: 9
Growth Rate: 3.78%
Updated:June 06 2025
huggingface.co

Total runs: 238
Run Growth: 154
Growth Rate: 64.71%
Updated:November 28 2023
huggingface.co

Total runs: 235
Run Growth: 39
Growth Rate: 16.60%
Updated:July 17 2026
huggingface.co

Total runs: 230
Run Growth: 39
Growth Rate: 16.96%
Updated:July 13 2026
huggingface.co

Total runs: 215
Run Growth: 114
Growth Rate: 53.02%
Updated:July 13 2026
huggingface.co

Total runs: 210
Run Growth: 98
Growth Rate: 46.67%
Updated:July 13 2026
huggingface.co

Total runs: 199
Run Growth: 55
Growth Rate: 27.64%
Updated:June 24 2024
huggingface.co

Total runs: 194
Run Growth: 51
Growth Rate: 26.29%
Updated:June 24 2024
huggingface.co

Total runs: 192
Run Growth: -1.3K
Growth Rate: -654.17%
Updated:April 10 2026
huggingface.co

Total runs: 189
Run Growth: -152
Growth Rate: -80.42%
Updated:April 10 2026
huggingface.co

Total runs: 187
Run Growth: -7
Growth Rate: -3.74%
Updated:May 13 2024
huggingface.co

Total runs: 187
Run Growth: -34
Growth Rate: -18.18%
Updated:October 23 2024
huggingface.co

Total runs: 187
Run Growth: 94
Growth Rate: 50.27%
Updated:March 13 2026
huggingface.co

Total runs: 184
Run Growth: 20
Growth Rate: 10.87%
Updated:May 13 2024