Any-to-Any
Transformers
Safetensors
lfm3_audio
automatic-speech-recognition
liquid
lfm3
audio
speech
edge
conversational
multilingual
custom_code
Instructions to use eustlb/LFM3-Audio-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eustlb/LFM3-Audio-2B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMultimodalLM model = AutoModelForMultimodalLM.from_pretrained("eustlb/LFM3-Audio-2B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add the codec feature extractor to the processor config
Browse files- processor_config.json +14 -2
processor_config.json
CHANGED
|
@@ -5,6 +5,18 @@
|
|
| 5 |
"audio_tokenizer_class": "LiquidCodecModel",
|
| 6 |
"audio_tokenizer_name_or_path": "eustlb/LFM3-Audio-2B-codec"
|
| 7 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"feature_extractor": {
|
| 9 |
"encoder_stride": 8,
|
| 10 |
"feature_extractor_type": "Lfm3AudioFeatureExtractor",
|
|
@@ -20,7 +32,7 @@
|
|
| 20 |
"sampling_rate": 16000,
|
| 21 |
"win_length": 400
|
| 22 |
},
|
| 23 |
-
"
|
| 24 |
"num_audio_tokens_per_chunk": 12,
|
| 25 |
-
"
|
| 26 |
}
|
|
|
|
| 5 |
"audio_tokenizer_class": "LiquidCodecModel",
|
| 6 |
"audio_tokenizer_name_or_path": "eustlb/LFM3-Audio-2B-codec"
|
| 7 |
},
|
| 8 |
+
"codec_feature_extractor": {
|
| 9 |
+
"feature_extractor_type": "LiquidCodecFeatureExtractor",
|
| 10 |
+
"feature_size": 1923,
|
| 11 |
+
"frame_stack": 6,
|
| 12 |
+
"hop_length": 320,
|
| 13 |
+
"n_fft": 1280,
|
| 14 |
+
"padding_side": "right",
|
| 15 |
+
"padding_value": 0.0,
|
| 16 |
+
"return_attention_mask": true,
|
| 17 |
+
"sampling_rate": 24000,
|
| 18 |
+
"win_length": 1280
|
| 19 |
+
},
|
| 20 |
"feature_extractor": {
|
| 21 |
"encoder_stride": 8,
|
| 22 |
"feature_extractor_type": "Lfm3AudioFeatureExtractor",
|
|
|
|
| 32 |
"sampling_rate": 16000,
|
| 33 |
"win_length": 400
|
| 34 |
},
|
| 35 |
+
"max_audio_chunks_per_context": 31,
|
| 36 |
"num_audio_tokens_per_chunk": 12,
|
| 37 |
+
"processor_class": "Lfm3AudioProcessor"
|
| 38 |
}
|