BAAI / Infinity-Instruct-3M-0625-Llama3-8B

huggingface.co
Total runs: 8.6K
24-hour runs: 32
7-day runs: 55
30-day runs: 715
Model's Last Updated: July 09 2024
text-generation

Introduction of Infinity-Instruct-3M-0625-Llama3-8B

Model Details of Infinity-Instruct-3M-0625-Llama3-8B

Infinity Instruct

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

Infinity-Instruct-3M-0625-Llama3-8B 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 and MT-Bench.

News
Training Details

Infinity-Instruct-3M-0625-Llama3-8B is tuned on Million-level instruction dataset Infinity-Instruct . First, we apply the foundational dataset Infinity-Instruct-3M to improve the foundational ability (math & code) of Llama3-8B, and get the foundational instruct model Infinity-Instruct-3M-Llama3-8B. Then we finetune the Infinity-Instruct-3M-Llama3-8B to get the stronger chat model Infinity-Instruct-3M-0625-Llama3-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
GPT 3.5 Turbo 0613 8.4 22.7
Mixtral 8x7B v0.1 8.3 23.7
Gemini Pro -- 24.4
GPT4-0613 9.2 30.2
Llama-3-8B-Instruct -- 22.9
InfInstruct-3M-0625-Llama3-8B* 8.2 27.5

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

We evaluate Infinity-Instruct-3M-0625-Llama3-8B 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.

How to use

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

8.6K
Total runs
32
24-hour runs
106
3-day runs
55
7-day runs
715
30-day runs

More Information About Infinity-Instruct-3M-0625-Llama3-8B huggingface.co Model

More Infinity-Instruct-3M-0625-Llama3-8B license Visit here:

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

Infinity-Instruct-3M-0625-Llama3-8B huggingface.co

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

Infinity-Instruct-3M-0625-Llama3-8B huggingface.co Url

https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Llama3-8B

BAAI Infinity-Instruct-3M-0625-Llama3-8B online free

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

BAAI Infinity-Instruct-3M-0625-Llama3-8B online free url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Llama3-8B

Infinity-Instruct-3M-0625-Llama3-8B install

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

Infinity-Instruct-3M-0625-Llama3-8B install url in huggingface.co:

https://huggingface.co/BAAI/Infinity-Instruct-3M-0625-Llama3-8B

Url of Infinity-Instruct-3M-0625-Llama3-8B

Infinity-Instruct-3M-0625-Llama3-8B huggingface.co Url

Provider of Infinity-Instruct-3M-0625-Llama3-8B huggingface.co

BAAI
ORGANIZATIONS

Other API from BAAI

huggingface.co

Total runs: 64.6M
Run Growth: -2.5M
Growth Rate: -3.89%
Updated:February 22 2024
huggingface.co

Total runs: 37.8M
Run Growth: 5.6M
Growth Rate: 14.76%
Updated:July 03 2024
huggingface.co

Total runs: 10.7M
Run Growth: 658.2K
Growth Rate: 6.16%
Updated:February 21 2024
huggingface.co

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

Total runs: 799.8K
Run Growth: -706.1K
Growth Rate: -88.29%
Updated:October 12 2023
huggingface.co

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

Total runs: 68.1K
Run Growth: 10.0K
Growth Rate: 14.70%
Updated:July 13 2026
huggingface.co

Total runs: 60.6K
Run Growth: -109.9K
Growth Rate: -181.17%
Updated:October 12 2023
huggingface.co

Total runs: 49.6K
Run Growth: -42.6K
Growth Rate: -85.91%
Updated:October 12 2023
huggingface.co

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

Total runs: 37.5K
Run Growth: -23.4K
Growth Rate: -62.50%
Updated:January 15 2025
huggingface.co

Total runs: 36.7K
Run Growth: 13.5K
Growth Rate: 36.92%
Updated:October 12 2023
huggingface.co

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

