A model for fast deployment and verification of Qwen3-Reranker-0.6B on Ascend NPU environments. Supports text generation, embedding, reranking, and scoring. Fully adapted and precision-validated for Ascend NPU.
Using transformers framework on both CPU (baseline) and Ascend NPU (test) with identical random seed. Compare:
Last Hidden State (1024-dim per token)
Logits (vocab_size 151,669)
Metrics:
Metric
Definition
Pass Threshold
Cosine Similarity
Vector direction alignment
>0.99
MAE
Mean Absolute Error
—
RMSE
Root Mean Square Error
—
Mean Rel Error
Mean relative error percentage
<1%
Max Rel Error
Max relative error percentage
—
Test Inputs
#
Input Text
1
What is the capital of France?
2
The capital of France is Paris.
3
Paris is a beautiful city.
4
Explain the theory of relativity.
5
Machine learning is a subset of artificial intelligence.
6
The Earth orbits around the Sun.
7
Quantization reduces model size and improves inference speed.
8
The mitochondria is the powerhouse of the cell.
Hidden State Comparison
#
Cosine Sim
MAE
RMSE
Mean Rel%
Max Rel%
1
1.000000
5.45e-06
7.51e-06
0.0076%
5.92%
2
1.000000
5.42e-06
7.51e-06
0.0027%
1.34%
3
1.000000
4.88e-06
6.64e-06
0.0041%
1.20%
4
1.000000
4.25e-06
6.51e-06
0.0014%
0.15%
5
1.000000
5.46e-06
7.57e-06
0.0014%
0.09%
6
1.000000
4.43e-06
8.22e-06
0.0027%
1.43%
7
1.000000
4.80e-06
6.90e-06
0.0015%
0.14%
8
1.000000
4.21e-06
6.61e-06
0.0022%
0.60%
Average
1.000000
4.86e-06
7.18e-06
0.0029%
1.36%
Logits Comparison
Metric
Value
Avg Cosine Similarity
1.000000
Avg MAE
8.21e-06
Precision Conclusion
Metric
Measured
Threshold
Result
Hidden State Cos Sim
1.000000
>0.99
✅ Pass
Hidden State Mean Rel Error
0.0029%
<1%
✅ Pass
Logits Cos Sim
1.000000
>0.99
✅ Pass
✅ Ascend NPU outputs align perfectly with CPU baseline. Cosine similarity 1.000000, mean relative error 0.0029% — far below the 1% threshold. Ready for production deployment.