BAAI / Infinity-Instruct-7M-Gen-Llama3_1-70B

huggingface.co
Total runs: 235
24-hour runs: 0
7-day runs: 2
30-day runs: 34
Model's Last Updated: August 11 2024
text-generation

Introduction of Infinity-Instruct-7M-Gen-Llama3_1-70B

Model Details of Infinity-Instruct-7M-Gen-Llama3_1-70B

Infinity Instruct

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

Infinity-Instruct-7M-Gen-Llama3.1-70B 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 and arena-hard compared to GPT4.

News
Training Details

Infinity-Instruct-7M-Gen-Llama3.1-70B 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 Llama3.1-70B, and get the foundational instruct model Infinity-Instruct-7M-Llama3-70B. Then we finetune the Infinity-Instruct-7M-Llama3-70B to get the stronger chat model Infinity-Instruct-7M-Gen-Llama3_1-70B. 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 --
Llama-3-70B-Instruct 9.0 34.4 46.6
Llama-3.1-8B-Instruct -- 20.9 20.6
Llama-3.1-70B-Instruct -- 38.1 55.7
Llama-3.1-405B-Instruct -- 39.3 64.1
InfInstruct-7M-Llama-3.1-8B 8.2 33.9 30.4
InfInstruct-3M-0613-Llama-3-70B 8.7 31.5 --
InfInstruct-3M-0625-Llama-3-70B 8.9 38.0 --
InfInstruct-3M-Gen-Llama-3.1-70B 8.9 46.1 66.0

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

How to use

Infinity-Instruct-7M-Gen-Llama3_1-70B adopt the same chat template of Llama3-70B-instruct :

<|begin_of_text|><|start_header_id|>user<|end_header_id|>

How are you?<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Hi!<|eot_id|><|start_header_id|>user<|end_header_id|>

How are you?<|eot_id|><|start_header_id|>assistant<|end_header_id|>

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-Llama3_1-70B",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-7M-Gen-Llama3_1-70B")

