Image-Text-to-Text
Transformers
Safetensors
English
Turkish
qwen3_5
loopl
on-device
agent
tool-calling
qwen3.5
sft
vision
conversational
Instructions to use cagataydev/loopl-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cagataydev/loopl-2b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cagataydev/loopl-2b") 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/loopl-2b") model = AutoModelForMultimodalLM.from_pretrained("cagataydev/loopl-2b", 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/loopl-2b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cagataydev/loopl-2b" # 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/loopl-2b", "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/loopl-2b
- SGLang
How to use cagataydev/loopl-2b 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/loopl-2b" \ --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/loopl-2b", "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/loopl-2b" \ --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/loopl-2b", "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/loopl-2b with Docker Model Runner:
docker model run hf.co/cagataydev/loopl-2b
card: loopl 2B v1.2 (bf16) — train/cards.py
Browse files
README.md
CHANGED
|
@@ -24,9 +24,9 @@ tags:
|
|
| 24 |
<a href="https://loopl.dev"><img src="https://huggingface.co/cagataydev/loopl-2b/resolve/main/assets/banner.png" alt="loopl — Agents that run on your phone." width="100%"></a>
|
| 25 |
</p>
|
| 26 |
|
| 27 |
-
<div align="center" style="display:flex;flex-wrap:wrap;gap:6px;justify-content:center"><a href="https://huggingface.co/cagataydev/loopl-2b/blob/main/README.md#license"><img alt="license: Apache 2.0" src="https://img.shields.io/badge/license-Apache%202.0-5d5d63?style=flat-square&labelColor=0b0b0c"></a> <img alt="bf16: transformers · 4.43 GB" src="https://img.shields.io/badge/bf16-transformers%20%C2%B7%204.43%20GB-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="vision: ✓ 297 tensors kept" src="https://img.shields.io/badge/vision-%E2%9C%93%20297%20tensors%20kept-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="tool calling: native + loopl JSON" src="https://img.shields.io/badge/tool%20calling-native%20%2B%20loopl%20JSON-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="params: 2B" src="https://img.shields.io/badge/params-2B-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="version: v1" src="https://img.shields.io/badge/version-v1-5d5d63?style=flat-square&labelColor=0b0b0c"> <a href="https://testflight.apple.com/join/uUNjfzW9"><img alt="Get it on: TestFlight" src="https://img.shields.io/badge/Get%20it%20on-TestFlight-ff5a1f?style=flat-square&labelColor=0b0b0c&logo=apple&logoColor=white"></a> <a href="https://loopl.dev"><img alt="site: loopl.dev" src="https://img.shields.io/badge/site-loopl.dev-c2410c?style=flat-square&labelColor=0b0b0c"></a> <a href="https://huggingface.co/collections/cagataydev/loopl-on-device-agents-swift-6ac51395b13a9c41d4932eaf"><img alt="collection: 6 models" src="https://img.shields.io/badge/collection-6%20models-c2410c?style=flat-square&labelColor=0b0b0c"></a></div>
|
| 28 |
|
| 29 |
-
# loopl 2B · v1
|
| 30 |
|
| 31 |
**An agent that lives on your phone.** loopl runs the model, the loop and the tools on the device. It talks, uses the
|
| 32 |
phone, asks before it acts — and works with the network off. This repo is the merged bf16 weights — **the base for *Train your own*** — of the
|
|
@@ -52,10 +52,10 @@ phone, asks before it acts — and works with the network off. This repo is the
|
|
| 52 |
|
| 53 |
| probe | this model | previous (v1) | base Qwen3.5 4-bit |
|
| 54 |
|---|---:|---:|---:|
|
| 55 |
-
| agent-SDK knowledge quiz (first 472 questions, exact-answer) | **99** |
|
| 56 |
-
| tool calls, native template dialect | **9/9** |
|
| 57 |
-
| tool calls, loopl JSON dialect | **9/9** |
|
| 58 |
-
| identity (5 classic probes, with system prompt) | **5/5** |
|
| 59 |
| identity · bio facts (8, with system prompt) | **8/8** | — | — |
|
| 60 |
| identity · **no system prompt** (13) | **12/13** | — | — |
|
| 61 |
|
|
|
|
| 24 |
<a href="https://loopl.dev"><img src="https://huggingface.co/cagataydev/loopl-2b/resolve/main/assets/banner.png" alt="loopl — Agents that run on your phone." width="100%"></a>
|
| 25 |
</p>
|
| 26 |
|
| 27 |
+
<div align="center" style="display:flex;flex-wrap:wrap;gap:6px;justify-content:center"><a href="https://huggingface.co/cagataydev/loopl-2b/blob/main/README.md#license"><img alt="license: Apache 2.0" src="https://img.shields.io/badge/license-Apache%202.0-5d5d63?style=flat-square&labelColor=0b0b0c"></a> <img alt="bf16: transformers · 4.43 GB" src="https://img.shields.io/badge/bf16-transformers%20%C2%B7%204.43%20GB-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="vision: ✓ 297 tensors kept" src="https://img.shields.io/badge/vision-%E2%9C%93%20297%20tensors%20kept-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="tool calling: native + loopl JSON" src="https://img.shields.io/badge/tool%20calling-native%20%2B%20loopl%20JSON-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="params: 2B" src="https://img.shields.io/badge/params-2B-5d5d63?style=flat-square&labelColor=0b0b0c"> <img alt="version: v1.2" src="https://img.shields.io/badge/version-v1.2-5d5d63?style=flat-square&labelColor=0b0b0c"> <a href="https://testflight.apple.com/join/uUNjfzW9"><img alt="Get it on: TestFlight" src="https://img.shields.io/badge/Get%20it%20on-TestFlight-ff5a1f?style=flat-square&labelColor=0b0b0c&logo=apple&logoColor=white"></a> <a href="https://loopl.dev"><img alt="site: loopl.dev" src="https://img.shields.io/badge/site-loopl.dev-c2410c?style=flat-square&labelColor=0b0b0c"></a> <a href="https://huggingface.co/collections/cagataydev/loopl-on-device-agents-swift-6ac51395b13a9c41d4932eaf"><img alt="collection: 6 models" src="https://img.shields.io/badge/collection-6%20models-c2410c?style=flat-square&labelColor=0b0b0c"></a></div>
|
| 28 |
|
| 29 |
+
# loopl 2B · v1.2
|
| 30 |
|
| 31 |
**An agent that lives on your phone.** loopl runs the model, the loop and the tools on the device. It talks, uses the
|
| 32 |
phone, asks before it acts — and works with the network off. This repo is the merged bf16 weights — **the base for *Train your own*** — of the
|
|
|
|
| 52 |
|
| 53 |
| probe | this model | previous (v1) | base Qwen3.5 4-bit |
|
| 54 |
|---|---:|---:|---:|
|
| 55 |
+
| agent-SDK knowledge quiz (first 472 questions, exact-answer) | **99** | 88 | 56 |
|
| 56 |
+
| tool calls, native template dialect | **9/9** | 9/9 | 7/9 |
|
| 57 |
+
| tool calls, loopl JSON dialect | **9/9** | 8/9 | 5/9 |
|
| 58 |
+
| identity (5 classic probes, with system prompt) | **5/5** | 4/5 | 4/5 |
|
| 59 |
| identity · bio facts (8, with system prompt) | **8/8** | — | — |
|
| 60 |
| identity · **no system prompt** (13) | **12/13** | — | — |
|
| 61 |
|