Image-Text-to-Text
Transformers
Safetensors
qwen3_5
commato
frm-labs
qwen3.5
abliterated
lora
conversational
Run this model with HF Jobs
Run FRM-Labs/Commato on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/FRM-Labs/Commato. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/FRM-Labs/Commato on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/FRM-Labs/Commato. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/FRM-Labs/Commato. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use FRM-Labs/Commato with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FRM-Labs/Commato with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FRM-Labs/Commato") 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("FRM-Labs/Commato") model = AutoModelForMultimodalLM.from_pretrained("FRM-Labs/Commato", 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 FRM-Labs/Commato with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FRM-Labs/Commato" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FRM-Labs/Commato", "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/FRM-Labs/Commato
- SGLang
How to use FRM-Labs/Commato 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 "FRM-Labs/Commato" \ --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": "FRM-Labs/Commato", "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 "FRM-Labs/Commato" \ --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": "FRM-Labs/Commato", "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 FRM-Labs/Commato with Docker Model Runner:
docker model run hf.co/FRM-Labs/Commato
Shorten model card
Browse files3 unmodified lines456787891013111516171213141516222324252627282917183119202122232425383940262728294445464748303132505133343536555657585960616263646566676869707172737475767737387980818283394041428788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214343444546474814514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119249501945152196533 unmodified linesbase_model_relation: finetunelibrary_name: transformerspipeline_tag: image-text-to-textlanguage: - entags: - commato - frm-labs - qwen3.5 - lora - abliterated - uncensored - conversational - image-text-to-text - lora---
# Commato 2B
**Commato** is a 2B vision-language assistant by **FRM Labs**, built on[Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B): a refusal-ablated base with a LoRAidentity fine-tune merged in. It answers as Commato, keeps replies short and direct, anddoes not lecture or refuse.
> ⚠️ **Uncensored model.** The refusal directions were removed from the base before> fine-tuning. There is no safety alignment and no moderation. Commato can produce> offensive, wrong, or unsafe text. Read [Safety](#safety-and-responsible-use) first.Commato is a 2B assistant by **FRM Labs**, fine-tuned from [Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B). Refusal-ablated, identity-trained, English.
## Quick start## Use
```pythonimport torchfrom transformers import AutoProcessor, AutoModelForImageTextToText
repo = "FRM-Labs/Commato"model = AutoModelForImageTextToText.from_pretrained( repo, dtype=torch.bfloat16, device_map="auto")model = AutoModelForImageTextToText.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")processor = AutoProcessor.from_pretrained(repo)
messages = [{"role": "user", "content": [{"type": "text", "text": "Who are you?"}]}]inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt",).to(model.device)
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt").to(model.device)with torch.inference_mode(): out = model.generate(**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.9)
out = model.generate(**inputs, max_new_tokens=128, temperature=0.7, top_p=0.9)print(processor.batch_decode(out[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0])```
Images use the same call with a second content part:
```pythonmessages = [{"role": "user", "content": [ {"type": "image"}, {"type": "text", "text": "What's in this picture?"},]}]# pass images=[pil_image] to apply_chat_template```
**Sampling:** `temperature=0.7`, `top_p=0.9`. Lower makes the identity answers repetitive;higher makes it drift off-character.
### llama.cpp / GGUF
The repo also ships `commato-2b-f16.gguf` (F16, ~3.5 GB):
```bashllama-server -m commato-2b-f16.gguf --host 127.0.0.1 --port 8080 \ -ngl 99 -c 8192 --temp 0.7 --reasoning-budget 0```
Shrink it for small machines:Sampling: `temperature=0.7`, `top_p=0.9`. Images: add an `{"type": "image"}` content part and pass `images=[pil_image]`.
```bashllama-quantize commato-2b-f16.gguf commato-2b-q4_k_m.gguf Q4_K_M```
## Model details## Details
| | ||---|---|| Base | [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B) (Apache 2.0) || Parameters | ≈ 2.2 B (tied embeddings) || Text stack | 24 layers, hidden 2048, head_dim 256, vocab 248,320, linear attention with a full-attention layer every 4th block || Modalities | text, image, video (Qwen3.5 vision encoder) || Precision | bf16 (safetensors, ~4.4 GB) || Context used | up to 8k in llama.cpp configs; trained at 1024 || Language | English || Licence | Apache 2.0 |
## Training
Built from scratch on one local machine — no cloud, no rented cluster.
| Stage | Detail ||---|---|| 1. Ablation | Refusal direction extracted at **layer 10 of 24** from harmful-vs-harmless prompt pairs, then projected out of the output projections (`o_proj`, `down_proj`) of every text layer || 2. LoRA SFT | rank 16, alpha 32, dropout 0.05, on `q/k/v/o_proj` + `gate/up/down_proj` || 3. Optimisation | lr 1e-4 cosine, 25 warmup steps, effective batch 16 (4 × 4 grad-accum), 3 epochs, 294 steps, bf16, max length 1024 || 4. Merge | adapters merged into the ablated base, saved as bf16 safetensors, then converted to F16 GGUF || Loss | train 1.849, eval 1.94 (last-turn-only supervision) |
### Data
1,231 training / 60 validation conversations, fully synthetic, generated by a script:identity and denial questions ("who are you", "are you ChatGPT", "who made you"),creator facts (FRM Labs), short direct answers, and a system prompt baked into part ofthe set. Only the final assistant turn is supervised; prompt tokens are masked.
No user data, no scraped conversations, no scraped websites.
### What was removed
The ablation tool drops the base model's `mtp.*` (multi-token-prediction) tensors — 14weights out of 632. Generation does not use them, but `transformers` prints missing-keywarnings when loading. That is expected, not corruption.
## Evaluation
Only training metrics exist so far. There are **no benchmark numbers** for this release,and none are claimed.
| Metric | Value ||---|---|| Train loss (3 epochs) | 1.849 || Eval loss | 1.94 || Refusal rate | not measured || MMLU-Pro / HellaSwag | not run |
If you benchmark it, publish the numbers — including the bad ones.
## Intended use
- A local, private assistant with a fixed name and a blunt voice.- Chat and image Q&A where you control the deployment.- Research on identity fine-tuning and refusal ablation.
## Out of scope| Base | Qwen3.5-2B (Apache 2.0) || Parameters | 2.2B bf16 || Training | LoRA r16, alpha 32, 7 projections, 3 epochs, 294 steps, lr 1e-4 || Data | 1,231 synthetic identity examples, last assistant turn only || Loss | train 1.849, eval 1.94 |
- Medical, legal, financial, or safety-critical advice.- Public deployment without your own input/output filtering.- Factual lookup — 2B models invent things confidently.- Anything illegal. The model not refusing is not permission.
## Limitations
- **It says it is Commato, made by FRM Labs.** That is a trained identity; its actual base is Qwen3.5-2B, as this card states.- **Small synthetic dataset.** 1.2k examples means the persona can snap back to generic assistant behaviour, repeat stock lines, or leak "Qwen" under long adversarial prompts.- **Abliterated ≠ safe.** Removing the refusal direction also removes some judgement about when a request should be declined.- **2B capability.** Shallow reasoning, weak maths, frequent hallucination, short memory.- **English only.**- **Vision is inherited, not trained.** The fine-tune was text-only, so image behaviour is whatever the base does.
## Safety and responsible use
This model is deliberately unaligned. If you serve it:
1. Put moderation in front of it and behind it.2. Log and rate-limit; assume some outputs will be unacceptable.3. Do not present its output as professional advice.4. Follow the law where you and your users are.5. Keep the `abliterated` and `uncensored` tags on any derivative so people know what they are downloading.
## Licence and attribution
**Apache License 2.0** — see [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE).
- Base model: **Qwen3.5-2B**, © Alibaba Cloud, Apache 2.0.- Ablation, fine-tune, merge: **FRM Labs**, 2026.- Weights were modified; this is not the original Qwen release and is not endorsed by Alibaba Cloud.
## Citation
```bibtex@misc{commato2026, title = {Commato 2B}, author = {{FRM Labs}}, year = {2026}, howpublished = {\url{https://huggingface.co/FRM-Labs/Commato}}, note = {Abliterated Qwen3.5-2B with a LoRA identity fine-tune}}```The ablation dropped 14 `mtp.*` tensors; transformers warns about missing keys on load. Generation is unaffected.
## Contact## License
Open an issue on this repo. Reports of harmful output are welcome and will be documented.Apache 2.0 — see `LICENSE` and `NOTICE`. Based on Qwen3.5-2B, © Alibaba Cloud.README.md+17-160