Downloads · 30 days
49
26% of all-time downloads
TheKwenFoundation/Kwen-540M
Kwen-540M is a text generation model from TheKwenFoundation. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
Kwen is a high-efficiency, custom-built language model developed by The Kwen Foundation.
Downloads · 30 days
49
26% of all-time downloads
All-time downloads
185
Public
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.1 GB · 100%
From the Hugging Face model README
Kwen is a high-efficiency, custom-built language model developed by The Kwen Foundation.
Kwen is based on the Qwen2.5 architecture but has been modified with a custom 27-layer configuration (scaled up from the original 24). It is designed for high-efficiency performance on consumer-grade hardware, specifically optimized for the RTX 4060 series.
Since this model uses a custom layer count, you must use trust_remote_code=True.
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("TheKwenFoundation/Kwen-540M-v1")
model = AutoModelForCausalLM.from_pretrained(
"TheKwenFoundation/Kwen-540M-v1",
trust_remote_code=True,
device_map="auto"
)