Image-Text-to-Text
MLX
Safetensors
English
Turkish
qwen3_5
tin
tin-lang
loopl
on-device
agent
tool-calling
code
qwen3.5
4-bit precision
conversational
Instructions to use cagataydev/tin-4b-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use cagataydev/tin-4b-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("cagataydev/tin-4b-4bit") config = load_config("cagataydev/tin-4b-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use cagataydev/tin-4b-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "cagataydev/tin-4b-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "cagataydev/tin-4b-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use cagataydev/tin-4b-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "cagataydev/tin-4b-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default cagataydev/tin-4b-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use cagataydev/tin-4b-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "cagataydev/tin-4b-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "cagataydev/tin-4b-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download scorecard.json from cagataydev/tin-4b-4bit: direct link, hf CLI and curl.
- Browser
- Download file 5.38 kB
-
https://huggingface.co/cagataydev/tin-4b-4bit/resolve/main/scorecard.json
- Command line
-
hf download hf://cagataydev/tin-4b-4bit/scorecard.json
-
curl -L -o scorecard.json https://huggingface.co/cagataydev/tin-4b-4bit/resolve/main/scorecard.json
5.38 kB
| { | |
| "script": "1.3.0", | |
| "base": "cagataydev/loopl-4b", | |
| "root": "Qwen/Qwen3.5-4B", | |
| "family": "qwen3_5", | |
| "think": "qwen3_5", | |
| "dataset": "cagataydev/tin-train", | |
| "revision": "b89e6bb347f960ee285a1fc0c36662bf83a9f769", | |
| "method": "lora", | |
| "epochs": 1.0, | |
| "epochs_mode": "fixed", | |
| "epochs_heuristic": "1\u20132", | |
| "round": 2, | |
| "lineage": [ | |
| "Qwen/Qwen3.5-4B", | |
| "cagataydev/loopl-4b" | |
| ], | |
| "stitched": 0, | |
| "train_conversations": 28439, | |
| "eval_conversations": 760, | |
| "eval_loss_base": 1.0184, | |
| "eval_loss_tuned": 0.4931, | |
| "eval_history": [ | |
| { | |
| "epoch": 1, | |
| "eval_loss": 0.4931 | |
| } | |
| ], | |
| "best_checkpoint": "/tmp/loopl-sft/ckpt/checkpoint-2309", | |
| "best_epoch": 1, | |
| "epochs_trained": 1.0, | |
| "train_loss": 0.5125, | |
| "probed": 36, | |
| "tool_turns": 24, | |
| "tool_name_match": 6, | |
| "tool_call_emitted": 14, | |
| "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 = {\n /// Starting amount in dollars\n principal: float,\n /// Annual interest rate as a percentage\n rate: float,\n /// Number of years to compound\n years: int\n}\n\nfn Goal.finalAmount(g: Goal): float {\n let rate = g.rate / 100.0\n let principal = g.principal\n let years = float(g.years)\n principal * (1.0 + rate).pow(years)\n}\n\nfn Goal.s" | |
| }, | |
| { | |
| "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 Goal.finalAmount(g: Goal): float {\\n let r = g.rate / 100.0\\n let factor = 1.0 + r\\n let growth = factor.pow(float(g.years))\\n g.principal * growth\\n}\\n\\nfn Goal.description(g: Goal): string {\\n \\\"Start: ${g.principal.fixed(2)}\\\"\\n}\\n\\nfn main() {\\n let savings = Goal { pri" | |
| }, | |
| { | |
| "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 book1 = Book { title: \"Dune\", isbn: \"978-0441013879\", year: 1965, available: true }\n let book2 = Book { title: \"Dune\", isbn: \"978-0441013886\", year: 1965, available: true }\n let book3 = Book { title: \"Foundation\", isbn: \"978-0060850524\", 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 book1 = Book { title: \\\"Dune\\\", isbn: \\\"978-0441013879\\\", year: 1965, available: true }\\n let book2 = Book { title: \\\"Dune\\\", isbn: \\\"978-0441013886\\\", year: 1965, available: false }\\n let book3 = Book { title: \\\"Foundation\\\", isbn: \\\"978-006085052" | |
| }, | |
| { | |
| "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 = { pH: float, time: int }\n\nfn filterReadings(readings: Reading[]): Reading[] {\n var filtered: Reading[] = []\n for r in readings {\n if r.pH >= 6.5 && r.pH <= 7.5 {\n filtered.push(r)\n }\n }\n filtered\n}\n\nfn main() {\n let meter = [\n Reading { pH: 6.8, time: 0 },\n Reading { pH: 7.2, time: 10 },\n Reading { pH: 5.9, t" | |
| }, | |
| { | |
| "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 = { pH: float, time: int }\\n\\nfn filterReadings(readings: Reading[]): Reading[] {\\n var filtered: Reading[] = []\\n for r in readings {\\n if r.pH >= 6.5 && r.pH <= 7.5 {\\n filtered.push(r)\\n }\\n }\\n filtered\\n}\\n\\nfn main() {\\n let meter = [\\n Reading { pH: 6.8, time: 0 },\\n Reading { pH: 5.2, time: 10 },\\n " | |
| } | |
| ], | |
| "tool_name_match_rate": 0.25 | |
| } |