Downloads · 30 days
7
37% of all-time downloads
Abdurrahmanesc/phi-3-mini-4k-instruct-1it
phi-3-mini-4k-instruct-1it is a text generation model from Abdurrahmanesc. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This model is a QLoRA-fine-tuned variant of an open-source lightweight transformer (Phi-style architecture), trained entirely on Google Colab Free Tier using 4-bit quantization + PEFT to minimize compute and memory.
Downloads · 30 days
7
37% of all-time downloads
All-time downloads
19
Public
Repo size
13.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors12.6 MB · 73%
From the Hugging Face model README
This model is a QLoRA-fine-tuned variant of an open-source lightweight transformer (Phi-style architecture), trained entirely on Google Colab Free Tier using 4-bit quantization + PEFT to minimize compute and memory.
The project demonstrates how small LLMs can be efficiently adapted, evaluated, and deployed using a fully reproducible low-compute workflow.
/README.md
/config.json
/tokenizer.json
/adapter_config.json
/adapter_model.bin
/training_logs/
=== METRIC COMPARISON === ROUGE-L: before=0.2726 after=0.2726 BLEU : before=19.9785 after=19.9744 Perplexity: before=23.67 after=3.02
Notebook includes:
Good for:
Not intended for:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "<your-hf-username>/<your-model-repo>"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")
prompt = "Explain QLoRA in one sentence."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=80)
print(tokenizer.decode(output[0], skip_special_tokens=True))
The provided notebook automates:
README.mdTraining workflow:
Runtime on Google Colab Free Tier: ~40–45 minutes.
Follow the base model’s original license (Apache 2.0 / MIT / OpenRAIL / etc.)
Pull requests welcome — avoid adding copyrighted or sensitive data.