Upload folder using huggingface_hub
Browse files- .gitattributes +3 -0
- README.md +74 -0
- decoder-5-seconds.axmodel +3 -0
- encoder-5-seconds.axmodel +3 -0
- predictor-5-seconds.axmodel +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
decoder-5-seconds.axmodel filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
encoder-5-seconds.axmodel filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
predictor-5-seconds.axmodel filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- zh
|
| 5 |
+
base_model:
|
| 6 |
+
- csukuangfj/WSChuan-ASR
|
| 7 |
+
pipeline_tag: automatic-speech-recognition
|
| 8 |
+
tags:
|
| 9 |
+
- sherpa-onnx
|
| 10 |
+
- axera
|
| 11 |
+
- ax650
|
| 12 |
+
- axmodel
|
| 13 |
+
- paraformer
|
| 14 |
+
- asr
|
| 15 |
+
- speech-recognition
|
| 16 |
+
- chinese
|
| 17 |
+
- pulsar2
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# sherpa-onnx-paraformer-ax650
|
| 21 |
+
|
| 22 |
+
Paraformer-large-Chuan Chinese ASR model converted to AX650 AXMODEL for on-device inference via sherpa-onnx.
|
| 23 |
+
|
| 24 |
+
## Model Details
|
| 25 |
+
|
| 26 |
+
- **Original Model**: [csukuangfj/WSChuan-ASR](https://hf-mirror.com/csukuangfj/WSChuan-ASR)
|
| 27 |
+
- **Architecture**: Paraformer (SAN-M encoder + CIF predictor + SAN-M decoder)
|
| 28 |
+
- **Task**: Chinese speech recognition (ASR)
|
| 29 |
+
- **Sample rate**: 16000 Hz
|
| 30 |
+
- **Input**: 5-second fixed length audio chunks
|
| 31 |
+
- **Vocabulary**: 8404 tokens
|
| 32 |
+
- **LFR**: window=7, shift=6
|
| 33 |
+
- **Target Chip**: AX650 (NPU3)
|
| 34 |
+
|
| 35 |
+
## Files
|
| 36 |
+
|
| 37 |
+
| File | Precision | Size | Description |
|
| 38 |
+
|------|-----------|------|-------------|
|
| 39 |
+
| `encoder-5-seconds.axmodel` | INT8 | 165 MB | Encoder [1,83,560]→[1,83,512] |
|
| 40 |
+
| `predictor-5-seconds.axmodel` | INT8 | 831 KB | Predictor [1,83,512]→[1,83] |
|
| 41 |
+
| `decoder-5-seconds.axmodel` | INT8 | 60 MB | Decoder [1,83,512]×3→[1,83,8404] |
|
| 42 |
+
|
| 43 |
+
## Performance
|
| 44 |
+
|
| 45 |
+
| Metric | Value |
|
| 46 |
+
|--------|-------|
|
| 47 |
+
| RTF | 0.007 |
|
| 48 |
+
| Pulsar2 Version | 6.0 (commit 48520c11) |
|
| 49 |
+
|
| 50 |
+
## Usage with sherpa-onnx
|
| 51 |
+
|
| 52 |
+
```bash
|
| 53 |
+
./sherpa-onnx-offline \
|
| 54 |
+
--tokens=tokens.txt \
|
| 55 |
+
--paraformer=encoder-5-seconds.axmodel,predictor-5-seconds.axmodel,decoder-5-seconds.axmodel \
|
| 56 |
+
--provider=axera \
|
| 57 |
+
audio.wav
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Known Limitations
|
| 61 |
+
|
| 62 |
+
- INT8 quantization may cause accuracy loss; recognition output may be empty or partially missing
|
| 63 |
+
- Fixed 5-second input length; longer audio requires external chunking
|
| 64 |
+
- For higher accuracy, use U16 encoder + FP32 predictor + FP32 decoder variants
|
| 65 |
+
|
| 66 |
+
## Conversion Details
|
| 67 |
+
|
| 68 |
+
- **Pulsar2 Version**: 6.0 (48520c11)
|
| 69 |
+
- **Calibration**: MinMax with 10 samples
|
| 70 |
+
- **Quantization**: INT8
|
| 71 |
+
|
| 72 |
+
## License
|
| 73 |
+
|
| 74 |
+
Apache 2.0
|
decoder-5-seconds.axmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c313cc98aa80a1e65d590725ee05930835be23b0ae7f8c5e6d4453a50a6c7b5
|
| 3 |
+
size 62051889
|
encoder-5-seconds.axmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:42b084b183630513ba6c4cfa453880aa273788b7e0371bc0a12c48b72051b238
|
| 3 |
+
size 172411588
|
predictor-5-seconds.axmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54928562d6b34f74d3060e77c7fb12d75483e65a4879f55e300c684c348a83a5
|
| 3 |
+
size 850928
|