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: 37.8M
Run Growth: 5.7M
Growth Rate: 14.98%
Updated:Juli 03 2024
huggingface.co

Total runs: 10.7M
Run Growth: 692.1K
Growth Rate: 6.46%
Updated:Februar 21 2024
huggingface.co

Total runs: 2.2M
Run Growth: 1.6M
Growth Rate: 77.39%
Updated:April 17 2024
huggingface.co

Total runs: 799.8K
Run Growth: -688.8K
Growth Rate: -84.30%
Updated:Oktober 12 2023
huggingface.co

Total runs: 246.7K
Run Growth: -1.2M
Growth Rate: -411.73%
Updated:Dezember 13 2023
huggingface.co

Total runs: 68.1K
Run Growth: 10.2K
Growth Rate: 14.90%
Updated:Juli 13 2026
huggingface.co

Total runs: 60.6K
Run Growth: -111.4K
Growth Rate: -180.07%
Updated:Oktober 12 2023
huggingface.co

Total runs: 49.6K
Run Growth: -49.5K
Growth Rate: -102.83%
Updated:Oktober 12 2023
huggingface.co

Total runs: 45.9K
Run Growth: 19.8K
Growth Rate: 44.08%
Updated:November 14 2023
huggingface.co

Total runs: 37.5K
Run Growth: -23.9K
Growth Rate: -64.57%
Updated:Januar 15 2025
huggingface.co

Total runs: 36.7K
Run Growth: 2.2K
Growth Rate: 7.01%
Updated:Oktober 12 2023
huggingface.co

Total runs: 16.0K
Run Growth: 3.1K
Growth Rate: 19.49%
Updated:April 16 2025
huggingface.co

Total runs: 11.6K
Run Growth: -13.1K
Growth Rate: -110.68%
Updated:Oktober 12 2023
huggingface.co

Total runs: 5.5K
Run Growth: 4.9K
Growth Rate: 89.13%
Updated:April 19 2024
huggingface.co

Total runs: 4.6K
Run Growth: -10.7K
Growth Rate: -243.32%
Updated:Mai 20 2025
huggingface.co

Total runs: 3.1K
Run Growth: 1.9K
Growth Rate: 66.71%
Updated:September 11 2026
huggingface.co

Total runs: 1.8K
Run Growth: 986
Growth Rate: 54.60%
Updated:Dezember 31 2022
huggingface.co

Total runs: 1.6K
Run Growth: 777
Growth Rate: 44.22%
Updated:Januar 15 2025
huggingface.co

Total runs: 1.4K
Run Growth: -891
Growth Rate: -63.24%
Updated:April 10 2026
huggingface.co

Total runs: 1.4K
Run Growth: -887
Growth Rate: -65.61%
Updated:April 10 2026
huggingface.co

Total runs: 1.3K
Run Growth: 69
Growth Rate: 6.51%
Updated:September 11 2026
huggingface.co

Total runs: 1.2K
Run Growth: 281
Growth Rate: 21.27%
Updated:Februar 07 2024
huggingface.co

Total runs: 1.2K
Run Growth: 670
Growth Rate: 55.88%
Updated:Oktober 23 2024
huggingface.co

Total runs: 1.2K
Run Growth: -558
Growth Rate: -49.16%
Updated:November 28 2024
huggingface.co

Total runs: 1.0K
Run Growth: 708
Growth Rate: 69.55%
Updated:Oktober 24 2024
huggingface.co

Total runs: 876
Run Growth: 241
Growth Rate: 27.29%
Updated:Mai 23 2025
huggingface.co

Total runs: 579
Run Growth: -234
Growth Rate: -38.61%
Updated:Juli 13 2026
huggingface.co

Total runs: 470
Run Growth: 169
Growth Rate: 37.31%
Updated:April 10 2026
huggingface.co

Total runs: 467
Run Growth: -106
Growth Rate: -23.04%
Updated:Juli 13 2026
huggingface.co

