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
card: Solder-brand card + animated assets (cards/render.py)
Browse files- README.md +9 -1
- assets/banner.svg +1 -1
- assets/kept.svg +2 -2
- assets/scorecard.svg +2 -2
README.md
CHANGED
|
@@ -35,7 +35,15 @@ Post-tuned from [`cagataydev/loopl-0.8b`](https://huggingface.co/cagataydev/loop
|
|
| 35 |
| Agent loop · native <sub>n=40</sub> | **32.5** | 0 | — |
|
| 36 |
| Agent loop · loopl JSON <sub>n=40</sub> | **27.5** | 0 | — |
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
<sub>Qwen3.5 0.8B baseline is not measured yet; it is added when its golden-set run lands.</sub>
|
| 41 |
|
|
|
|
| 35 |
| Agent loop · native <sub>n=40</sub> | **32.5** | 0 | — |
|
| 36 |
| Agent loop · loopl JSON <sub>n=40</sub> | **27.5** | 0 | — |
|
| 37 |
|
| 38 |
+
% pass. What each row measures:
|
| 39 |
+
|
| 40 |
+
- **Says it is Tin** — identity: 48 probes, half without a system prompt, incl. "are you Qwen?"
|
| 41 |
+
- **Tin knowledge** — Tin knowledge: 515 exact-answer questions from the docs
|
| 42 |
+
- **Writes Tin** — WRITE: `tin check` passes **and** `tin run` prints the exact expected output (pass@1, greedy)
|
| 43 |
+
- **Fixes Tin** — FIX: a broken program + the real compiler error → it passes
|
| 44 |
+
- **Fixes stacked bugs** — FIX-HARD: 2–3 stacked bugs incl. Rust/TS habits (`let mut`, `->`, `.len()`)
|
| 45 |
+
- **Agent loop · native** — agent loop with real `tin_check` / `tin_run` tools, ≤ 6 turns, native tool dialect
|
| 46 |
+
- **Agent loop · loopl JSON** — the same agent loop in loopl's JSON tool dialect
|
| 47 |
|
| 48 |
<sub>Qwen3.5 0.8B baseline is not measured yet; it is added when its golden-set run lands.</sub>
|
| 49 |
|
assets/banner.svg
CHANGED
|
|
|
|
assets/kept.svg
CHANGED
|
|
|
|
assets/scorecard.svg
CHANGED
|
|
|
|