BAAI / Infinity-Instruct-7M-0729-Llama3_1-8B

huggingface.co
Total runs: 644
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: August 08 2024

Introduction of Infinity-Instruct-7M-0729-Llama3_1-8B

Model Details of Infinity-Instruct-7M-0729-Llama3_1-8B

Infinity Instruct

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

Infinity-Instruct-7M-Gen-Llama3.1-8B 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 GPT4.

News
Training Details

Infinity-Instruct-7M-Gen-Llama3.1-8B 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-8B, and get the foundational instruct model Infinity-Instruct-7M-Llama3.1-8B. Then we finetune the Infinity-Instruct-7M-Llama3.1-8B to get the stronger chat model Infinity-Instruct-7M-Gen-Llama3.1-8B. 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-8B-Instruct 9.0 34.4 46.6
Llama-3.1-8B-Instruct -- 20.9 20.6
InfInstruct-7M-Llama-3.1-8B 8.2 33.9 30.4

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

How to use

Infinity-Instruct-7M-Gen-Llama3.1-8B adopt the same chat template of Llama3-8B-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-8B",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-7M-Gen-Llama3_1-8B")

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-0729-Llama3_1-8B on huggingface.co

644
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-Llama3_1-8B huggingface.co Model

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

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

Infinity-Instruct-7M-0729-Llama3_1-8B huggingface.co

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

Infinity-Instruct-7M-0729-Llama3_1-8B huggingface.co Url

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

BAAI Infinity-Instruct-7M-0729-Llama3_1-8B online free

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

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

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

Infinity-Instruct-7M-0729-Llama3_1-8B install

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

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

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

Url of Infinity-Instruct-7M-0729-Llama3_1-8B

Infinity-Instruct-7M-0729-Llama3_1-8B huggingface.co Url

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

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 63.9M
Run Growth: -10.2M
Growth Rate: -16.01%
Updated:February 22 2024
huggingface.co

Total runs: 37.5M
Run Growth: 2.0M
Growth Rate: 5.31%
Updated:July 03 2024
huggingface.co

Total runs: 12.4M
Run Growth: -89.9K
Growth Rate: -0.71%
Updated:February 21 2024
huggingface.co

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

Total runs: 2.3M
Run Growth: 1.7M
Growth Rate: 77.24%
Updated:April 17 2024
huggingface.co

Total runs: 793.7K
Run Growth: -700.0K
Growth Rate: -88.30%
Updated:October 12 2023
huggingface.co

Total runs: 223.4K
Run Growth: -1.3M
Growth Rate: -588.78%
Updated:December 13 2023
huggingface.co

Total runs: 54.9K
Run Growth: -114.8K
Growth Rate: -199.94%
Updated:October 12 2023
huggingface.co

Total runs: 54.8K
Run Growth: -34.8K
Growth Rate: -65.63%
Updated:October 12 2023
huggingface.co

Total runs: 54.1K
Run Growth: 40.8K
Growth Rate: 84.18%
Updated:October 12 2023
huggingface.co

Total runs: 48.1K
Run Growth: 24.5K
Growth Rate: 51.73%
Updated:November 14 2023
huggingface.co

Total runs: 37.7K
Run Growth: -24.2K
Growth Rate: -64.57%
Updated:January 15 2025
huggingface.co

Total runs: 15.7K
Run Growth: 675
Growth Rate: 4.26%
Updated:April 16 2025
huggingface.co

Total runs: 10.9K
Run Growth: -15.4K
Growth Rate: -140.42%
Updated:October 12 2023
huggingface.co

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

Total runs: 4.5K
Run Growth: -9.4K
Growth Rate: -209.45%
Updated:May 20 2025
huggingface.co

Total runs: 3.5K
Run Growth: 2.6K
Growth Rate: 73.26%
Updated:September 11 2026
huggingface.co

Total runs: 1.9K
Run Growth: 1.2K
Growth Rate: 63.45%
Updated:December 31 2022
huggingface.co

Total runs: 1.8K
Run Growth: -13.4K
Growth Rate: -758.20%
Updated:January 15 2025
huggingface.co

Total runs: 1.5K
Run Growth: -543
Growth Rate: -37.47%
Updated:April 10 2026
huggingface.co

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

Total runs: 1.4K
Run Growth: -139
Growth Rate: -10.78%
Updated:November 28 2024
huggingface.co

Total runs: 1.3K
Run Growth: 573
Growth Rate: 46.59%
Updated:October 23 2024
huggingface.co

