Downloads · 30 days
39
28% of all-time downloads
krishanwalia30/granite-4.0-h-micro_FineTome-100k_FINETUNED-16Bit
granite-4.0-h-micro_FineTome-100k_FINETUNED-16Bit 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.
This model is a fine-tuned version of unsloth/granite-4.0-h-micro, optimized using the mlabonne/FineTome-100k dataset. It leverages IBM’s Granite 4.0 foundation model, enhanced through instruction fine-tuning to impro…
Downloads · 30 days
39
28% of all-time downloads
All-time downloads
137
Public
Parameters
3.2B
6.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of unsloth/granite-4.0-h-micro, optimized using the mlabonne/FineTome-100k dataset.
It leverages IBM’s Granite 4.0 foundation model, enhanced through instruction fine-tuning to improve performance on reasoning, conversational coherence, and instruction-following tasks.
unsloth/granite-4.0-h-micromlabonne/FineTome-100k| Parameter | Value |
|---|---|
| Framework | Unsloth |
| Training method | Supervised Fine-Tuning (SFT) |
| Optimizer | AdamW |
| Epochs | 1–3 (depending on convergence) |
| Learning rate | 2e-5 |
| Batch size | 4 (gradient accumulation used) |
| Hardware | A100 / T4 GPU |
| Mixed precision | bf16 |
| Evaluation | Perplexity and instruction accuracy |
The fine-tuning was performed using Unsloth for efficient low-rank adaptation (LoRA) and memory optimization, making training faster and cheaper without compromising model performance.
This fine-tuned Granite 4.0 variant is capable of:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "krishanwalia30/granite-4.0-finetome-finetuned" # Replace with your HF repo ID
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
prompt = "Explain why transformers are used in modern NLP."
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=250, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
While detailed benchmarks are in progress, preliminary results show improvements in:
Fine-tuned by: Krishan Walia
AI/ML Engineer | Researcher | Writer on Medium
This granitemoehybrid model was trained 2x faster with Unsloth and Huggingface's TRL library.