prompt = "Give me a short introduction to large language model."
messages = [
    {"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-Gen-Llama3_1-70B on huggingface.co

235
Total runs
0
24-hour runs
5
3-day runs
2
7-day runs
34
30-day runs

More Information About Infinity-Instruct-7M-Gen-Llama3_1-70B huggingface.co Model

More Infinity-Instruct-7M-Gen-Llama3_1-70B license Visit here:

https://choosealicense.com/licenses/llama3.1

Infinity-Instruct-7M-Gen-Llama3_1-70B huggingface.co

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

Infinity-Instruct-7M-Gen-Llama3_1-70B huggingface.co Url

https://huggingface.co/BAAI/Infinity-Instruct-7M-Gen-Llama3_1-70B

BAAI Infinity-Instruct-7M-Gen-Llama3_1-70B online free

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

BAAI Infinity-Instruct-7M-Gen-Llama3_1-70B online free url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-7M-Gen-Llama3_1-70B

Infinity-Instruct-7M-Gen-Llama3_1-70B install

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

Infinity-Instruct-7M-Gen-Llama3_1-70B install url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-7M-Gen-Llama3_1-70B

Url of Infinity-Instruct-7M-Gen-Llama3_1-70B

Infinity-Instruct-7M-Gen-Llama3_1-70B huggingface.co Url

Provider of Infinity-Instruct-7M-Gen-Llama3_1-70B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 58.5M
Run Growth: -6.1M
Growth Rate: -10.48%
Updated:February 22 2024
huggingface.co

Total runs: 31.9M
Run Growth: -6.2M
Growth Rate: -19.43%
Updated:July 03 2024
huggingface.co

Total runs: 10.0M
Run Growth: -2.0M
Growth Rate: -20.39%
Updated:February 21 2024
huggingface.co

Total runs: 9.0M
Run Growth: -1.5M
Growth Rate: -16.43%
Updated:February 21 2024
huggingface.co

Total runs: 2.3M
Run Growth: -81.5K
Growth Rate: -3.50%
Updated:April 17 2024
huggingface.co

Total runs: 417.9K
Run Growth: -395.8K
Growth Rate: -94.70%
Updated:October 12 2023
huggingface.co

Total runs: 351.1K
Run Growth: -812.9K
Growth Rate: -231.50%
Updated:April 02 2024
huggingface.co

Total runs: 193.5K
Run Growth: -29.8K
Growth Rate: -15.42%
Updated:December 13 2023
huggingface.co

Total runs: 114.5K
Run Growth: 62.2K
Growth Rate: 54.28%
Updated:October 12 2023
huggingface.co

Total runs: 44.2K
Run Growth: -5.5K
Growth Rate: -12.40%
Updated:November 14 2023
huggingface.co

Total runs: 41.4K
Run Growth: -24.6K
Growth Rate: -59.53%
Updated:July 13 2026
huggingface.co

Total runs: 37.9K
Run Growth: -20.5K
Growth Rate: -54.24%
Updated:October 12 2023
huggingface.co

Total runs: 32.8K
Run Growth: -6.2K
Growth Rate: -18.99%
Updated:January 15 2025
huggingface.co

Total runs: 12.1K
Run Growth: -3.7K
Growth Rate: -30.45%
Updated:April 16 2025
huggingface.co

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

Total runs: 10.0K
Run Growth: -57.8K
Growth Rate: -576.84%
Updated:October 12 2023
huggingface.co

Total runs: 4.2K
Run Growth: -6.5K
Growth Rate: -154.95%
Updated:October 12 2023
huggingface.co

Total runs: 3.4K
Run Growth: -1.6K
Growth Rate: -46.83%
Updated:May 20 2025
huggingface.co

Total runs: 3.0K
Run Growth: -2.5K
Growth Rate: -82.64%
Updated:April 19 2024
huggingface.co

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

Total runs: 1.6K
Run Growth: -33
Growth Rate: -2.01%
Updated:April 10 2026
huggingface.co

Total runs: 1.6K
Run Growth: -253
Growth Rate: -15.67%
Updated:January 15 2025
huggingface.co

Total runs: 1.4K
Run Growth: -2.2K
Growth Rate: -152.77%
Updated:September 11 2026
huggingface.co

Total runs: 1.2K
Run Growth: -818
Growth Rate: -65.70%
Updated:December 31 2022
huggingface.co

Total runs: 1.2K
Run Growth: -484
Growth Rate: -40.64%
Updated:April 10 2026
huggingface.co

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

Total runs: 749
Run Growth: -43
Growth Rate: -5.64%
Updated:February 07 2024
huggingface.co

Total runs: 736
Run Growth: 717
Growth Rate: 97.42%
Updated:October 13 2025
huggingface.co

Total runs: 511
Run Growth: -54
Growth Rate: -10.57%
Updated:July 13 2026
huggingface.co

Total runs: 501
Run Growth: 301
Growth Rate: 60.08%
Updated:April 02 2024
huggingface.co

Total runs: 470
Run Growth: 53
Growth Rate: 11.28%
Updated:April 18 2023
huggingface.co

Total runs: 456
Run Growth: -312
Growth Rate: -68.42%
Updated:May 23 2025
huggingface.co

Total runs: 445
Run Growth: 122
Growth Rate: 27.42%
Updated:July 13 2026
huggingface.co

Total runs: 437
Run Growth: -843
Growth Rate: -192.91%
Updated:October 23 2024
huggingface.co

Total runs: 434
Run Growth: -16
Growth Rate: -3.69%
Updated:July 13 2026
huggingface.co

Total runs: 425
Run Growth: 139
Growth Rate: 32.71%
Updated:December 25 2025
huggingface.co

Total runs: 416
Run Growth: 111
Growth Rate: 27.27%
Updated:March 07 2024
huggingface.co

Total runs: 410
Run Growth: 20
Growth Rate: 4.88%
Updated:October 27 2023
huggingface.co

Total runs: 387
Run Growth: -686
Growth Rate: -177.26%
Updated:October 24 2024
huggingface.co

Total runs: 374
Run Growth: 6
Growth Rate: 1.60%
Updated:August 11 2026
huggingface.co

Total runs: 364
Run Growth: 162
Growth Rate: 44.51%
Updated:July 13 2026
huggingface.co

Total runs: 361
Run Growth: -16
Growth Rate: -4.43%
Updated:August 11 2026
huggingface.co

Total runs: 300
Run Growth: -191
Growth Rate: -63.67%
Updated:April 10 2026
huggingface.co

Total runs: 288
Run Growth: -31
Growth Rate: -10.76%
Updated:August 18 2026
huggingface.co

Total runs: 284
Run Growth: -71
Growth Rate: -25.00%
Updated:July 13 2026
huggingface.co

Total runs: 268
Run Growth: 45
Growth Rate: 16.79%
Updated:June 06 2025
huggingface.co

Total runs: 268
Run Growth: 60
Growth Rate: 22.39%
Updated:July 13 2026
huggingface.co

Total runs: 265
Run Growth: 83
Growth Rate: 31.32%
Updated:July 13 2026
huggingface.co

Total runs: 254
Run Growth: -33
Growth Rate: -12.99%
Updated:July 13 2026
huggingface.co

Total runs: 245
Run Growth: 100
Growth Rate: 40.82%
Updated:November 28 2023
huggingface.co

Total runs: 243
Run Growth: -86
Growth Rate: -38.39%
Updated:December 25 2025
huggingface.co

Total runs: 229
Run Growth: 50
Growth Rate: 21.83%
Updated:October 23 2024
huggingface.co

Total runs: 219
Run Growth: 57
Growth Rate: 26.03%
Updated:July 13 2026
huggingface.co

Total runs: 218
Run Growth: 84
Growth Rate: 38.53%
Updated:July 13 2026
huggingface.co

Total runs: 215
Run Growth: -8
Growth Rate: -3.72%
Updated:July 17 2026
huggingface.co

Total runs: 202
Run Growth: -1.0K
Growth Rate: -500.00%
Updated:September 11 2026
huggingface.co

Total runs: 198
Run Growth: 29
Growth Rate: 14.65%
Updated:June 24 2024
huggingface.co

Total runs: 191
Run Growth: 34
Growth Rate: 17.80%
Updated:May 13 2024
huggingface.co

Total runs: 189
Run Growth: 43
Growth Rate: 22.75%
Updated:June 24 2024
huggingface.co

Total runs: 187
Run Growth: 30
Growth Rate: 16.04%
Updated:May 13 2024
huggingface.co

Total runs: 186
Run Growth: 34
Growth Rate: 18.28%
Updated:May 13 2024
huggingface.co

Total runs: 185
Run Growth: 49
Growth Rate: 26.49%
Updated:December 21 2023
huggingface.co

Total runs: 184
Run Growth: 32
Growth Rate: 17.39%
Updated:May 31 2024
huggingface.co

Total runs: 183
Run Growth: 42
Growth Rate: 22.95%
Updated:December 21 2023