Total runs: 1.2K
Run Growth: 316
Growth Rate: 25.38%
Updated:September 11 2026
huggingface.co

Total runs: 1.1K
Run Growth: -337
Growth Rate: -31.44%
Updated:February 07 2024
huggingface.co

Total runs: 1.1K
Run Growth: 775
Growth Rate: 73.95%
Updated:October 24 2024
huggingface.co

Total runs: 788
Run Growth: -167
Growth Rate: -22.24%
Updated:May 23 2025
huggingface.co

Total runs: 594
Run Growth: -166
Growth Rate: -27.85%
Updated:July 13 2026
huggingface.co

Total runs: 479
Run Growth: -22
Growth Rate: -4.59%
Updated:July 13 2026
huggingface.co

Total runs: 453
Run Growth: 154
Growth Rate: 33.41%
Updated:April 10 2026
huggingface.co

Total runs: 414
Run Growth: -427
Growth Rate: -103.89%
Updated:April 18 2023
huggingface.co

Total runs: 396
Run Growth: -120
Growth Rate: -27.91%
Updated:October 27 2023
huggingface.co

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

Total runs: 364
Run Growth: -869
Growth Rate: -237.43%
Updated:August 11 2026
huggingface.co

Total runs: 346
Run Growth: -320
Growth Rate: -89.39%
Updated:December 25 2025
huggingface.co

Total runs: 342
Run Growth: 150
Growth Rate: 44.91%
Updated:July 13 2026
huggingface.co

Total runs: 327
Run Growth: 42
Growth Rate: 13.00%
Updated:July 13 2026
huggingface.co

Total runs: 300
Run Growth: 207
Growth Rate: 70.41%
Updated:August 18 2026
huggingface.co

Total runs: 291
Run Growth: -937
Growth Rate: -321.99%
Updated:December 25 2025
huggingface.co

Total runs: 291
Run Growth: -64
Growth Rate: -22.07%
Updated:July 13 2026
huggingface.co

Total runs: 282
Run Growth: -146
Growth Rate: -51.59%
Updated:March 07 2024
huggingface.co

Total runs: 276
Run Growth: -3.9K
Growth Rate: -1368.44%
Updated:April 10 2026
huggingface.co

Total runs: 260
Run Growth: 19
Growth Rate: 7.34%
Updated:February 11 2025
huggingface.co

Total runs: 248
Run Growth: -113
Growth Rate: -44.66%
Updated:April 10 2026
huggingface.co

Total runs: 218
Run Growth: -105
Growth Rate: -49.30%
Updated:July 17 2026
huggingface.co

Total runs: 211
Run Growth: -131
Growth Rate: -63.90%
Updated:June 06 2025
huggingface.co

Total runs: 208
Run Growth: -81
Growth Rate: -38.94%
Updated:July 13 2026
huggingface.co

Total runs: 195
Run Growth: -63
Growth Rate: -32.81%
Updated:July 13 2026
huggingface.co

Total runs: 194
Run Growth: 50
Growth Rate: 26.46%
Updated:April 02 2024
huggingface.co

Total runs: 181
Run Growth: -123
Growth Rate: -61.19%
Updated:October 23 2024
huggingface.co

Total runs: 179
Run Growth: 17
Growth Rate: 9.39%
Updated:July 13 2026
huggingface.co

Total runs: 169
Run Growth: -94
Growth Rate: -53.71%
Updated:May 13 2024
huggingface.co

Total runs: 167
Run Growth: -998
Growth Rate: -608.54%
Updated:June 24 2024
huggingface.co

Total runs: 167
Run Growth: 45
Growth Rate: 27.61%
Updated:August 23 2023
huggingface.co

Total runs: 165
Run Growth: -25
Growth Rate: -14.97%
Updated:May 13 2024
huggingface.co

Total runs: 162
Run Growth: -72
Growth Rate: -43.37%
Updated:April 10 2026
huggingface.co

Total runs: 162
Run Growth: -16
Growth Rate: -9.64%
Updated:May 31 2024
huggingface.co

Total runs: 161
Run Growth: -16
Growth Rate: -9.82%
Updated:May 13 2024
huggingface.co

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

Total runs: 157
Run Growth: 24
Growth Rate: 16.22%
Updated:July 13 2026
huggingface.co

Total runs: 150
Run Growth: -49
Growth Rate: -32.45%
Updated:July 13 2026
huggingface.co

Total runs: 149
Run Growth: 47
Growth Rate: 32.41%
Updated:March 13 2026