Model reference · open weights
UltraX is an open-weight language model from openbmb. UltraX-0.6B-Preview (BF16) weighs 3.6 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the openbmb/UltraX-0.6B-Preview model card, 2026-10-01
What it is
| Released by | openbmb |
|---|---|
| Released | 2026-06-10 |
| VRAM | 3.6 GB for the weights |
What it runs on
How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.
| Card | Weights alone |
|---|---|
| RTX 3060 12 GB | fits |
| RTX 4060 Ti 16 GB | fits |
| RTX 3090 24 GB | fits |
| RTX 4090 24 GB | fits |
| RTX 5090 32 GB | fits |
| L40S 48 GB | fits |
| A100 80 GB | fits |
| H100 80 GB | fits |
| RTX PRO 6000 Blackwell 96 GB | fits |
| DGX Spark (GB10) 128 GB unified | fits |
| H200 141 GB | fits |
| B200 180 GB | fits |
From the model card
English |
UltraX is a function-calling refinement framework for large-scale pre-training data. Instead of end-to-end text rewriting, UltraX trains a lightweight refinement model to predict structured editing operations — including insertion, deletion, and modification — which are then deterministically executed on the original text.
This repository provides the UltraX refinement models, which are trained via full-parameter SFT to predict cleaning function calls for web-crawled text:
| Model | Description |
|---|---|
| UltraX | Default model: instruction-guided with edit-weighted sampling (main experiment) |
| UltraX-No-Instruction | Ablation variant: trained without system instruction |
| UltraX-Preservation-Weighted | Ablation variant: trained with preservation-weighted sampling (60% keep_all) |
keep_all, remove_all, remove_lines, replace_str, add_line), enabling fine-grained instance-level editing with deterministic execution.replace_str operations with unique context anchoring.All models are trained with the following configuration:
| Setting | Value |
|---|---|
| Training Framework | ms-swift with DeepSpeed ZeRO3 |
| Training Type | Full-parameter SFT |
| Max Sequence Length | 20,480 tokens |
| Learning Rate | 3e-5 (cosine decay, min lr 3e-6) |
| Warmup Ratio | 0.03 |
| Precision | bfloat16 |
| Hardware | 8x GPU |
UltraX (Instruction-Guided, Edit-Weighted): The default configuration. The model is trained with a system instruction that defines the editing operations and cleaning rules, using edit-weighted sampling.
UltraX-No-Instruction: Trained without system instruction. Demonstrates that programmatic refinement brings clear gains even without explicit task protocol (Avg: 45.73 vs Raw 45.08), though instruction guidance further improves performance (Avg: 46.14).
UltraX-Preservation-Weighted: Trained with preservation-weighted sampling where keep_all accounts for 60% of training data. Shows stronger performance on certain tasks (ARC-C, ARC-E, OBQA, SciQ), demonstrating the trade-off between editing aggressiveness and content preservation.
Performance comparison on FineWeb (20B tokens, 1B MiniCPM, 10 benchmarks, zero-shot):
The model predicts operations from the following function space:
| Function | Description |
|---|---|
keep_all() | Document needs no modification |
remove_all() | Entire document is valueless (e.g., error pages, login walls) |
remove_lines(start, end) | Remove consecutive lines from start to end (inclusive) |
replace_str(line, old, new) | Replace a substring within a specific line |
add_line(base, sub_idx, content) | Insert a new line near the base position |
Input: Text with line number markers (`` prefix per line), preceded by a system instruction.
Output: A sequence of function calls, one per line. Example:
remove_lines(1, 3)
replace_str(5, 'Click here to subscribe', '')
remove_lines(12, 15)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("openbmb/UltraX-0.6B-Preview")
tokenizer = AutoTokenizer.from_pretrained("openbmb/UltraX-0.6B-Preview")
Thanks for their awesome work! Open-source contributions make UltraX possible! 🙌
If you find our work useful, please consider citing:
@misc{ultrax2026,
title={UltraX: Refining Pre-Training Data at Scale with Adaptive Programmatic Editing},
author={Xinlong Zhao and Dongsheng Liu and Hengyu Zhao and Zixuan Fu and Zheng Wang and Jie Cai and Jie Zhou and Qiang Ma and Xuanhe Zhou and Xu Han and Yudong Wang and Zhiyuan Liu},
year={2026},
eprint={2607.08646},
archivePrefix={arXiv},
primaryClass={cs.CL},
}
This project is licensed under the Apache 2.0 license.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works