Total runs: 11.6K
Run Growth: -13.6K
Growth Rate: -116.76%
Updated:October 12 2023
huggingface.co

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

Total runs: 4.6K
Run Growth: -10.5K
Growth Rate: -231.70%
Updated:May 20 2025
huggingface.co

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

Total runs: 1.8K
Run Growth: 990
Growth Rate: 54.70%
Updated:December 31 2022
huggingface.co

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

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

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

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

Total runs: 1.2K
Run Growth: 685
Growth Rate: 56.43%
Updated:October 23 2024
huggingface.co

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

Total runs: 1.1K
Run Growth: 205
Growth Rate: 16.47%
Updated:February 07 2024
huggingface.co

Total runs: 1.0K
Run Growth: 733
Growth Rate: 70.28%
Updated:October 24 2024
huggingface.co

Total runs: 876
Run Growth: 234
Growth Rate: 26.71%
Updated:May 23 2025
huggingface.co

Total runs: 579
Run Growth: -261
Growth Rate: -45.08%
Updated:July 13 2026
huggingface.co

Total runs: 470
Run Growth: 186
Growth Rate: 39.57%
Updated:April 10 2026
huggingface.co

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

Total runs: 429
Run Growth: -107
Growth Rate: -24.94%
Updated:October 27 2023
huggingface.co

Total runs: 405
Run Growth: -700
Growth Rate: -152.17%
Updated:April 18 2023
huggingface.co

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

Total runs: 389
Run Growth: -242
Growth Rate: -62.21%
Updated:December 25 2025
huggingface.co

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

Total runs: 313
Run Growth: 22
Growth Rate: 7.03%
Updated:July 13 2026
huggingface.co

Total runs: 306
Run Growth: 139
Growth Rate: 45.42%
Updated:July 13 2026
huggingface.co

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

Total runs: 290
Run Growth: -77
Growth Rate: -26.01%
Updated:March 07 2024
huggingface.co

Total runs: 286
Run Growth: 218
Growth Rate: 76.22%
Updated:August 18 2026
huggingface.co

Total runs: 285
Run Growth: -602
Growth Rate: -211.23%
Updated:December 25 2025
huggingface.co

Total runs: 279
Run Growth: 60
Growth Rate: 21.51%
Updated:July 13 2026
huggingface.co

Total runs: 279
Run Growth: -11
Growth Rate: -3.94%
Updated:April 10 2026
huggingface.co

Total runs: 254
Run Growth: 10
Growth Rate: 3.94%
Updated:February 11 2025
huggingface.co

Total runs: 213
Run Growth: -70
Growth Rate: -32.86%
Updated:June 06 2025
huggingface.co

Total runs: 213
Run Growth: 37
Growth Rate: 17.37%
Updated:July 13 2026
huggingface.co

Total runs: 210
Run Growth: -145
Growth Rate: -69.05%
Updated:July 17 2026
huggingface.co

Total runs: 209
Run Growth: -82
Growth Rate: -39.23%
Updated:October 23 2024
huggingface.co

Total runs: 202
Run Growth: -65
Growth Rate: -32.18%
Updated:July 13 2026
huggingface.co

Total runs: 185
Run Growth: -102
Growth Rate: -55.14%
Updated:July 13 2026
huggingface.co

Total runs: 181
Run Growth: 34
Growth Rate: 18.78%
Updated:April 02 2024
huggingface.co

Total runs: 179
Run Growth: -166
Growth Rate: -92.74%
Updated:May 13 2024
huggingface.co

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

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

Total runs: 166
Run Growth: 89
Growth Rate: 53.29%
Updated:August 23 2023
huggingface.co

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

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

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

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

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

Total runs: 144
Run Growth: -94
Growth Rate: -65.28%
Updated:July 13 2026
huggingface.co

Total runs: 137
Run Growth: 34
Growth Rate: 25.19%
Updated:July 02 2024