Think When Needed (TWN)
Collection
Models and training data for Think When Needed: Adaptive Reasoning-Driven Multimodal Embeddings with a Dual-LoRA Architecture โข 3 items โข Updated
Run zhanglx/TWN-8B 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:
Use HF Jobs to fine-tune https://huggingface.co/zhanglx/TWN-8B. 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.
Use HF Jobs to run batch inference with https://huggingface.co/zhanglx/TWN-8B 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.
How to use zhanglx/TWN-8B with PEFT:
Task type is invalid.
The 8B version of Think When Needed (TWN), a framework for adaptive reasoning-driven multimodal embeddings. TWN introduces a dual-LoRA architecture on top of Qwen3-VL-8B-Instruct with a learned routing gate that adaptively activates chain-of-thought reasoning.
TWN-8B/
reasoning/ # LoRA adapter for CoT generation
adapter_config.json
adapter_model.safetensors
embedding/ # LoRA adapter for embedding extraction
adapter_config.json
adapter_model.safetensors
gate_mlp.pt # Routing gate MLP weights
queries.pt # Learnable query embeddings
@article{zhang2026thinkneeded,
title={Think When Needed: Adaptive Reasoning-Driven Multimodal Embeddings with a Dual-LoRA Architecture},
author={Longxiang Zhang and Weilong Dai and Guanghao Zhang and Hao Jiang and Pipei Huang},
year={2026},
eprint={2605.14448},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2605.14448},
}
Base model
Qwen/Qwen3-VL-8B-Instruct