Model reference · open weights

Infinity-0625-Yi-1.5

Available as managed deployment LLMs BAAI Text gen 1 variants 8k dl/mo

Infinity-0625-Yi-1.5 is an open-weight language model from BAAI. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

MakerBAAI
TypeLanguage models
TaskText gen
Parameters (lead)8.8B
Context4k tokens
Runs withtransformers
Released2024-07-09
Popularity8k downloads / month
LicenceOpen weights

About

What Infinity-0625-Yi-1.5 is

Infinity-Instruct-3M-0625-Yi-1.5-9B 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-Yi-1.5-9B 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 Yi-1.5-9B, and get the foundational instruct model Infinity-Instruct-3M-Yi-1.5-9B. Then we finetune the Infinity-Instruct-3M-Yi-1.5-9B to get the stronger chat model Infinity-Instruct-3M-0625-Yi-1.5-9B. Here is the training hyperparamers.

epoch: 3
lr: 1e-5
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
OpenHermes-2.5-Mistral-7B*7.516.2
Mistral-7B-Instruct-v0.27.617.1
Llama-3-8B-Instruct8.122.9
Yi-1.5-9B-Chat8.222.9
InfInstruct-3M-0625-Yi-1.5-9B*8.020.5

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

We evaluate Infinity-Instruct-3M-0625-Yi-1.5-9B 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-Yi-1.5-9B adopt the same chat template of Yi-1.5-9B-Chat:

How are you?
Hi!
How are you?

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-Yi-1.5-9B",
    torch_dtype=torch.bfloat16,
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("BAAI/Infinity-Instruct-3M-0625-Yi-1.5-9B")

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 l

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys infinity-0625-yi-1-5 for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (infinity-0625-yi-1-5 below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/chat/completions \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"infinity-0625-yi-1-5","messages":[{"role":"user","content":"Hello"}]}'

Create an account — your API key is available in the console. 5M tokens/month currently included with every new account at launch.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms