SuperAPI AI Directory

YuLan-Mini

YuLan-Mini is an open-source lightweight language model with 2.4 billion parameters, developed by the AI Box team at Renmin University of China. The model is pretrained on only 1.08T tokens, yet it achieves performance comparable to industry-leading models trained on significantly more data in the fields of mathematics and code. It is a pretrained base model without instruction-following capability, primarily used for text generation. The model improves training efficiency through a carefully designed data pipeline, systematic optimization methods, and an effective annealing approach. Related pretraining resources (including datasets, intermediate checkpoints, etc.) have been open-sourced to promote research transparency and reproducibility. The usage policy for model weights, intermediate optimizer states, and training data will be announced in the future. The code is licensed under the MIT License.

Open website

About this tool

YuLan-Mini is a lightweight language model with a parameter scale of 2.4 billion, developed and maintained by the AI Box team at Renmin University of China. Released on Hugging Face, it is a pretrained base model without instruction-following capability, primarily used for text generation tasks.

Main capabilities: YuLan-Mini is pretrained on only 1.08T tokens, yet achieves performance comparable to industry-leading models trained on significantly more data, particularly excelling in the fields of mathematics and code. According to self-reported evaluation results, its pass@1 on HumanEval is 0.640, pass@1 on MBPP is 0.659, maj@1 on MATH-500 is 0.378, and maj@1 on GSM8K is 0.684.

Usage: Users can download the model files from Hugging Face and perform inference according to the provided examples. Official Hugging Face inference examples, vLLM Serve examples, and SGLang Serve examples are provided. In addition, the model supports running on the Llama architecture because the reparameterized added parameters and scaling factors have been merged into the final released models (YuLan-Mini and YuLan-Mini-Intermediate-4K), but the intermediate checkpoints still retain these parameters.

Applicable scenarios: The model is suitable for a variety of research and development scenarios. Users can use it to pretrain their own LLMs, leveraging its data and curriculum to train equally powerful models; perform learning rate annealing by resuming training from the pre-annealing checkpoint and using their own datasets; fine-tune an instruction version; use it for training dynamics research, leveraging intermediate checkpoints to explore internal changes during pretraining; and use its data pipeline to synthesize their own data.

Limitations: Although the team has made efforts to mitigate safety concerns and encourages the generation of ethical and legal text, the probabilistic nature of language models may still lead to unexpected outputs, such as containing bias, discrimination, or other harmful content. Please avoid disseminating such content; the team is not responsible for the consequences caused by the dissemination of harmful information. The usage policy for model weights, intermediate optimizer states, and training data will be announced in future updates. The code is licensed under the MIT License. Pretraining and evaluation code will be released in future updates.