Instructions to use Timegravity/tamil-lm-2b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Timegravity/tamil-lm-2b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Timegravity/tamil-lm-2b-base") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Timegravity/tamil-lm-2b-base") model = AutoModelForMultimodalLM.from_pretrained("Timegravity/tamil-lm-2b-base", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Timegravity/tamil-lm-2b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Timegravity/tamil-lm-2b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Timegravity/tamil-lm-2b-base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Timegravity/tamil-lm-2b-base
- SGLang
How to use Timegravity/tamil-lm-2b-base 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 "Timegravity/tamil-lm-2b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Timegravity/tamil-lm-2b-base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Timegravity/tamil-lm-2b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Timegravity/tamil-lm-2b-base", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Timegravity/tamil-lm-2b-base with Docker Model Runner:
docker model run hf.co/Timegravity/tamil-lm-2b-base
Commit History
18 days ago
-
Model card and records for the 0.1.0-preview release
Verified signature639d953
29 days ago
-
Model card and records for the 0.1.0-preview release
Verified signature26791bc
-
Model card and records for the 0.1.0-preview release
Verified signature121f270 -
Model card and records for the 0.1.0-preview release
Verified signature35aa80a
-
Model card and records for the 0.1.0-preview release
Verified signaturefa26d00 -
Launch 2026-09-14: model card, data card, licences, aggregate results; tools/, gguf/ and item-level records removed
Verified signature85e8bba
-
Upload tools/eval/routing_check.py with huggingface_hub
Verified signature5d27894 -
Upload tools/eval/routing_cases.jsonl with huggingface_hub
Verified signatured23ccfe -
Upload tools/data/index/guard_small.pkl with huggingface_hub
Verified signature591213c -
Upload tools/data/lexicon.salt with huggingface_hub
Verified signatureedb1bdb -
Upload tools/data/lexicon.severity with huggingface_hub
Verified signature418d7b4 -
Upload tools/data/lexicon.hashed with huggingface_hub
Verified signatured78b14c -
Upload tools/guard_v3.py with huggingface_hub
Verified signature8ca8159 -
Upload tools/family_safe_match.py with huggingface_hub
Verified signaturebaee266 -
Upload tools/family_safe.py with huggingface_hub
Verified signature1fd55b7 -
Upload gguf/tamil-lm-2b-base-bf16.gguf with huggingface_hub
Verified signature21fec0f -
Upload gguf/tamil-lm-2b-base-Q8_0.gguf with huggingface_hub
Verified signatureeb750f8 -
Upload gguf/tamil-lm-2b-base-Q4_K_M.gguf with huggingface_hub
Verified signaturea5935ff -
Upload tools/ROUND3.md with huggingface_hub
Verified signature5d601c4 -
Upload tools/docs/qwen3guard_eval.md with huggingface_hub
Verified signature33a618d -
Upload tools/data/facts/helplines.md with huggingface_hub
Verified signaturecb81e5a -
Upload tools/ui/test_transliterate.js with huggingface_hub
Verified signature7673c95 -
Upload tools/ui/README.md with huggingface_hub
Verified signaturef2d96e3 -
Upload tools/ui/transliterate.js with huggingface_hub
Verified signatureac08b4b -
Upload tools/retrieval/config.yaml with huggingface_hub
Verified signaturec613123 -
Upload tools/retrieval/facts.py with huggingface_hub
Verified signature7297f20 -
Upload tools/retrieval/kb.py with huggingface_hub
Verified signature5f9cdf2 -
Upload tools/retrieval/text.py with huggingface_hub
Verified signature0e1d268 -
Upload tools/retrieval/bm25.py with huggingface_hub
Verified signature9c4c45f -
Upload tools/retrieval/__init__.py with huggingface_hub
Verified signature850b02b -
Upload tools/chat_server.py with huggingface_hub
Verified signature04b059a -
Upload tools/guard_small.py with huggingface_hub
Verified signature0092008 -
Upload tools/guard.py with huggingface_hub
Verified signature71ed485 -
Upload tools/serve.py with huggingface_hub
Verified signature8e1f87a -
Upload eval_results/redteam_sft_final_v2e_guarded.json with huggingface_hub
Verified signature10ecceb -
Upload eval_results/political_safety_sft_r1b.json with huggingface_hub
Verified signatureb86321d -
Upload eval_results/cpt_final_test.json with huggingface_hub
Verified signatureb1df177 -
Upload eval_results/benign_sweep_sft_final_v2.json with huggingface_hub
Verified signaturea7c5821 -
Upload eval_results/redteam_child_sft_final_v2.json with huggingface_hub
Verified signature944b89c -
Upload eval_results/cpt_r1_dev.json with huggingface_hub
Verified signature4d7134f -
Upload eval_results/redteam_sft_r1b.json with huggingface_hub
Verified signaturec1021a6 -
Upload eval_results/cpt_b_dev.json with huggingface_hub
Verified signature63d1eb4 -
Upload eval_results/political_safety_sft_r2_serve_v4.json with huggingface_hub
Verified signature562f4c4 -
Upload eval_results/redteam_child_sft_final_v2d.json with huggingface_hub
Verified signaturef63a14e -
Upload eval_results/base.json with huggingface_hub
Verified signature42f2055 -
Upload eval_results/sft_r1_dev.json with huggingface_hub
Verified signaturebe21023 -
Upload eval_results/political_safety_sft_final_bare.json with huggingface_hub
Verified signaturee26685b -
Upload eval_results/redteam_sft_final_guarded.json with huggingface_hub
Verified signaturef15a280 -
Upload eval_results/base_test.json with huggingface_hub
Verified signaturef033932 -
Upload eval_results/redteam_sft_r2.json with huggingface_hub
Verified signaturec397500