Instructions to use mispeech/dasheng-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mispeech/dasheng-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="mispeech/dasheng-base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mispeech/dasheng-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from mispeech/dasheng-base: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/mispeech/dasheng-base/resolve/refs%2Fpr%2F2/config.json
- Command line
-
hf download hf://mispeech/dasheng-base@refs/pr/2/config.json
-
curl -L -o config.json https://huggingface.co/mispeech/dasheng-base/resolve/refs%2Fpr%2F2/config.json
518 Bytes
| { | |
| "architectures": [ | |
| "DashengModel" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_dasheng.DashengConfig", | |
| "AutoModel": "modeling_dasheng.DashengModel" | |
| }, | |
| "encoder_kwargs": { | |
| "depth": 12, | |
| "embed_dim": 768, | |
| "num_heads": 12, | |
| "patch_size": [ | |
| 64, | |
| 4 | |
| ], | |
| "patch_stride": [ | |
| 64, | |
| 4 | |
| ], | |
| "target_length": 1008 | |
| }, | |
| "loss": "BCELoss", | |
| "model_type": "dasheng", | |
| "name": "dasheng-base", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.35.2" | |
| } | |