Instructions to use rogersam/tinyllama-instruct-lite-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use rogersam/tinyllama-instruct-lite-v1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/tinyllama-bnb-4bit") model = PeftModel.from_pretrained(base_model, "rogersam/tinyllama-instruct-lite-v1") - Transformers
How to use rogersam/tinyllama-instruct-lite-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rogersam/tinyllama-instruct-lite-v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rogersam/tinyllama-instruct-lite-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rogersam/tinyllama-instruct-lite-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rogersam/tinyllama-instruct-lite-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rogersam/tinyllama-instruct-lite-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rogersam/tinyllama-instruct-lite-v1
- SGLang
How to use rogersam/tinyllama-instruct-lite-v1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "rogersam/tinyllama-instruct-lite-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rogersam/tinyllama-instruct-lite-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "rogersam/tinyllama-instruct-lite-v1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rogersam/tinyllama-instruct-lite-v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use rogersam/tinyllama-instruct-lite-v1 with Docker Model Runner:
docker model run hf.co/rogersam/tinyllama-instruct-lite-v1
Commit History
-
Update README.md
Verified signatureb4ce18e -
demo-model-creation
Verified signatureTinyLlama Instruction Fine-Tuned (Tamil + English) — v1 📌 Model Summary This is a fine-tuned version of TinyLlama using the Unsloth framework. The model is trained on a small multi-task dataset covering: ✅ General Q&A ✅ English ↔ Tamil translation ✅ Summarization ✅ Math word problems ✅ Logical reasoning The goal of this project is to demonstrate how a compact model like TinyLlama can be quickly fine-tuned for instruction following tasks, while staying lightweight enough for local or demo use. 👉Intended Use: As a demo for instruction-tuned small LLMs. For experimenting with multi-task fine-tuning. For Tamil + English language learning tasks. ⚠️ Not intended for production use — this is an educational / experimental fine-tune with a very small dataset. 📊 Training Details Base model: TinyLlama Framework: Unsloth Quantization: 4-bit (bitsandbytes) Fine-tuning method: LoRA (Low-Rank Adaptation) Max sequence length: 512 Dataset size: ~10 handcrafted examples (Q&A, tr…b0704e1 -
initial commit
Verified signature0ebfdc0