Downloads · 30 days
15
6% of all-time downloads
grevinden/Qwen3-Embedding-4B-TQ4_1S-GGUF
Qwen3-Embedding-4B-TQ4_1S-GGUF is a machine learning model from grevinden. 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.
- Original model: Qwen/Qwen3-Embedding-4B - Quantization: TQ41S (TurboQuant, ~5.0 bpw, WHT-rotated) - Size: ~2.5 GB (from 7.5 GB f16) - GGUF backend: llama.cpp TQP v0.2.0 (TurboQuant Plus)
Downloads · 30 days
15
6% of all-time downloads
All-time downloads
264
Public
Repo size
2.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.6 GB · 100%
From the Hugging Face model README
Качество сопоставимо с Q8_0 при вдвое меньшем размере. Сделано через TurboQuant Plus.
llama-server --embedding -m Qwen3-Embedding-4B-TQ4_1S.gguf -ngl 99
Создать /usr/share/localai/models/qwen3-embedding.yaml:
name: qwen3-embedding
backend: llama-cpp
files:
- filename: Qwen3-Embedding-4B-TQ4_1S.gguf
uri: huggingface://grevinden/Qwen3-Embedding-4B-TQ4_1S-GGUF/Qwen3-Embedding-4B-TQ4_1S.gguf
После этого перезапустить LocalAI — модель подтянется автоматически.
curl http://localhost:8080/v1/embeddings \
-H "Content-Type: application/json" \
-d '{
"input": "Hello world",
"model": "qwen3-embedding"
}'
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="grevinden/Qwen3-Embedding-4B-TQ4_1S-GGUF",
filename="Qwen3-Embedding-4B-TQ4_1S.gguf",
embedding=True,
)
embeddings = llm.create_embedding("Hello world")
| Параметр | Значение |
|---|---|
| Hidden size | 2560 |
| Layers | 35 |
| Attention heads | 20 |
| Max tokens | 32768 |
| Embedding dim | 2560 |
| Pooling | cls |
| GGUF type | TQ4_1S (5.15 BPW) |
| Размер файла | ~2.5 GB |