Run Qwen3.5-MoE with Keras 3: JAX, PyTorch, or TensorFlow

GitHub Docs HuggingFace

kerasformers/qwen3.5-35b-a3b-base

Pure-Keras 3 conversion of Qwen/Qwen3.5-35B-A3B-Base for kerasformers. One implementation runs unmodified on TensorFlow / Torch / JAX. Qwen3.5-MoE is a multimodal MoE VLM (Qwen3-Next hybrid text + a vision tower); weights are stored in bfloat16.

For model details, license, and usage terms, see the upstream model card.

✨ Quick start

import os
os.environ["KERAS_BACKEND"] = "torch"  # or "jax" / "tensorflow"

from PIL import Image
from kerasformers.models.qwen3_5_moe import Qwen3_5MoeConditionalGenerate, Qwen3_5MoeProcessor

model = Qwen3_5MoeConditionalGenerate.from_weights("kerasformers/qwen3.5-35b-a3b-base")
processor = Qwen3_5MoeProcessor.from_weights("kerasformers/qwen3.5-35b-a3b-base")

inputs = processor(conversation=[
    {"role": "user", "content": [
        {"type": "image", "image": Image.open("photo.jpg")},
        {"type": "text", "text": "Describe this image in one sentence."},
    ]}
])
outputs = model.generate(**inputs, max_new_tokens=64)
print(processor.decode(outputs[0]))

Special Thanks

A huge thank you to the Qwen team at Alibaba for creating and releasing these models.

License: Apache 2.0.

Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for kerasformers/qwen3.5-35b-a3b-base

Finetuned
(71)
this model

Collection including kerasformers/qwen3.5-35b-a3b-base