Text Classification
Transformers
Laya
English
multilingual
typed-decisions
non-autoregressive
axera
ax650
Instructions to use AXERA-TECH/Laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/Laya with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AXERA-TECH/Laya")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/Laya", device_map="auto") - Laya
How to use AXERA-TECH/Laya with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
yongqiang commited on
Commit ·
035fa9a
1
Parent(s): 4b20396
Correct AX620E benchmark figure
Browse files- AX620E_BACKEND/README.md +3 -1
- AX637_BACKEND/README.md +2 -0
AX620E_BACKEND/README.md
CHANGED
|
@@ -83,12 +83,14 @@ Measured on AX620E / NPU2. Native latency uses `/opt/bin/ax_run_model` with two
|
|
| 83 |
|
| 84 |
| Checkpoint | Fixed input | Native NPU latency | Resident PyAXEngine latency |
|
| 85 |
| --- | --- | ---: | ---: |
|
| 86 |
-
| `english` | B1, S256, K4 |
|
| 87 |
| `multilingual` | B1, S256, K4 | 142.135 ms | 143.473 ms |
|
| 88 |
| `typed-decisions` | B1, S256, K4 | 327.002 ms | 328.369 ms |
|
| 89 |
|
| 90 |
The packaged first four-question Python samples measured 1340.66 ms for English, 601.59 ms for multilingual, and 1341.78 ms for typed decisions. The first decision includes one-time session initialization; later decisions reflect the resident steady state.
|
| 91 |
|
|
|
|
|
|
|
| 92 |
### Why the Multilingual AXModel Is Larger but Faster
|
| 93 |
|
| 94 |
AXModel file size and inference latency measure different costs.
|
|
|
|
| 83 |
|
| 84 |
| Checkpoint | Fixed input | Native NPU latency | Resident PyAXEngine latency |
|
| 85 |
| --- | --- | ---: | ---: |
|
| 86 |
+
| `english` | B1, S256, K4 | 326.977 ms | 328.297 ms |
|
| 87 |
| `multilingual` | B1, S256, K4 | 142.135 ms | 143.473 ms |
|
| 88 |
| `typed-decisions` | B1, S256, K4 | 327.002 ms | 328.369 ms |
|
| 89 |
|
| 90 |
The packaged first four-question Python samples measured 1340.66 ms for English, 601.59 ms for multilingual, and 1341.78 ms for typed decisions. The first decision includes one-time session initialization; later decisions reflect the resident steady state.
|
| 91 |
|
| 92 |
+
These are per-question measurements on different SoCs. AX620E/NPU2 and AX637/NPU1 describe NPU resources within their respective chips; the mode number is not a cross-chip speed ranking. The packaged models also use target-specific graph transformations, so compare the measured latency rather than inferring performance from the mode number.
|
| 93 |
+
|
| 94 |
### Why the Multilingual AXModel Is Larger but Faster
|
| 95 |
|
| 96 |
AXModel file size and inference latency measure different costs.
|
AX637_BACKEND/README.md
CHANGED
|
@@ -89,6 +89,8 @@ Measured on AX637 / NPU1 with `/opt/bin/ax_run_model`, two warmup runs, and ten
|
|
| 89 |
|
| 90 |
The packaged four-question samples report 866.63 ms for English, 377.90 ms for multilingual, and 866.21 ms for typed decisions. These totals are the per-question NPU average multiplied by four.
|
| 91 |
|
|
|
|
|
|
|
| 92 |
### Why the Multilingual AXModel Is Larger but Faster
|
| 93 |
|
| 94 |
AXModel file size and inference latency measure different costs.
|
|
|
|
| 89 |
|
| 90 |
The packaged four-question samples report 866.63 ms for English, 377.90 ms for multilingual, and 866.21 ms for typed decisions. These totals are the per-question NPU average multiplied by four.
|
| 91 |
|
| 92 |
+
These are per-question measurements on different SoCs. AX620E/NPU2 and AX637/NPU1 describe NPU resources within their respective chips; the mode number is not a cross-chip speed ranking. The packaged models also use target-specific graph transformations, so compare the measured latency rather than inferring performance from the mode number.
|
| 93 |
+
|
| 94 |
### Why the Multilingual AXModel Is Larger but Faster
|
| 95 |
|
| 96 |
AXModel file size and inference latency measure different costs.
|