Instructions to use InfiX-ai/InfiX-V1-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InfiX-ai/InfiX-V1-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="InfiX-ai/InfiX-V1-base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("InfiX-ai/InfiX-V1-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use InfiX-ai/InfiX-V1-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InfiX-ai/InfiX-V1-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InfiX-ai/InfiX-V1-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/InfiX-ai/InfiX-V1-base
- SGLang
How to use InfiX-ai/InfiX-V1-base with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "InfiX-ai/InfiX-V1-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InfiX-ai/InfiX-V1-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "InfiX-ai/InfiX-V1-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InfiX-ai/InfiX-V1-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use InfiX-ai/InfiX-V1-base with Docker Model Runner:
docker model run hf.co/InfiX-ai/InfiX-V1-base
InfiX-V1-base
Introduction
InfiX-V1-base is the pre-trained base model of InfiX-V1, a Mixture-of-Experts (MoE) language model with 209B total parameters and 14B activated per token, pre-trained on 13.36T tokens. It is intended for continued pre-training, domain adaptation, and post-training research.
InfiX-V1 is trained under PACE (Progressive Adaptive Cognitive Expansion), a training paradigm built on three co-designed pillars:
- InfiGrow (progressive model growth). Pre-training starts from a smaller model rather than at the final size. When its gains slow, the model is grown in width (more experts) or depth (more layers) and training continues from the grown model. InfiX-V1-base is the result of four growth steps, which lowers the compute, memory, and communication cost compared with training at full size throughout.
- InfiCoScale (data–model co-scaling). The training data changes with each growth step. A width growth adds broader, knowledge-rich long-tail data; a depth growth adds more complex math and code.
- InfiEPFlow (communication-aware expert-parallel load balancing). An online load balancer keeps computation strictly balanced in every micro-batch while reducing the communication of token dispatching, cutting communication traffic by 30–50% and improving training efficiency by over 8% compared with force balancing.
Under matched compute, InfiX-V1-base delivers roughly 8× the intelligence per compute of the next most efficient model we compare against, and matches or outperforms base models several times its size.
Left: average score of each base model in four domains. Right: average base-model score versus pre-training compute.
Highlights
Architecture & Training
- Progressive growth (InfiGrow). The model is grown four times during pre-training: activated experts increased, layers stacked, routed experts expanded by duplicating hot experts with noise, and activated experts increased once more. Each growth step starts from a converged smaller model rather than from scratch, which is where the compute saving comes from. A single depth growth alone reaches the same loss with about 20% less compute than training at fixed size.
Hybrid attention with learnable sinks. 42 layers arranged as 10 hybrid blocks, each three sliding-window attention (SWA) layers followed by one full attention (FA) layer, with a 512-token window. Every layer carries a learnable attention sink, which keeps the first tokens reachable after they fall out of the window and stabilizes training. SWA layers are given more heads and a larger head dimension than FA layers — this is what closes the gap to a full-attention baseline at a small cost.
Fine-grained sparse MoE. 288 routed experts with 13 activated per token plus 1 shared expert, with the first layer dense. Load balance uses the auxiliary-loss-free bias strategy with a small sequence-wise balance loss.
DFlash2 speculative decoding. A 5-layer drafter produces a block of 7 draft tokens in a single forward pass, which the backbone then verifies in parallel.
Efficient training infrastructure. InfiEPFlow, an online expert-parallel load balancer that optimizes computation and communication jointly rather than forcing compute balance alone, gives an 8% throughput gain over force balancing.
Data (InfiCoScale)
Diverse, high-quality corpus. 13.36T tokens of rigorously filtered and deduplicated data in Chinese and English, covering web, code, mathematics, and books & academic papers. Mid-training adds knowledge-dense rewritten data, agentic software-engineering data, and long-context data.
Data grows with the model. Sources are binned by quality and complexity. A width growth brings in more long-tail, knowledge-rich data to support expert specialization; a depth growth brings in more complex mathematics and code to train multi-step reasoning. Later stages favor higher-quality bins, and each transition is interpolated rather than applied as a hard switch.
Evaluation
All models are evaluated in our internal framework under a unified configuration, with base checkpoints decoded greedily. Best score in each row in bold, second best underlined. Parameter counts exclude embeddings and the MTP module.
| Benchmark | InfiX-V1 209.6B / A14.4B | DeepSeek V4-Flash 283.3B / A12.7B | DeepSeek V4-Pro 1571.2B / A47.9B | MiMo V2.5 308.5B / A15.2B | Hy3 preview 294B / A19.7B | Ling-3.1 Flash 560B / A25B | Mistral Large-3 674.1B / A40.6B | Step-3.5 Flash 195.9B / A10.9B |
|---|---|---|---|---|---|---|---|---|
| Language & Reasoning | ||||||||
| BBH | 88.07 | 88.73 | 90.25 | 89.94 | 88.36 | 89.79 | 88.88 | 87.91 |
| HellaSwag | 86.53 | 84.66 | 87.18 | 85.38 | 85.53 | 82.71 | 84.91 | 88.62 |
| WinoGrande | 79.01 | 79.72 | 81.77 | 78.93 | 78.85 | 73.24 | 65.51 | 67.88 |
| DROP | 83.50 | 84.90 | 84.94 | 83.76 | 82.49 | 85.74 | 82.69 | 80.68 |
| SQuAD | 82.41 | 76.56 | 80.40 | 74.02 | 74.25 | 85.66 | 75.05 | 75.48 |
| C3 | 97.20 | 97.69 | 98.23 | 97.02 | 97.56 | 70.76 | 97.74 | 97.15 |
| Knowledge | ||||||||
| MMLU-Redux | 91.13 | 91.67 | 93.00 | 90.88 | 90.44 | 92.51 | 91.32 | 90.46 |
| MMLU-Pro | 69.37 | 65.98 | 67.92 | 66.45 | 70.92 | 73.54 | 68.09 | 61.68 |
| GPQA-Diamond | 60.61 | 56.57 | 64.14 | 67.68 | 60.10 | 63.57 | 59.09 | 54.04 |
| SuperGPQA | 43.69 | 43.00 | 44.09 | 40.02 | 43.00 | 45.30 | 43.97 | 39.83 |
| TriviaQA | 84.48 | 86.60 | 89.03 | 84.55 | 85.81 | 86.15 | 72.48 | 85.50 |
| ARC-Challenge | 95.65 | 95.99 | 97.01 | 96.59 | 96.42 | 97.87 | 97.44 | 95.39 |
| AGIEval† | 83.32 | 83.57 | 84.50 | 78.49 | 81.20 | 83.26 | 75.69 | 77.68 |
| C-Eval | 93.31 | 92.05 | 92.87 | 87.59 | 90.86 | 88.56 | 88.41 | 89.38 |
| CMMLU | 91.21 | 90.51 | 91.17 | 87.64 | 90.01 | 80.06 | 86.84 | 89.57 |
| Math | ||||||||
| GSM8K | 96.29 | 95.68 | 96.13 | 95.15 | 96.29 | 96.29 | 95.83 | 95.07 |
| MATH | 64.10 | 62.02 | 68.16 | 63.62 | 65.80 | 74.80 | 61.94 | 62.74 |
| Ape210K | 83.84 | 81.78 | 80.82 | 75.92 | 83.60 | 81.76 | 73.34 | 80.58 |
| Math23K | 95.20 | 95.10 | 94.50 | 91.50 | 94.20 | 95.70 | 87.70 | 87.30 |
| Code | ||||||||
| CRUXEval‡ | 80.07 | 77.62 | 78.19 | 78.06 | 80.25 | 89.57 | 72.50 | 71.06 |
| HumanEval+ | 84.76 | 84.15 | 82.32 | 87.20 | 83.54 | 89.63 | 81.10 | 82.32 |
| MBPP+ | 77.78 | 77.78 | 77.51 | 75.93 | 74.87 | 78.57 | 76.19 | 74.60 |
| LiveCodeBench | 41.98 | 31.30 | 36.64 | 31.30 | 32.82 | 40.46 | 25.19 | 33.59 |
| Average | 80.59 | 79.29 | 80.90 | 78.59 | 79.44 | 80.24 | 76.17 | 76.89 |
† AGIEval is the average of its English and Chinese subsets. ‡ CRUXEval is the average of CRUXEval-I and CRUXEval-O.
Model Overview
| Property | Value |
|---|---|
| Model Type | Base checkpoint (pre-trained, no instruction tuning) |
| Architecture | Sparse MoE with hybrid sliding-window / full attention, built through InfiGrow |
| Total Parameters | 209B |
| Active Parameters | 14B |
| Context Window | 256K, extendable to 1M tokens |
| Pre-Training Tokens | 13.36T |
| Speculative Decoding | DFlash2 (block draft decoding) |
| Vocabulary | 129,280 |
| License | MIT |
| Release Date | December 1, 2026 |
Usage
Deployment
We provide a Docker image with SGLang support for InfiX-V1 (infixmodels/sglang). The reference configurations below run on both NVIDIA H800 and B300 (or B-series) GPUs.
1. Prepare Environment
docker pull infixmodels/sglang:infix-v1
Download the weights from Hugging Face, mount them at /model, and start the server inside the container:
2. Start the Server
Choose the configuration that matches your hardware:
H800
Reference configuration for 8 × NVIDIA H800 GPUs (TP=8, EP=8):
sglang server \
--trust-remote-code \
--model-path /model \
--served-model-name infix_v1 \
--tp-size 8 \
--ep-size 8 \
--chunked-prefill-size 49152 \
--moe-runner-backend triton \
--mem-fraction-static 0.85 \
--swa-full-tokens-ratio 0.08 \
--disable-prefill-cuda-graph \
--context-length 262144
B300
Reference configuration for 4 × NVIDIA B300 GPUs (TP=4, EP=4):
sglang server \
--trust-remote-code \
--model-path /model \
--served-model-name infix_v1 \
--tp-size 4 \
--ep-size 4 \
--chunked-prefill-size 49152 \
--moe-runner-backend triton \
--mem-fraction-static 0.85 \
--swa-full-tokens-ratio 0.08 \
--disable-prefill-cuda-graph \
--context-length 262144
Prompting
This is a base model. It has not been instruction-tuned and carries no chat template — applying one will not produce the behavior you expect. Prompt it by continuation instead:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "InfiX-ai/InfiX-V1-base"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", dtype="auto")
prompt = "The capital of France is"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Contact
For questions, feedback, or collaboration, reach us at research@infix.io.
License
This model is released under the MIT License. Commercial use, modification, and redistribution are permitted, provided the license notice is retained.
- Downloads last month
- -
docker model run hf.co/InfiX-ai/InfiX-V1-base