CoolFace
Modelpublic

rogersam/tinyllama-instruct-lite-v1

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes8downloads
Model Card

TinyLlama Instruct Lite v1

๐Ÿ“Œ Model Summary

rogersam/tinyllama-instruct-lite-v1 is a LoRA fine-tuned TinyLlama model using Unsloth. It is designed for instruction-following tasks in English + Tamil, such as:

  • โ€”General Q&A
  • โ€”Summarization
  • โ€”Basic math & reasoning
  • โ€”English โ†” Tamil translation

This project demonstrates how a lightweight 1B model can be adapted for multiple domains with limited resources.


๐Ÿ”Ž Model Details

  • โ€”Developed by: Roger Samuel J (Hugging Face Profile)
  • โ€”Model type: Causal LM (decoder-only)
  • โ€”Languages: English, Tamil
  • โ€”License: Same as base model (TinyLlama)
  • โ€”Fine-tuned from: unsloth/tinyllama-bnb-4bit
  • โ€”Method: LoRA via PEFT + Unsloth

๐Ÿ“‚ Model Sources


๐Ÿ’ก Uses

Direct Use

  • โ€”Running lightweight instruction tasks on CPU/GPU
  • โ€”Translating English โ†” Tamil sentences
  • โ€”Answering short questions and reasoning queries
  • โ€”Summarizing small texts

Out-of-Scope

  • โ€”Sensitive decision-making (finance, healthcare, law)
  • โ€”Long context generation (>512 tokens)
  • โ€”Production-grade chatbots

โš ๏ธ Bias, Risks & Limitations

  • โ€”Small dataset โ†’ may hallucinate facts
  • โ€”Not aligned for safety or toxicity filtering
  • โ€”Limited Tamil coverage (basic sentences only)

Recommendation: Use for demo & educational purposes only.


๐Ÿš€ How to Get Started

python
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline

model_id = "rogersam/tinyllama-instruct-lite-v1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)

prompt = "Translate English to Tamil: How are you?"
print(pipe(prompt, max_new_tokens=50)[0]["generated_text"])