Feature Extraction
Transformers
Safetensors
liquid_codec
liquid
lfm3
audio
audio-codec
speech
streaming
edge
multilingual
custom_code
Instructions to use eustlb/Liquid-Codec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eustlb/Liquid-Codec with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="eustlb/Liquid-Codec", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eustlb/Liquid-Codec", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Keep every key of the original config
Browse files- config.json +41 -6
config.json
CHANGED
|
@@ -1,7 +1,47 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"LiquidCodecModel"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"decoder_config": {
|
| 6 |
"attention_bias": false,
|
| 7 |
"attention_dropout": 0.0,
|
|
@@ -44,7 +84,6 @@
|
|
| 44 |
"use_sandwich_norm": true,
|
| 45 |
"win_length": 1280
|
| 46 |
},
|
| 47 |
-
"dtype": "bfloat16",
|
| 48 |
"encoder_config": {
|
| 49 |
"attention_bias": false,
|
| 50 |
"attention_dropout": 0.0,
|
|
@@ -87,8 +126,6 @@
|
|
| 87 |
"use_cache": false,
|
| 88 |
"use_sandwich_norm": true
|
| 89 |
},
|
| 90 |
-
"initializer_range": 0.02,
|
| 91 |
-
"model_type": "liquid_codec",
|
| 92 |
"num_quantizers": 12,
|
| 93 |
"quantization_dim": 256,
|
| 94 |
"quantization_levels": [
|
|
@@ -96,7 +133,5 @@
|
|
| 96 |
7,
|
| 97 |
6,
|
| 98 |
6
|
| 99 |
-
]
|
| 100 |
-
"sampling_rate": 24000,
|
| 101 |
-
"transformers_version": "5.24.0.dev0"
|
| 102 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"transformers_version": "5.19.0.dev0",
|
| 3 |
"architectures": [
|
| 4 |
"LiquidCodecModel"
|
| 5 |
],
|
| 6 |
+
"output_hidden_states": false,
|
| 7 |
+
"return_dict": true,
|
| 8 |
+
"dtype": "bfloat16",
|
| 9 |
+
"chunk_size_feed_forward": 0,
|
| 10 |
+
"is_encoder_decoder": false,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0",
|
| 13 |
+
"1": "LABEL_1"
|
| 14 |
+
},
|
| 15 |
+
"label2id": {
|
| 16 |
+
"LABEL_0": 0,
|
| 17 |
+
"LABEL_1": 1
|
| 18 |
+
},
|
| 19 |
+
"problem_type": null,
|
| 20 |
+
"encoder_dim": 512,
|
| 21 |
+
"encoder_conv_dim": 256,
|
| 22 |
+
"stft_n_fft": 1280,
|
| 23 |
+
"stft_hop_length": 320,
|
| 24 |
+
"stft_win_length": 1280,
|
| 25 |
+
"stft_frame_stack": 6,
|
| 26 |
+
"quantizer_dim": 256,
|
| 27 |
+
"fsq_levels": [
|
| 28 |
+
8,
|
| 29 |
+
7,
|
| 30 |
+
6,
|
| 31 |
+
6
|
| 32 |
+
],
|
| 33 |
+
"n_q": 12,
|
| 34 |
+
"decoder_window": 30,
|
| 35 |
+
"sampling_rate": 24000,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"model_type": "liquid_codec",
|
| 38 |
+
"output_attentions": false,
|
| 39 |
+
"sample_rate": 24000,
|
| 40 |
+
"frame_samples": 1920,
|
| 41 |
+
"auto_map": {
|
| 42 |
+
"AutoConfig": "configuration_liquid_codec.LiquidCodecConfig",
|
| 43 |
+
"AutoModel": "modeling_liquid_codec.LiquidCodecModel"
|
| 44 |
+
},
|
| 45 |
"decoder_config": {
|
| 46 |
"attention_bias": false,
|
| 47 |
"attention_dropout": 0.0,
|
|
|
|
| 84 |
"use_sandwich_norm": true,
|
| 85 |
"win_length": 1280
|
| 86 |
},
|
|
|
|
| 87 |
"encoder_config": {
|
| 88 |
"attention_bias": false,
|
| 89 |
"attention_dropout": 0.0,
|
|
|
|
| 126 |
"use_cache": false,
|
| 127 |
"use_sandwich_norm": true
|
| 128 |
},
|
|
|
|
|
|
|
| 129 |
"num_quantizers": 12,
|
| 130 |
"quantization_dim": 256,
|
| 131 |
"quantization_levels": [
|
|
|
|
| 133 |
7,
|
| 134 |
6,
|
| 135 |
6
|
| 136 |
+
]
|
|
|
|
|
|
|
| 137 |
}
|