Download README.md from MostLime/loopmm-sft-preview: direct link, hf CLI and curl.
- Browser
- Download file 2.92 kB
-
https://huggingface.co/MostLime/loopmm-sft-preview/resolve/main/README.md
- Command line
-
hf download hf://MostLime/loopmm-sft-preview/README.md
-
curl -L -o README.md https://huggingface.co/MostLime/loopmm-sft-preview/resolve/main/README.md
license: cc-by-nc-4.0
language:
- en
pipeline_tag: image-text-to-text
library_name: pytorch
base_model: MostLime/loopmm-base
tags:
- looped
- multimodal
- chat
- reasoning
- onnx
- small-model
- preview
loopmm SFT preview
Preview. This is the supervised fine-tuning (SFT) stage of the loopmm chat model. Two more stages are still running or pending: GRPO (reinforcement learning on math and on checkable instructions) and antidoom (training away repetition loops). Expect more mistakes and more repetition than in the final chat model.
loopmm is a small model that takes images and text as input. It has 189M parameters. Its 12 middle layers run three times for each token. This version answers in a chat. Before each answer, it writes its thinking in a <think> block and decides for itself how long to think.
Try it: the playground Space. Pick "Chat (SFT preview)". It runs in your browser.
It was fine-tuned from MostLime/loopmm-base. The base card covers the architecture, the pretraining data and the evals. loopmm uses the LFM3 layer layout, but it is not a Liquid AI model.
Fine-tuning
- 29,000 conversations (8.5M tokens, 195 steps), written in loopmm's own voice by a teacher model (Qwen3.6-35B-A3B). The prompts come from SmolTalk, Nemotron instruction-following chat, GSM8K, MATH, OpenMathInstruct-2, DOCCI and FineVision (LNQA, TextVQA, CoSyn charts and tables). There are also questions about loopmm itself.
- Every reply starts with a
<think>block. Loss is on the assistant replies only.
Chat format
<|startoftext|><|im_start|>user
{image}{text}<|im_end|>
<|im_start|>assistant
<think>
{thinking}
</think>
{reply}<|im_end|>
An image goes right after user\n. Generation stops at <|im_end|>. Low temperatures (0 to 0.3) and no repetition penalty work best.
How to run
import sys
sys.path.insert(0, "loopmm-sft-preview") # hf download MostLime/loopmm-sft-preview --local-dir loopmm-sft-preview --exclude "onnx/*"
from modeling_loopmm import LoopMM, split_thinking
model, tok = LoopMM.from_pretrained("loopmm-sft-preview")
reply = model.chat(tok, [{"role": "user", "content": "What is in this picture?", "images": ["photo.jpg"]}])
thinking, answer = split_thinking(reply)
Limitations
- It is a 189M model. Its answers often contain wrong facts, and its thinking is often wrong too.
- Its image skills are basic.
- It has had no RL and no safety tuning.
Licenses
- Weights: CC BY-NC 4.0 (non-commercial), as for the base model: some of the pretraining images allow only non-commercial use.
- Model code: Apache 2.0.
- Tokenizer files: Liquid AI's files under the LFM Open License v1.0 (
LICENSE_LFM). - "LFM" and "Liquid" are names of Liquid AI. This model is not made, checked or endorsed by Liquid AI.