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
Download multilingual/sample_output.json from AXERA-TECH/Laya: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/AXERA-TECH/Laya/resolve/main/multilingual/sample_output.json
- Command line
-
hf download hf://AXERA-TECH/Laya/multilingual/sample_output.json
-
curl -L -o sample_output.json https://huggingface.co/AXERA-TECH/Laya/resolve/main/multilingual/sample_output.json
1.44 kB
| { | |
| "model": "laya-multilingual", | |
| "answers": { | |
| "department": { | |
| "type": "choice", | |
| "choice": "billing", | |
| "probabilities": { | |
| "billing": 0.9999998000625785, | |
| "technical": 1.2528440871696968e-07, | |
| "sales": 4.298654394105504e-08, | |
| "other": 3.1666468929032305e-08 | |
| }, | |
| "confidence": 0.9999974990786216, | |
| "action": { | |
| "act_probability": 1.0 | |
| }, | |
| "npu_latency_ms": 27.818481 | |
| }, | |
| "urgency": { | |
| "type": "score", | |
| "probabilities": { | |
| "0": 0.0020775276529841026, | |
| "1": 0.05992485051108516, | |
| "2": 0.9379976218359306 | |
| }, | |
| "legend": { | |
| "0": "常规事项,没有截止时间", | |
| "1": "需要尽快处理", | |
| "2": "服务中断或今天必须解决" | |
| }, | |
| "score": 1.9359200941829464, | |
| "confidence": 0.7801412236801784, | |
| "action": { | |
| "act_probability": 1.0 | |
| }, | |
| "npu_latency_ms": 27.705619 | |
| }, | |
| "refund": { | |
| "type": "noul", | |
| "noul": 0.992535135841613, | |
| "confidence": 0.992535135841613, | |
| "action": { | |
| "act_probability": 1.0 | |
| }, | |
| "npu_latency_ms": 27.690115 | |
| }, | |
| "churn": { | |
| "type": "noul", | |
| "noul": 0.9399503855216702, | |
| "confidence": 0.9399503855216702, | |
| "action": { | |
| "act_probability": 1.0 | |
| }, | |
| "npu_latency_ms": 27.656606 | |
| } | |
| }, | |
| "total_npu_latency_ms": 110.87082099999999 | |
| } | |