Downloads · 30 days
65
9% of all-time downloads
HasinduNimesh/qwen3b-finetuned
qwen3b-finetuned is a machine learning model from HasinduNimesh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a fine-tuned version of Qwen2.5-3B-Instruct using Unsloth. The model is optimized for multi-hop reasoning, scientific Q&A, and retrieval-augmented generation (RAG) with FAISS and BM25 retrieval.
Downloads · 30 days
65
9% of all-time downloads
All-time downloads
730
Public
Repo size
20.5 GB
Likes
0
Public
Click a slice to open those files.
.gguf8.1 GB · 57%
From the Hugging Face model README
This repository contains a fine-tuned version of Qwen2.5-3B-Instruct using Unsloth. The model is optimized for multi-hop reasoning, scientific Q&A, and retrieval-augmented generation (RAG) with FAISS and BM25 retrieval.
LoRA Fine-Tuning: PEFT with Unsloth
Hyperparameters:
r=16, lora_alpha=16, lora_dropout=0gradient_accumulation_steps=4max_seq_length=2048learning_rate=2e-4max_steps=200optimizer=adamw_8bitRL Fine-Tuning (ORPO): Used for improving reasoning performance
pytorch_model-00001-of-00002.bin - Model weightspytorch_model-00002-of-00002.binpytorch_model.bin.index.json - Index of model checkpointsconfig.json - Model configurationtokenizer.json - Tokenizer configurationtokenizer_config.jsonmerges.txt - BPE merge rulesvocab.json - Token vocabularyspecial_tokens_map.jsongeneration_config.json - Default generation settingsunsloth.Q4_K_M.gguf - Quantized 4-bit version for Llama-CPPunsloth.F16.gguf - 16-bit version for full precision inferencefrom transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "HasinduNimesh/qwen3b-finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
input_text = "Why is it necessary to filter out chain-of-thought outputs with mixed languages, long paragraphs, and code blocks?"
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_length=256)
print(tokenizer.decode(output[0], skip_special_tokens=True))
from llama_cpp import Llama
llm = Llama(model_path="unsloth.Q4_K_M.gguf", n_ctx=2048)
prompt = "Summarize the latest research on AI safety."
output = llm(prompt, max_tokens=200)
print(output["choices"][0]["text"])
This model is available under the Apache 2.0 License. Please follow Hugging Face’s guidelines for responsible AI usage.
📢 For issues or improvements, please open a discussion on Hugging Face! 🚀