How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="OnlyTextLLMs/Qwen3.5-4B-OnlyText")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("OnlyTextLLMs/Qwen3.5-4B-OnlyText")
model = AutoModelForCausalLM.from_pretrained("OnlyTextLLMs/Qwen3.5-4B-OnlyText", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Qwen3.5-4B-OnlyText

Text-only causal language model derived from Qwen/Qwen3.5-4B by removing the vision and audio stacks (their towers/embedders and projector weights) and the multimodal special tokens. The text backbone and LM head are preserved, and the MTP draft head is preserved.

Details

  • Base model: Qwen/Qwen3.5-4B
  • Architecture: Qwen3_5ForCausalLM
  • Parameters: 4.33B
  • Layers: 32 · Hidden size: 2560
  • MTP head: preserved
  • Weights: bfloat16

Attribution

This model is a derivative of Qwen/Qwen3.5-4B by the Qwen team, released under the apache-2.0 license. All credit for the underlying weights and capabilities belongs to the original authors; this repository only removes modalities, it does not add new training.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("OnlyTextLLMs/Qwen3.5-4B-OnlyText")
tokenizer = AutoTokenizer.from_pretrained("OnlyTextLLMs/Qwen3.5-4B-OnlyText")
Downloads last month
445
Safetensors
Model size
4B params
Tensor type
BF16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OnlyTextLLMs/Qwen3.5-4B-OnlyText

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(848)
this model