---
title: Qwen3-Embedding-4B-4bit-DWQ
canonical_url: "https://www.modelscope.cn/models/mlx-community/Qwen3-Embedding-4B-4bit-DWQ"
md_url: "https://www.modelscope.cn/models/mlx-community/Qwen3-Embedding-4B-4bit-DWQ.md"
repository: mlx-community/Qwen3-Embedding-4B-4bit-DWQ
last_updated: 2025-06-08
license: apache-2.0
pipeline_tag: feature-extraction
tasks:
  - feature-extraction
model_type:
  - qwen3
architectures:
  - Qwen3ForCausalLM
base_model:
  - Qwen/Qwen3-Embedding-4B
base_model_relation: quantized
parameters: 628.6M
tensor_type:
  - BF16
  - U32
library_name:
  - sentence-transformers
  - mlx
  - safetensors
  - pytorch
frameworks:
  - pytorch
inference_backends:
  - "deploy_task text/emb"
  - "lmdeploy_turbomind 0.9.1"
  - "sglang 0.5.2"
  - "vllm 0.9.2"
downloads: 1645
stars: 0
tags:
  - transformers
  - sentence-transformers
  - sentence-similarity
  - feature-extraction
  - mlx
---

# Qwen3-Embedding-4B-4bit-DWQ

> Qwen3-Embedding-4B-4bit-DWQ - mlx-community 在 ModelScope 开源的模型。mlx-community/Qwen3-Embedding-4B-4bit-DWQ

mlx-community/Qwen3-Embedding-4B-4bit-DWQ 是 ModelScope 魔搭社区上的 628.6M 参数feature-extraction模型，采用 apache-2.0 许可，基于 Qwen/Qwen3-Embedding-4B 构建，可用 deploy_task text/emb、lmdeploy_turbomind 0.9.1、sglang 0.5.2 部署。

- **Repository**: mlx-community/Qwen3-Embedding-4B-4bit-DWQ
- **License**: apache-2.0
- **Tasks**: feature-extraction
- **Parameters**: 628.6M
- **Base model**: Qwen/Qwen3-Embedding-4B
- **Inference backends**: deploy_task text/emb, lmdeploy_turbomind 0.9.1, sglang 0.5.2, vllm 0.9.2
- **Tags**: transformers, sentence-transformers, sentence-similarity, feature-extraction, mlx
- **Downloads**: 1645
- **Stars**: 0
- **Last updated**: 2025-06-08

Source: https://www.modelscope.cn/models/mlx-community/Qwen3-Embedding-4B-4bit-DWQ

---

# mlx-community/Qwen3-Embedding-4B-4bit-DWQ

This model [mlx-community/Qwen3-Embedding-4B-4bit-DWQ](https://huggingface.co/mlx-community/Qwen3-Embedding-4B-4bit-DWQ) was
converted to MLX format from [Qwen/Qwen3-Embedding-4B](https://huggingface.co/Qwen/Qwen3-Embedding-4B)
using mlx-lm version **0.24.0**.

## Use with mlx

```bash
pip install mlx-lm
```

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen3-Embedding-4B-4bit-DWQ")

prompt = "hello"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
```
