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
File size: 1,438 Bytes
51a586c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | {
"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
}
|