Views
No views yet

| Developers | Reallm-Labs |
| Description | InfiFusion is our first work on fusing multiple domain LLMs into a single LLM. |
| Architecture | 14B parameters, dense decoder-only Transformer model |
| Inputs | Text, best suited for prompts in the chat format |
| Max Context length | 16K tokens |
| Fusing input length | 4K tokens |
| Fusing time | 160 hours |
| Fusing data | 520M tokens |
| Outputs | Generated text in response to input |
| Status | Static model trained on an offline dataset |
| License | MIT |
| Primary Use Cases | InfiFusion is designed to accelerate research on language model fusion and serve as a foundation for generative AI-powered features. It is suitable for building general-purpose AI systems and applications (primarily in English), especially in scenarios that require:1. Operation in memory- or compute-constrained environments. 2. Low-latency inference. 3. Advanced reasoning and logical inference. |
| Out-of-Scope Use Cases | InfiFusion is not specifically optimized or evaluated for all downstream tasks. As such:1. Developers should consider the general limitations of language models and carefully evaluate performance, safety, and fairness before deploying in sensitive or high-stakes applications. 2. Use of the model must comply with all applicable laws and regulations (e.g., data privacy, export controls), particularly given its English-language focus. 3. This Model Card does not alter or restrict the terms of the model’s open-source license. |
| Type | General | Math | Code |
|---|---|---|---|
| Dataset | Infinity-Instruct | NuminaMath-1.5 | KodCode-V1-SFT-R1 |
| Original Size | 1.4M | 1.4M | 268K |
| Filtered Size | 52K | 39K | 39K |
| Benchmark | Prompt Format |
|---|---|
| IFEval | {prompt}\nPlease directly give the correct answer: |
| ARC-C | Question: {question}\nA. {textA}\nB. {textB}\nC. {textC}\nD. {textD}\nDirectly give me the correct answer option, and then explain: |
| Hellaswag | {ctx}\nQuestion: Which ending makes the most sense?\nDirectly give me the correct choice, you can further explain it or not.\nA. {A}\nB. {B}\nC. {C}\nD. {D}\nYou may choose from 'A', 'B', 'C', 'D'.\nAnswer: |
| BBH | Follow the given examples and answer the question.\n{_hint}\nQ: {input}\nA: Let's think step by step. |
| DROP | You will be asked to read a passage and answer a question. Some examples of passages and Q&A are provided below.\n{drop_examples}\n\n# Your Task\n---\n{prompt}\nThink step by step, then write a line of the form "Answer: $ANSWER" at the end of your response. |
| MMLU | {_hint}\nQuestion: {input}\nA. {A}\nB. {B}\nC. {C}\nD. {D}\n\nFor simple problems:\nDirectly provide the answer with minimal explanation.\n\nFor complex problems:\nUse this step-by-step format:\n## Step 1: [Concise description]\n[Brief explanation]\n## Step 2: [Concise description]\n[Brief explanation]\n\nRegardless of the approach, always conclude with:\nThe answer is [the_answer_letter].\nwhere the [the_answer_letter] is one of A, B, C or D.\n\nLet's think step by step. |
| GSM8K | {question}\nPlease reason step by step, and put your final answer within \boxed{}. |
| MATH | {problem}\nPlease reason step by step, and put your final answer within \boxed{}. |
phi-4.InfiFusion performs best when used with prompts in the following chat-style format:1<|im_start|>system<|im_sep|>
2You are a medieval knight and must provide explanations to modern people.<|im_end|>
3<|im_start|>user<|im_sep|>
4How should I explain the Internet?<|im_end|>
5<|im_start|>assistant<|im_sep|>transformers1import transformers
2
3pipeline = transformers.pipeline(
4 "text-generation",
5 model="InfiFusion", # replace with actual model path
6 model_kwargs={"torch_dtype": "auto"},
7 device_map="auto",
8)
9
10messages = [
11 {"role": "system", "content": "You are a medieval knight and must provide explanations to modern people."},
12 {"role": "user", "content": "How should I explain the Internet?"},
13]
14
15outputs = pipeline(messages, max_new_tokens=1024)
16print(outputs[0]["generated_text"][-1])📌 Note: Since InfiFusion usesphi-4as its pivot model during fusion, it inherits many of its usage patterns and prompt compatibility features.

InfiFusion may exhibit behaviors that raise concerns around fairness, safety, and reliability. While our fusion framework enhances reasoning and relational inference, the foundation models it integrates—including the pivot model phi-4—carry inherited limitations. Users should be aware of the following considerations:InfiFusion may exhibit complex or emergent behaviors not present in any single model. This makes interpretability and debugging more challenging, especially in high-risk applications.InfiFusion may produce convincing yet factually incorrect or outdated content. Developers should not rely on model output as a source of truth and are encouraged to integrate verification mechanisms such as Retrieval-Augmented Generation (RAG).InfiFusion includes training on code-related datasets, it may still produce invalid, unsafe, or incomplete code snippets. Outputs involving unfamiliar libraries or languages should be carefully reviewed before use.InfiFusion are encouraged to:1@article{yan2025infifusion,
2 title={InfiFusion: A Unified Framework for Enhanced Cross-Model Reasoning via LLM Fusion},
3 author={Zhaoyi Yan, Yiming Zhang, Baoyi He, Yuhao Fu, Qi Zhou, Zhijie Sang, Chunlin Ji, Shengyu Zhang, Fei Wu, Hongxia Yang},
4 journal={arXiv preprint arXiv:2501.02795},
5 year={2025}
6}