Audio Classification
MLX
audio
speech-emotion-recognition
emotion-recognition
emotion2vec
data2vec
apple-silicon
Run this model with HF Jobs
Run mlx-community/emotion2vec-plus-large-mlx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/emotion2vec-plus-large-mlx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/emotion2vec-plus-large-mlx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mlx-community/emotion2vec-plus-large-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/emotion2vec-plus-large-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/emotion2vec-plus-large-mlx --local-dir emotion2vec-plus-large-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Add emotion2vec+ large MLX weights (fp16) + config + model card
Browse filesFiles changed (3)
- README.mdAdded+61
- emotion2vec_large.safetensorsAdded+3
- emotion2vec_large_config.jsonAdded+76
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061---license: otherlicense_name: funasr-model-licenselicense_link: https://huggingface.co/emotion2vec/emotion2vec_plus_large/blob/main/LICENSElibrary_name: mlxbase_model: emotion2vec/emotion2vec_plus_largepipeline_tag: audio-classificationtags:- mlx- audio- audio-classification- speech-emotion-recognition- emotion-recognition- emotion2vec- data2vec- apple-silicon---
# mlx-community/emotion2vec-plus-large-mlx
The **emotion2vec+ large** speech-emotion-recognition model converted to MLX format for nativeinference on Apple Silicon, consumed by the [`xocialize/emotion2vec-mlx-swift`](https://github.com/xocialize/emotion2vec-mlx-swift)Swift port. Refer to the [original model card](https://huggingface.co/emotion2vec/emotion2vec_plus_large)for details.
## Model
- **Family:** emotion2vec / emotion2vec+ (Ma et al., "emotion2vec: Self-Supervised Pre-Training for Speech Emotion Representation," [arXiv:2312.15185](https://arxiv.org/abs/2312.15185))- **Architecture:** Data2Vec 2.0 — conv feature extractor → transformer encoder → 9-class linear head- **Output:** 9-class categorical emotion (`angry`, `disgusted`, `fearful`, `happy`, `neutral`, `other`, `sad`, `surprised`, `unknown`)- **Sample rate:** 16000 Hz, mono- **Precision:** fp16 (233 tensors)
## Files
- `emotion2vec_large.safetensors` — the MLX weights (fp16).- `emotion2vec_large_config.json` — model config consumed by the loader.
## Usage (Swift / MLX)
```swiftimport Emotion2VecMLXimport Hub
let dir = try await HubApi().snapshot(from: "mlx-community/emotion2vec-plus-large-mlx")let recogniser = try await EmotionRecogniser(weightsDirectory: dir, config: EmotionRecogniserConfig(models: .categorical))let result = try await recogniser.classify(audioURL: speechURL)print(result.categorical.label, result.categorical.confidence)```
## Source
- **Original model:** https://huggingface.co/emotion2vec/emotion2vec_plus_large- **Swift consumer:** https://github.com/xocialize/emotion2vec-mlx-swift
## License
FunASR's custom MODEL_LICENSE — permits use, copy, modification, and redistribution withattribution and model-name retention (no-denigration clause, no warranty). Non-SPDX butpermissive. See the [original license](https://huggingface.co/emotion2vec/emotion2vec_plus_large/blob/main/LICENSE).123version https://git-lfs.github.com/spec/v1oid sha256:ecfbf0d668bc86d963332bb72871744184c24c84a9ac7c5d9b113d0bf55fbb94size 32430518612345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ "model_type": "emotion2vec_plus_large", "architecture": "data2vec2", "num_classes": 9, "hidden_dim": 1024, "ffn_dim": 4096, "num_layers": 12, "num_context_blocks": 4, "num_shared_blocks": 8, "num_heads": 16, "conv_feature_layers": [ [ 1, 512, 10, 5 ], [ 512, 512, 3, 2 ], [ 512, 512, 3, 2 ], [ 512, 512, 3, 2 ], [ 512, 512, 3, 2 ], [ 512, 512, 2, 2 ], [ 512, 512, 2, 2 ] ], "pos_conv_depth": 5, "pos_conv_kernel": 19, "pos_conv_groups": 16, "feature_dim": 512, "has_context_norm": true, "has_extra_tokens": true, "has_alibi_scale": true, "num_extra_tokens": 10, "layer_norm_first": false, "dtype": "float16", "emotion_labels": [ "angry", "disgusted", "fearful", "happy", "neutral", "other", "sad", "surprised", "unknown" ]}README.mdAdded+61
emotion2vec_large.safetensorsAdded+3
emotion2vec_large_config.jsonAdded+76