Downloads · 30 days
28
11% of all-time downloads
AXERA-TECH/Qwen3-Embedding-0.6B
Qwen3-Embedding-0.6B is a feature extraction model from AXERA-TECH. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as mit.
This version of Qwen3-Embedding-0.6B has been converted to run on the Axera NPU using w8a16 quantization.
Downloads · 30 days
28
11% of all-time downloads
All-time downloads
247
Public
Repo size
2.7 GB
Likes
1
Public
Click a slice to open those files.
.axmodel954 MB · 38%
From the Hugging Face model README
This version of Qwen3-Embedding-0.6B has been converted to run on the Axera NPU using w8a16 quantization.
This model has been optimized with the following LoRA:
Compatible with Pulsar2 version: 4.1
For those who are interested in model conversion, you can try to export axmodel through the original repo: https://huggingface.co/Qwen/Qwen3-Embedding-0.6B
Pulsar2 Link, How to Convert LLM from Huggingface to axmodel
g1: 5.561 ms
g2: 9.140 ms
g3: 12.757 ms
g4: 16.446 ms
g5: 21.392 ms
g6: 23.712 ms
g7: 27.174 ms
g8: 30.897 ms
g9: 34.829 ms
| Chips | ttft | w8a16 |
|---|---|---|
| AX650 | 155.708 ms (128 token 最短耗时) | 0.82 tokens/sec |
| AX650 | 5093.42 ms (1024 token 最长耗时) | 0.20 tokens/sec |
方式一:克隆仓库后执行安装脚本:
git clone -b axllm https://github.com/AXERA-TECH/ax-llm.git
cd ax-llm
./install.sh
方式二:一行命令安装(默认分支 axllm):
curl -fsSL https://raw.githubusercontent.com/AXERA-TECH/ax-llm/axllm/install.sh | bash
方式三:下载Github Actions CI 导出的可执行程序(适合没有编译环境的用户):
如果没有编译环境,请到:
https://github.com/AXERA-TECH/ax-llm/actions?query=branch%3Aaxllm
下载 最新 CI 导出的可执行程序(axllm),然后:
chmod +x axllm
sudo mv axllm /usr/bin/axllm
先创建模型目录并进入,然后下载到该目录:
mkdir -p AXERA-TECH/Qwen3-Embedding-0.6B
cd AXERA-TECH/Qwen3-Embedding-0.6B
hf download AXERA-TECH/Qwen3-Embedding-0.6B --local-dir .
# structure of the downloaded files
tree -L 1
.
├── README.md
├── config.json
├── model.embed_tokens.weight.bfloat16.bin
├── qwen3_p128_l0_together.axmodel
...
├── qwen3_p128_l27_together.axmodel
├── qwen3_post.axmodel
├── tokenizer.txt
└── python_backup/
1 directory, 33 files
axllm 支持在 serve 模式下加载 Embedding 模型,并提供 OpenAI 兼容的 /v1/embeddings 接口(Embedding 模型不支持 run 交互模式)。
本模型的 config.json 已包含 Embedding 标识:
{
"is_embedding": true
}
axllm serve AXERA-TECH/Qwen3-Embedding-0.6B/ --port 8000
启动后会在终端打印本机可访问的完整 API URL(包含 127.0.0.1 与本机网卡 IP)。
# 健康检查
curl -s http://127.0.0.1:8000/health
# 获取已注册模型列表
curl -s http://127.0.0.1:8000/v1/models
# 生成 embedding (input 支持 string 或 string 数组)
curl -s http://127.0.0.1:8000/v1/embeddings \
-H 'Content-Type: application/json' \
-d '{"model":"AXERA-TECH/Qwen3-Embedding-0.6B","input":["hello","world"]}'
如需使用 Python 脚本进行推理调试,请参考 python_backup/ 目录下的说明文档。