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

pipe = pipeline("image-text-to-text", model="IAAR-Shanghai/Metis-9B", trust_remote_code=True)
messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"},
            {"type": "text", "text": "What animal is on the candy?"}
        ]
    },
]
pipe(text=messages)
# Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("IAAR-Shanghai/Metis-9B", trust_remote_code=True, device_map="auto")
Quick Links

Metis-9B

Metis-9B is a Metis persistent-memory model built on Qwen/Qwen3.5-9B. The repository contains the complete merged model weights rather than a delta-only checkpoint.

Paper

This model is introduced in:

Metis: Memory Foundation Model

Load

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "IAAR-Shanghai/Metis-9B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype=torch.bfloat16,
    device_map="auto",
)

Metis uses custom Transformers code included in this repository. Use Transformers 5.4.0 or newer.

Downloads last month
62
Safetensors
Model size
9B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for IAAR-Shanghai/Metis-9B

Finetuned
Qwen/Qwen3.5-9B
Finetuned
(549)
this model

Collection including IAAR-Shanghai/Metis-9B

Paper for IAAR-Shanghai/Metis-9B