--- license: apache-2.0 language: - en base_model: - meta-llama/Llama-3.1-8B-Instruct library_name: transformers pipeline_tag: text-generation --- # UltraIF-8B-UltraComposer ## Links 🚀 UltraIF model series and data are available at 🤗 HuggingFace. - 🤖 [UltraComposer](https://huggingface.co/bambisheng/UltraIF-8B-UltraComposer) - 📖 [SFT Data](https://huggingface.co/datasets/kkk-an/UltraIF-sft-175k) and [SFT Model](https://huggingface.co/bambisheng/UltraIF-8B-SFT) - ⚖️ [DPO Data](https://huggingface.co/datasets/kkk-an/UltraIF-dpo-20k) and [DPO Model](https://huggingface.co/bambisheng/UltraIF-8B-DPO) Also check out our 📚 [Paper](https://arxiv.org/abs/2502.04153) and 💻[code](https://github.com/kkk-an/UltraIF) ## Model Description UltraIF-8B-UltraComposer is a specialized composer that can facilitate the synthesis of wild instructions with more complex and diverse constraints, fine-tuned from [Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct). ## Introduction of UltraIF UltraIF first constructs the **UltraComposer** by decomposing user instructions into simplified ones and constraints, along with corresponding evaluation questions. This specialized composer facilitates the synthesis of instructions with more complex and diverse constraints, while the evaluation questions ensure the correctness and reliability of the generated responses. Then, we introduce the **Generate-then-Evaluate** process. This framework first uses UltraComposer to incorporate constraints into instructions and then evaluates the generated responses using corresponding evaluation questions covering various quality levels. ![FramwWork](https://github.com/kkk-an/UltraIF/blob/main/image/ultraif-framework.png?raw=true) ## Usage Format your input as follows: ``` [history]: {your_chat_history} [initial query]: {your_query} ``` And the output will be organized in json format: ```json {"augmented query":.., "question":..} ``` For more details, check out our [official implementation](https://github.com/kkk-an/UltraIF/blob/main/Preprocessing/augment_query.py) for UltraComposer. ## Reference
**📑 If you find our projects helpful to your research, please consider citing:**
``` @article{an2025ultraif, title={UltraIF: Advancing Instruction Following from the Wild}, author={An, Kaikai and Sheng, Li and Cui, Ganqu and Si, Shuzheng and Ding, Ning and Cheng, Yu and Chang, Baobao}, journal={arXiv preprint arXiv:2502.04153}, year={2025} } ```