Downloads · 30 days
20
1% of all-time downloads
alexchen4ai/Qwen3-8B-Instruct
Qwen3-8B-Instruct is a text generation model from alexchen4ai. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model is the language model component extracted from Qwen/Qwen3-VL-8B-Instruct, a vision-language model.
Downloads · 30 days
20
1% of all-time downloads
All-time downloads
2K
Public
Parameters
8.2B
16.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This model is the language model component extracted from Qwen/Qwen3-VL-8B-Instruct, a vision-language model.
The vision components have been removed, leaving only the pure text-generation LLM, which can be used independently for text-only tasks.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "alexchen4ai/Qwen3-8B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What is the capital of France?"}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = tokenizer([text], return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model was extracted from Qwen3-VL-8B-Instruct by:
model.language_model.* weightsmodel.*)lm_head for token predictionmodel.visual.*)This extracted model is suitable for:
If you use this model, please cite the original Qwen3-VL work:
@article{qwen3vl,
title={Qwen3-VL: Towards Versatile Vision-Language Understanding},
author={Qwen Team},
year={2024}
}