alt.freeweights.llama / Infinity-Instruct-3M-0625-Llama3-8B
From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.llamaSubject:

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

Date: 2026-11-15Commit: 7be7c0fSigned: 2DC28CC7B26A283B ✓

Text generation model with 8B parameters. Safetensors weights, 16.1 GB in all. Published by BAAI under Apache-2.0.

8B params16.1GBInfinity-Instruct-3M-0625-Llama3-8Bsafetensorspermissive
FactsParams8BSize16.1 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get BAAI/Infinity-Instruct-3M-0625-Llama3-8B
# manifest sha256 ca4692934b6c… · 16.1 GB · 15 files
$ fw verify ./Infinity-Instruct-3M-0625-Llama3-8B BAAI/Infinity-Instruct-3M-0625-Llama3-8B
From sourceHosted (signed)BAAI/Infinity-Instruct-3M-0625-Llama3-8BLast check: 2026-11-15 02:44 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
16.1 GB
Weights
16.1 GB (safetensors)
Parameters
8B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
BAAI
Added
2026-11-15
Section
alt.freeweights.llama
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commitโ†’You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:44 UTCpassed

Model card

From the publisher at commit 7be7c0f. Shown as plain text with links; images open at the publisher.

Infinity Instruct#

Image: image

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#

Image: image

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#

ModelMT-BenchAlpacaEval2.0
GPT 3.5 Turbo 06138.422.7
Mixtral 8x7B v0.18.323.7
Gemini Pro--24.4
GPT4-06139.230.2
Llama-3-8B-Instruct--22.9
InfInstruct-3M-0625-Llama3-8B*8.227.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}
}

Files

15 files ยท 16.1 GBWeights 16.1 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.19 KBc6b691979e49bba8fa919e8826b1deeef08a0614d4faa81b38f1372c8c3c9b51
config.json680 B600af2466773a6b26ff6526db4bf34275462006f21f17c750bf979c09bbce85d
fig/Bk3NbjnJko51MTx1ZCScT2sqnGg.png109 KB3ee1e370eb605f9c33e57b3696d5547b8d2e1f7a58e6605be505d7c2614b2b0d
fig/result.png272 KB2f991a773e1210eaf739b65ca244e654e8781c40c9af4ba76dc660ca6115612b
fig/trainingflow.png81.3 KBfd54036bb280280ddc5fe0784c7cf5349a85dac3d3a37308401011c17c46f000
generation_config.json126 Bc6c683cc708d2c6921698cd80b39f380b9d501bd40770b024cea113f4b88210d
model-00001-of-00004.safetensors4.98 GB5005a3e1fb869c564272f8878aa00e8b6b70e4dc0250bd2c6d9260455dbe8aec
model-00002-of-00004.safetensors5.00 GBa2c51e51c0f6bc28215bb1756d3e5b82c1924f04447495a8363bfad1aeeebbf4
model-00003-of-00004.safetensors4.92 GB5c7a8facab797d070a07f80f31a1b5471f4c729180537b01d43ffa784523d4ba
model-00004-of-00004.safetensors1.17 GBa8b313a86f0b62faf983e3af925856ae10f69a210169784c83a0eaf73b2dfea7
model.safetensors.index.json23.9 KB146776fce3f6db1103aa6f249e65ee5544c5923ce6f971b092eee79aa6e5d37b
special_tokens_map.json68 Bb7455f0e8f00539108837bfa586c4fbf424e31f8717819a6798be74bef813d05
tokenizer.json9.08 MB0ac333c83e2d107910928928b5912d8ade91594d08c7c73c4606d05c032d7632
tokenizer_config.json50.9 KBb717528fa6d09d7511f2226c59b29076b4b2cecdc7842a0da501ce65d9f95f60
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7be7c0ff1e pinned now2026-11-15 02:44 UTC15 files ยท 16.1 GB

Use it

$ fw get BAAI/Infinity-Instruct-3M-0625-Llama3-8B
# manifest sha256 ca4692934b6c… · 16.1 GB · 15 files
$ fw verify ./Infinity-Instruct-3M-0625-Llama3-8B BAAI/Infinity-Instruct-3M-0625-Llama3-8B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/BAAI/Infinity-Instruct-3M-0625-Llama3-8B.json --dir ./Infinity-Instruct-3M-0625-Llama3-8B $ python3 fw.py verify ./Infinity-Instruct-3M-0625-Llama3-8B ./BAAI__Infinity-Instruct-3M-0625-Llama3-8B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Infinity-Instruct-3M-0625-Llama3-8B --revision 7be7c0ff1e35c3bb781c47222da99a1724f5f1da --local-dir ./Infinity-Instruct-3M-0625-Llama3-8B
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-3M-0625-Llama3-8B", revision="7be7c0ff1e35c3bb781c47222da99a1724f5f1da") model = AutoModelForCausalLM.from_pretrained("BAAI/Infinity-Instruct-3M-0625-Llama3-8B", revision="7be7c0ff1e35c3bb781c47222da99a1724f5f1da", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve BAAI/Infinity-Instruct-3M-0625-Llama3-8B --revision 7be7c0ff1e35c3bb781c47222da99a1724f5f1da

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
c6b691979e49bba8fa919e8826b1deeef08a0614d4faa81b38f1372c8c3c9b51
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.llamaSubject: Infinity-Instruct-3M-0625-Llama3-8BDate: 2026-11-15Commit: 7be7c0fSigned: 2DC28CC7B26A283B ✓
Upstream
BAAI/Infinity-Instruct-3M-0625-Llama3-8B
Pinned commit
7be7c0ff1e35c3bb781c47222da99a1724f5f1da
Manifest
Infinity-Instruct-3M-0625-Llama3-8B.json ยท .minisig
Manifest sha256
ca4692934b6c71a7cee2610dfba47370091ae88c5cc0f493e8a4e81d7455c47f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/BAAI/Infinity-Instruct-3M-0625-Llama3-8B.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/Infinity-Instruct-3M-0625-Llama3-8B.json.minisig $ minisign -Vm Infinity-Instruct-3M-0625-Llama3-8B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/Infinity-Instruct-3M-0625-Llama3-8B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Infinity-Instruct-3M-0625-Llama3-8B.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Bunny-Llama-3-8B-V
From: BAAI <huggingface.co/BAAI>Subject: Bunny-Llama-3-8B-V-gguf
From: BAAI <huggingface.co/BAAI>Subject: Bunny-v1_1-Llama-3-8B-V
From: unsloth <huggingface.co/unsloth>Subject: codellama-7b
From: unsloth <huggingface.co/unsloth>Subject: codellama-7b-bnb-4bit
From: BAAI <huggingface.co/BAAI>Subject: Infinity-Instruct-3M-0613-Llama3-70B