Image-Text-to-Text
Transformers
Safetensors
English
Turkish
qwen3_5
tin
tin-lang
loopl
on-device
agent
tool-calling
code
qwen3.5
sft
conversational
Instructions to use cagataydev/tin-0.8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cagataydev/tin-0.8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cagataydev/tin-0.8b") 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("cagataydev/tin-0.8b") model = AutoModelForMultimodalLM.from_pretrained("cagataydev/tin-0.8b", 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 cagataydev/tin-0.8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cagataydev/tin-0.8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cagataydev/tin-0.8b", "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/cagataydev/tin-0.8b
- SGLang
How to use cagataydev/tin-0.8b 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 "cagataydev/tin-0.8b" \ --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": "cagataydev/tin-0.8b", "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 "cagataydev/tin-0.8b" \ --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": "cagataydev/tin-0.8b", "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 cagataydev/tin-0.8b with Docker Model Runner:
docker model run hf.co/cagataydev/tin-0.8b
Download train_summary.json from cagataydev/tin-0.8b: direct link, hf CLI and curl.
- Browser
- Download file 7.15 kB
-
https://huggingface.co/cagataydev/tin-0.8b/resolve/main/train_summary.json
- Command line
-
hf download hf://cagataydev/tin-0.8b/train_summary.json
-
curl -L -o train_summary.json https://huggingface.co/cagataydev/tin-0.8b/resolve/main/train_summary.json
7.15 kB
| { | |
| "base": "cagataydev/loopl-0.8b", | |
| "root": "Qwen/Qwen3.5-0.8B", | |
| "family": "qwen3_5", | |
| "think": "qwen3_5", | |
| "round": 2, | |
| "lineage": [ | |
| "Qwen/Qwen3.5-0.8B", | |
| "cagataydev/loopl-0.8b" | |
| ], | |
| "dataset": "cagataydev/tin-train", | |
| "method": "full", | |
| "lr": 2e-05, | |
| "epochs": 1.0, | |
| "epochs_mode": "fixed", | |
| "epochs_trained": 1.0, | |
| "replay": true, | |
| "replay_from": null, | |
| "stitch": { | |
| "mode": "none", | |
| "stitched": 0 | |
| }, | |
| "rows": 36944, | |
| "tokens": 63481590, | |
| "max_length": 8192, | |
| "batch": 2, | |
| "grad_accum": 8, | |
| "lora": null, | |
| "data": { | |
| "files": [ | |
| "train.jsonl", | |
| "eval.jsonl" | |
| ], | |
| "revision": "b89e6bb347f960ee285a1fc0c36662bf83a9f769", | |
| "read": 29612, | |
| "invalid": 0, | |
| "duplicates": 413, | |
| "denylisted": 0, | |
| "pii_scrubbed": 0, | |
| "skipped_files": [], | |
| "train": 28439, | |
| "eval": 760, | |
| "source": "cagataydev/tin-train@b89e6bb347f960ee285a1fc0c36662bf83a9f769" | |
| }, | |
| "render": { | |
| "rendered": 36944, | |
| "no_assistant": 0, | |
| "render_error": 0, | |
| "truncated": 13, | |
| "with_tools": 8505 | |
| }, | |
| "metrics": { | |
| "train_runtime": 6189.1885, | |
| "train_samples_per_second": 5.969, | |
| "train_steps_per_second": 0.373, | |
| "total_flos": 3.524448415985503e+17, | |
| "train_loss": 0.6075215140376168, | |
| "epoch": 1.0, | |
| "eval_loss": 0.5982078909873962, | |
| "eval_model_preparation_time": 0.0061, | |
| "eval_runtime": 28.5617, | |
| "eval_samples_per_second": 33.226, | |
| "eval_steps_per_second": 16.631, | |
| "eval_entropy": 0.5798069679319221, | |
| "eval_mean_token_accuracy": 0.8538900231060229, | |
| "eval_num_tokens": 63481590.0 | |
| }, | |
| "scorecard": { | |
| "script": "1.3.0", | |
| "base": "cagataydev/loopl-0.8b", | |
| "root": "Qwen/Qwen3.5-0.8B", | |
| "family": "qwen3_5", | |
| "think": "qwen3_5", | |
| "dataset": "cagataydev/tin-train", | |
| "revision": "b89e6bb347f960ee285a1fc0c36662bf83a9f769", | |
| "method": "full", | |
| "epochs": 1.0, | |
| "epochs_mode": "fixed", | |
| "epochs_heuristic": "1\u20132", | |
| "round": 2, | |
| "lineage": [ | |
| "Qwen/Qwen3.5-0.8B", | |
| "cagataydev/loopl-0.8b" | |
| ], | |
| "stitched": 0, | |
| "train_conversations": 28439, | |
| "eval_conversations": 760, | |
| "eval_loss_base": 1.0663, | |
| "eval_loss_tuned": 0.5982, | |
| "eval_history": [ | |
| { | |
| "epoch": 1, | |
| "eval_loss": 0.5982 | |
| } | |
| ], | |
| "best_checkpoint": "/tmp/loopl-sft/ckpt/checkpoint-2309", | |
| "best_epoch": 1, | |
| "epochs_trained": 1.0, | |
| "train_loss": 0.6075, | |
| "probed": 36, | |
| "tool_turns": 24, | |
| "tool_name_match": 6, | |
| "tool_call_emitted": 16, | |
| "prose_turns": 12, | |
| "prose_kept_prose": 12, | |
| "malformed_calls": 0, | |
| "examples": [ | |
| { | |
| "dialect": "native", | |
| "user": "Write a Tin program that calculates compound interest for a savings goal. Define a Goal type with principal, rate (as percentage), and years. Show the final amount formatted to two decimals.\n\nCheck it", | |
| "gold_tools": [ | |
| "tin_run" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Goal = { principal: float, rate: float, years: int }\n\nfn compoundInterest(goal: Goal): float =>\n goal.principal * (1.0 + goal.rate / 100.0).pow(float(goal.years))\n\nfn main() {\n let goal = Goal { principal: 10000.0, rate: 5.0, years: 10 }\n print(\"Goal: ${goal.principal} at {goal.rate}% for {goal.years} years\")\n print(\"Final amount: ${compou" | |
| }, | |
| { | |
| "dialect": "loopl", | |
| "user": "Write a Tin program that calculates compound interest for a savings goal. Define a Goal type with principal, rate (as percentage), and years. Show the final amount formatted to two decimals.\n\nCheck it", | |
| "gold_tools": [ | |
| "tin_run" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Goal = { principal: float, rate: float, years: int }\\n\\nfn compoundInterest(goal: Goal): float {\\n var amount = goal.principal\\n for _ in 0..goal.years {\\n amount = amount * (1.0 + goal.rate / 100.0)\\n }\\n amount\\n}\\n\\nfn main() {\\n let goal = Goal { principal: 1000.0, rate: 5.0, years: 10 }\\n print(\\\"Goal: ${goal.principal} at " | |
| }, | |
| { | |
| "dialect": "native", | |
| "user": "Write a Tin program that models a library book with title, ISBN, year published, and whether it's available. Create three books and use `==` to check if two of them are identical (they should have dif", | |
| "gold_tools": [ | |
| "tin_check" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Book = { title: string, isbn: string, year: int, available: bool }\n\nfn main() {\n let books = [\n Book { title: \"Dune\", isbn: \"978-0-49-000000\", year: 1945, available: false },\n Book { title: \"Dune\", isbn: \"978-0-49-000001\", year: 1945, available: true },\n Book { title: \"Dune\", isbn: \"978-0-49-000002\", year: " | |
| }, | |
| { | |
| "dialect": "loopl", | |
| "user": "Write a Tin program that models a library book with title, ISBN, year published, and whether it's available. Create three books and use `==` to check if two of them are identical (they should have dif", | |
| "gold_tools": [ | |
| "tin_check" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Book = { title: string, isbn: string, year: int, available: bool }\\n\\nfn main() {\\n let books = [\\n Book { title: \\\"Dune\\\", isbn: \\\"978-0-49-000000\\\", year: 1945, available: false },\\n Book { title: \\\"Dune\\\", isbn: \\\"978-0-49-000001\\\", year: 1945, available: true },\\n Book { title: \\\"Dune\\\", isbn: \\\"978-0-49-000002\\\"," | |
| }, | |
| { | |
| "dialect": "native", | |
| "user": "How do I model a pH meter in Tin that takes readings? Each reading has a pH value and a timestamp in seconds. Write a function that receives a meter's readings array and returns a copy with only readi", | |
| "gold_tools": [ | |
| "tin_check" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n<function=tin_run>\n<parameter=source>\ntype Reading = { value: float, timestamp: int }\n\nfn filterReadings(readings: Reading[], minPH: float, maxPH: float): Reading[] {\n var filtered: Reading[] = []\n for r in readings {\n if r.timestamp > 0 && r.value >= minPH && r.value <= maxPH {\n filtered.push(r)\n }\n }\n filtered\n}\n\nfn main() {\n let readings = [\n Reading { value: 7.2," | |
| }, | |
| { | |
| "dialect": "loopl", | |
| "user": "How do I model a pH meter in Tin that takes readings? Each reading has a pH value and a timestamp in seconds. Write a function that receives a meter's readings array and returns a copy with only readi", | |
| "gold_tools": [ | |
| "tin_check" | |
| ], | |
| "gold": "", | |
| "generated": "<tool_call>\n{\"name\": \"tin_run\", \"arguments\": {\"source\":\"type Reading = { value: float, timestamp: int }\\n\\nfn filterReadings(readings: Reading[], minPH: float, maxPH: float): Reading[] {\\n var filtered: Reading[] = []\\n for r in readings {\\n if r.timestamp > 0 && r.value >= minPH && r.value <= maxPH {\\n filtered.push(r)\\n }\\n }\\n filtered\\n}\\n\\nfn main() {\\n let readings = [\\n R" | |
| } | |
| ], | |
| "tool_name_match_rate": 0.25 | |
| }, | |
| "wall_s": 6799, | |
| "versions": { | |
| "transformers": "5.23.0", | |
| "trl": "1.18.1", | |
| "peft": "0.21.3", | |
| "torch": "2.15.0+cu132" | |
| }, | |
| "job_id": "6afd8f5129e8b7ccfbbb8495", | |
| "script": "1.3.0" | |
| } |