--- title: ThinkMorph-SSL emoji: 🧠 colorFrom: green colorTo: pink sdk: gradio sdk_version: 6.32.0 app_file: app.py python_version: "3.12" short_description: Interleaved text + image reasoning (BAGEL-7B-MoT) startup_duration_timeout: 1h models: - ThinkMorph/ThinkMorph-SSL-Instruct --- # ThinkMorph-SSL Demo of [ThinkMorph-SSL-Instruct](https://huggingface.co/ThinkMorph/ThinkMorph-SSL-Instruct) from *ThinkMorph-SSL: Scaling Interleaved Multimodal Reasoning with Pretext Tasks* ([paper](https://huggingface.co/papers/2611.32183), [code](https://github.com/ThinkMorph/ThinkMorph-SSL)). The model reasons with interleaved text and self-generated images (zoom-ins, depth maps, bird's-eye views, novel views) before answering. Inference follows the authors' evaluation wrapper (`ThinkMorphInterleaved.py`): greedy decoding, action-token image generation with 50 denoising steps, cfg_text 3.0 / cfg_img 1.5, cfg interval [0.4, 1.0], global CFG renorm (min 1.0), timestep shift 3.0, generated images fed back as VAE + ViT context. Model code under `models/` is vendored from the ThinkMorph-SSL repository (Apache-2.0; some DiT-derived utilities are CC BY-NC 4.0, see the repo's THIRD_PARTY_NOTICES.md). Example images are from [linoyts/repo-to-space-example-inputs](https://huggingface.co/datasets/linoyts/repo-to-space-example-inputs) (CC0).