Views
No views yet
llama-server --embedding -m Qwen3-Embedding-4B-TQ4_1S.gguf -ngl 99/usr/share/localai/models/qwen3-embedding.yaml:1name: qwen3-embedding
2backend: llama-cpp
3files:
4 - filename: Qwen3-Embedding-4B-TQ4_1S.gguf
5 uri: huggingface://grevinden/Qwen3-Embedding-4B-TQ4_1S-GGUF/Qwen3-Embedding-4B-TQ4_1S.gguf1curl http://localhost:8080/v1/embeddings \
2 -H "Content-Type: application/json" \
3 -d '{
4 "input": "Hello world",
5 "model": "qwen3-embedding"
6 }'1from llama_cpp import Llama
2
3llm = Llama.from_pretrained(
4 repo_id="grevinden/Qwen3-Embedding-4B-TQ4_1S-GGUF",
5 filename="Qwen3-Embedding-4B-TQ4_1S.gguf",
6 embedding=True,
7)
8embeddings = 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 |