Total runs: 460
Run Growth: -677
Growth Rate: -134.59%
Updated:April 18 2023
huggingface.co

Total runs: 429
Run Growth: -108
Growth Rate: -25.23%
Updated:Oktober 27 2023
huggingface.co

Total runs: 398
Run Growth: -539
Growth Rate: -133.75%
Updated:August 11 2026
huggingface.co

Total runs: 389
Run Growth: -243
Growth Rate: -62.63%
Updated:Dezember 25 2025
huggingface.co

Total runs: 388
Run Growth: -11
Growth Rate: -2.87%
Updated:August 11 2026
huggingface.co

Total runs: 313
Run Growth: 21
Growth Rate: 6.73%
Updated:Juli 13 2026
huggingface.co

Total runs: 306
Run Growth: 120
Growth Rate: 39.60%
Updated:Juli 13 2026
huggingface.co

Total runs: 302
Run Growth: -3.4K
Growth Rate: -1081.53%
Updated:April 10 2026
huggingface.co

Total runs: 296
Run Growth: -82
Growth Rate: -28.18%
Updated:März 07 2024
huggingface.co

Total runs: 286
Run Growth: 216
Growth Rate: 76.06%
Updated:August 18 2026
huggingface.co

Total runs: 285
Run Growth: -395
Growth Rate: -80.28%
Updated:Dezember 25 2025
huggingface.co

Total runs: 279
Run Growth: 205
Growth Rate: 48.35%
Updated:Juli 13 2026
huggingface.co

Total runs: 279
Run Growth: 6
Growth Rate: 2.03%
Updated:April 10 2026
huggingface.co

Total runs: 254
Run Growth: 4
Growth Rate: 1.61%
Updated:Februar 11 2025
huggingface.co

Total runs: 213
Run Growth: -63
Growth Rate: -28.64%
Updated:Juni 06 2025
huggingface.co

Total runs: 213
Run Growth: 35
Growth Rate: 16.59%
Updated:Juli 13 2026
huggingface.co

Total runs: 210
Run Growth: -146
Growth Rate: -69.86%
Updated:Juli 17 2026
huggingface.co

Total runs: 209
Run Growth: -80
Growth Rate: -37.91%
Updated:Oktober 23 2024
huggingface.co

Total runs: 202
Run Growth: -146
Growth Rate: -71.57%
Updated:Juli 13 2026
huggingface.co

Total runs: 185
Run Growth: -107
Growth Rate: -59.44%
Updated:Juli 13 2026
huggingface.co

Total runs: 181
Run Growth: 29
Growth Rate: 16.48%
Updated:April 02 2024
huggingface.co

Total runs: 179
Run Growth: -164
Growth Rate: -90.61%
Updated:Mai 13 2024
huggingface.co

Total runs: 176
Run Growth: -22
Growth Rate: -11.46%
Updated:April 10 2026
huggingface.co

Total runs: 167
Run Growth: 65
Growth Rate: 45.45%
Updated:August 23 2023
huggingface.co

Total runs: 166
Run Growth: -30
Growth Rate: -18.07%
Updated:Mai 13 2024
huggingface.co

Total runs: 165
Run Growth: -32
Growth Rate: -19.51%
Updated:Mai 13 2024
huggingface.co

Total runs: 165
Run Growth: -36
Growth Rate: -21.82%
Updated:Mai 31 2024
huggingface.co

Total runs: 160
Run Growth: -1.1K
Growth Rate: -712.03%
Updated:Juni 24 2024
huggingface.co

Total runs: 153
Run Growth: -44
Growth Rate: -28.76%
Updated:Juli 13 2026
huggingface.co

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

Total runs: 144
Run Growth: -97
Growth Rate: -68.79%
Updated:Juli 13 2026
huggingface.co

Total runs: 136
Run Growth: -42
Growth Rate: -31.11%
Updated:Juli 13 2026
huggingface.co

Total runs: 135
Run Growth: 33
Growth Rate: 24.63%
Updated:Juli 02 2024