Downloads · 30 days
0
Balab2021/qwen-workflow-planner-qwen2p5-lora
qwen-workflow-planner-qwen2p5-lora is a machine learning model from Balab2021. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
🚀 Building Deterministic AI Workflows: Fine-Tuning Qwen 2.5 I’m excited to share my project for the Hugging Face hashtagbuild-small-hackathon! My goal was to explore how we can make agentic task planning more predict…
Downloads · 30 days
0
Access
Public
Updated Jun 16, 2026
Repo size
44.8 MB
Likes
0
Public
Click a slice to open those files.
.json11.4 MB · 75%
From the Hugging Face model README
🚀 Building Deterministic AI Workflows: Fine-Tuning Qwen 2.5 I’m excited to share my project for the Hugging Face hashtag#build-small-hackathon! My goal was to explore how we can make agentic task planning more predictable and repeatable. One of the biggest challenges in agentic workflows is consistency. For this hackathon, I focused on fine-tuning a Qwen 2.5 (0.5B) model to see if it could produce the exact same set of predicted tasks every time it’s asked the same question. Key Project Highlights: Custom Dataset: Built a unique dataset from scratch with 1,000 training rows and 200 test rows. Fine-Tuning: Leveraged Azure Machine Learning and LoRA configuration to train the model efficiently using the SFTTrainer. Deployment: Pushed the final model to the Hugging Face Hub and created a Gradio-based web application to test the planner in real-time. The results are promising! Both local testing and the Hugging Face Space show the model providing consistent, deterministic outputs for task planning. Here is the youtube video: https://www.youtube.com/watch?v=Xfw3L1O0E6Q&feature=youtu.be Check out the project here: 📺 Full Technical Walkthrough: Fine-Tuning Qwen 2.5 for Agentic AI Task Planning 🌐 Live Demo on Hugging Face Spaces: https://huggingface.co/spaces/build-small-hackathon/agentflow It was a fantastic experience learning and contributing to the build-small-hackathon. hashtag#AI hashtag#MachineLearning hashtag#LLM hashtag#FineTuning hashtag#AgenticAI hashtag#HuggingFace hashtag#Qwen2 hashtag#BuildSmallHackathon hashtag#AzureML
This model is a fine-tuned version of Qwen/Qwen2.5-3B-Instruct. It has been trained using TRL.
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="Balab2021/qwen-workflow-planner-qwen2p5-lora", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
This model was trained with SFT.
Cite TRL as:
@software{vonwerra2020trl,
title = {{TRL: Transformers Reinforcement Learning}},
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
license = {Apache-2.0},
url = {https://github.com/huggingface/trl},
year = {2020}
}