Run this model with HF Jobs
Run Manel/X-Codec 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/Manel/X-Codec. 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/Manel/X-Codec 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 Manel/X-Codec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Manel/X-Codec with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Manel/X-Codec", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Manel/X-Codec: direct link, hf CLI and curl.
- Browser
- Download file 2.52 kB
-
https://huggingface.co/Manel/X-Codec/resolve/main/config.json
- Command line
-
hf download hf://Manel/X-Codec/config.json
-
curl -L -o config.json https://huggingface.co/Manel/X-Codec/resolve/main/config.json
2.52 kB
| { | |
| "acoustic_model_config": { | |
| "codebook_dim": 8, | |
| "codebook_loss_weight": 1.0, | |
| "codebook_size": 1024, | |
| "commitment_loss_weight": 0.25, | |
| "decoder_hidden_size": 1024, | |
| "downsampling_ratios": [ | |
| 8, | |
| 5, | |
| 4, | |
| 2 | |
| ], | |
| "encoder_hidden_size": 64, | |
| "hidden_size": 256, | |
| "hop_length": 320, | |
| "model_type": "dac", | |
| "n_codebooks": 9, | |
| "quantizer_dropout": 0, | |
| "sampling_rate": 16000, | |
| "upsampling_ratios": [ | |
| 8, | |
| 5, | |
| 4, | |
| 2 | |
| ] | |
| }, | |
| "audio_channels": 1, | |
| "block_dilations": [ | |
| 1, | |
| 1 | |
| ], | |
| "channel_ratios": [ | |
| 1, | |
| 1 | |
| ], | |
| "codebook_dim": 1024, | |
| "codebook_size": 1024, | |
| "decoder_channels": 768, | |
| "encoder_channels": 768, | |
| "hidden_dim": 1024, | |
| "initializer_range": 0.02, | |
| "input_channels": 768, | |
| "intermediate_dim": 768, | |
| "kernel_size": 3, | |
| "model_type": "xcodec", | |
| "num_quantizers": 8, | |
| "output_channels": 768, | |
| "output_dim": 256, | |
| "sample_rate": 16000, | |
| "semantic_model_config": { | |
| "activation_dropout": 0.1, | |
| "apply_spec_augment": true, | |
| "attention_dropout": 0.1, | |
| "classifier_proj_size": 256, | |
| "conv_bias": false, | |
| "conv_dim": [ | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512, | |
| 512 | |
| ], | |
| "conv_kernel": [ | |
| 10, | |
| 3, | |
| 3, | |
| 3, | |
| 3, | |
| 2, | |
| 2 | |
| ], | |
| "conv_pos_batch_norm": false, | |
| "conv_stride": [ | |
| 5, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2, | |
| 2 | |
| ], | |
| "ctc_loss_reduction": "sum", | |
| "ctc_zero_infinity": false, | |
| "do_stable_layer_norm": false, | |
| "feat_extract_activation": "gelu", | |
| "feat_extract_norm": "group", | |
| "feat_proj_dropout": 0.0, | |
| "feat_proj_layer_norm": true, | |
| "final_dropout": 0.1, | |
| "hidden_act": "gelu", | |
| "hidden_dropout": 0.1, | |
| "hidden_size": 768, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-05, | |
| "layerdrop": 0.1, | |
| "mask_feature_length": 10, | |
| "mask_feature_min_masks": 0, | |
| "mask_feature_prob": 0.0, | |
| "mask_time_length": 10, | |
| "mask_time_min_masks": 2, | |
| "mask_time_prob": 0.05, | |
| "model_type": "hubert", | |
| "num_attention_heads": 12, | |
| "num_conv_pos_embedding_groups": 16, | |
| "num_conv_pos_embeddings": 128, | |
| "num_feat_extract_layers": 7, | |
| "num_hidden_layers": 12, | |
| "use_weighted_layer_sum": false, | |
| "vocab_size": 32 | |
| }, | |
| "strides": [ | |
| 1, | |
| 1 | |
| ], | |
| "target_bandwidths": [ | |
| 0.5, | |
| 1, | |
| 1.5, | |
| 2, | |
| 4 | |
| ], | |
| "transformers_version": "4.52.0.dev0", | |
| "unit_kernel_size": 3 | |
| } | |