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
loopl v1.2-c β promoted from cagataydev/loopl-2b-v1.2-c @ 0837df9f (DATASET v2.2 rev 47d27b44: tool-trajectory family t over all 30 app tools β mount/wake/tap/pressure, render_ui, ask_user, system_prompt β on top of v2.1's identity/bio families); the previous version is the preceding commit
3ba0bf5 verified Download train_summary.json from cagataydev/loopl-2b: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/cagataydev/loopl-2b/resolve/main/train_summary.json
- Command line
-
hf download hf://cagataydev/loopl-2b/train_summary.json
-
curl -L -o train_summary.json https://huggingface.co/cagataydev/loopl-2b/resolve/main/train_summary.json
1.46 kB
| { | |
| "base": "Qwen/Qwen3.5-2B", | |
| "dataset": "cagataydev/loopl-train", | |
| "dataset_revision": "47d27b4415f8f9e35d352fdfecc02f551103366a", | |
| "split": "train", | |
| "families": null, | |
| "format": "both", | |
| "rows": 13704, | |
| "tokens": 37226229, | |
| "max_length": 4096, | |
| "lora": null, | |
| "epochs": 2.0, | |
| "max_steps": -1, | |
| "lr": 1.5e-05, | |
| "batch": 2, | |
| "grad_accum": 8, | |
| "oversample": "c=2", | |
| "best_checkpoint": "/tmp/loopl-sft/ckpt/checkpoint-857", | |
| "best_eval_loss": 1.6541149616241455, | |
| "eval_history": [ | |
| { | |
| "eval_loss": 1.6541149616241455, | |
| "epoch": 1.0 | |
| }, | |
| { | |
| "eval_loss": 1.7137993574142456, | |
| "epoch": 2.0 | |
| }, | |
| { | |
| "eval_loss": 1.6541149616241455, | |
| "epoch": 2.0 | |
| } | |
| ], | |
| "metrics": { | |
| "train_runtime": 12636.3554, | |
| "train_samples_per_second": 2.169, | |
| "train_steps_per_second": 0.136, | |
| "total_flos": 9.425559306021765e+17, | |
| "train_loss": 1.0968182736544794, | |
| "epoch": 2.0, | |
| "eval_loss": 1.6541149616241455, | |
| "eval_runtime": 151.4762, | |
| "eval_samples_per_second": 9.124, | |
| "eval_steps_per_second": 1.142, | |
| "eval_entropy": 1.548327516613668, | |
| "eval_num_tokens": 74452458.0, | |
| "eval_mean_token_accuracy": 0.6377897055851931 | |
| }, | |
| "data_stats": { | |
| "read": 8676, | |
| "rendered": 13704, | |
| "no_assistant": 1802, | |
| "render_error": 0, | |
| "truncated_hint": 1000, | |
| "tools_injected": 2778 | |
| }, | |
| "wall_s": 13010, | |
| "versions": { | |
| "transformers": "5.19.0", | |
| "trl": "1.14.2", | |
| "peft": "0.21.2", | |
| "torch": "2.14.1+cu130" | |
| }, | |
| "job_id": "6ac5e6ec404719ba37665446" | |
| } |