Downloads · 30 days
11
7% of all-time downloads
JusteLeo/Qwen3-0.6B-T5-xxl
Qwen3-0.6B-T5-xxl is a machine learning model from JusteLeo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains a fine-tuned version of Qwen/Qwen3-Embedding-0.6B. The model has been specifically trained to replicate the embedding outputs of the much larger google/t5-v11-xxl model.
Downloads · 30 days
11
7% of all-time downloads
All-time downloads
153
Public
Parameters
606M
1.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
How the weights are stored.
BF16596M · 98%
From the Hugging Face model README
This repository contains a fine-tuned version of Qwen/Qwen3-Embedding-0.6B. The model has been specifically trained to replicate the embedding outputs of the much larger google/t5-v1_1-xxl model.
The primary goal of this project is to provide a lightweight, high-performance model that produces embeddings semantically compatible with T5-xxl, but with a significantly smaller footprint and faster inference speed. The final output dimension is 4096.
This model is provided in bfloat16 format for optimized storage and usage.
This model can be used directly with the Hugging Face transformers library. Since it includes a custom architecture, you must use the trust_remote_code=True flag when loading.
from transformers import AutoTokenizer, AutoModel
import torch
# Define the model repository ID
model_id = "JusteLeo/Qwen3-0.6B-T5-xxl"
# Load the tokenizer and model
# trust_remote_code=True is required to load the custom projection head
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id, trust_remote_code=True)
# Move model to a device (e.g., GPU)
device = "cuda"
model.to(device)
model.eval()
# Create embeddings
prompts = [
"A photorealistic portrait of a medieval knight in shiny armor.",
"A futuristic cityscape at night, with flying cars and neon lights."
]
# Tokenize the prompts
inputs = tokenizer(prompts, padding=True, truncation=True, return_tensors="pt").to(device)
# Generate the embeddings
with torch.no_grad():
embeddings = model(**inputs)
print("Embeddings generated successfully!")
print(f"Output shape: {embeddings.shape}")
# Expected output shape: (2, 4096)
Qwen/Qwen3-Embedding-0.6Bgoogle/t5-v1_1-xxlJusteLeo/t5-xxl-embeddingThis repository is licensed under the Apache license 2.0.