Downloads Β· 30 days
19
11% of all-time downloads
krishanwalia30/Qwen3-16bit-OpenMathReasoning-Finetuned-Merged
Qwen3-16bit-OpenMathReasoning-Finetuned-Merged is a text generation model from krishanwalia30. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
π Harness the Power of Qwen-3 with Enhanced Reasoning and Chat! π
Downloads Β· 30 days
19
11% of all-time downloads
All-time downloads
176
Public
Parameters
8.2B
32.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin16.4 GB Β· 50%
From the Hugging Face model README
π Harness the Power of Qwen-3 with Enhanced Reasoning and Chat! π
This model is a carefully fine-tuned version of the incredible Qwen-3-8B using cutting-edge techniques with Unsloth and Parameter-Efficient Fine-Tuning (PEFT) via LoRA. It's designed to bring you the best of both worlds: the strong general capabilities of Qwen-3 with a significant boost in logical reasoning and engaging conversational skills.
We've taken the already powerful Qwen-3 and further sculpted it using a blend of the unsloth/OpenMathReasoning-mini (Chain-of-Thought split) for advanced problem-solving and the mlabonne/FineTome-100k dataset to ensure natural and fluent interactions.
π₯ Key Features:
transformers library.π οΈ How to Get Started:
Install the necessary libraries:
pip install transformers accelerate torch
Load and use the model:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "krishanwalia30/Qwen3-16bit-OpenMathReasoning-Finetuned-Merged"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", torch_dtype="torch.float16")
messages = [
{"role": "user", "content": "Explain the Pythagorean theorem in simple terms."},
{"role": "assistant", "content": "Okay, here's a simple explanation:"},
{"role": "user", "content": "Now, solve for the hypotenuse if a=3 and b=4."},
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7, top_p=0.8, top_k=20, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
βοΈ Fine-tuning Details:
per_device_train_batch_size: 2gradient_accumulation_steps: 4learning_rate: 2e-4max_steps: 30adamw_8bitlinearπ Evaluation:
While rigorous quantitative evaluations are ongoing, initial assessments indicate a significant improvement in the model's ability to handle reasoning-based questions while maintaining strong general conversational skills. Further benchmarks and community feedback are welcome!
π¨βπ» Author:
[https://huggingface.co/krishanwalia30]
π Learn More:
For a deeper dive into the fine-tuning process and the rationale behind the choices, check out the article: [https://medium.com/@krishanw30/b1a8f684c3f1].
π Acknowledgements:
A big thank you to the brilliant teams at Qwen, Unsloth AI, and the creators of the OpenMathReasoning-mini and FineTome-100k datasets for making this project possible!
This qwen3 model was trained 2x faster with Unsloth and Huggingface's TRL library.