Run this model with HF Jobs

Run hybridcodec/hybridcodec_finetune_25hz 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/hybridcodec/hybridcodec_finetune_25hz. 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/hybridcodec/hybridcodec_finetune_25hz 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.
hybridcodec_finetune_25hz / hyperparams.yaml
flexthink's picture
Add files using upload-large-folder tool
bb19fa0 verified
Raw History Blame Contribute Delete
1.39 kB
# HyperPyYAML for the WavLM/FocalCodec hybrid codec.
# Checkpoint variant: finetune at 25 Hz.
codec_sample_rate: 16000
codec_frequency_hz: 25
# The trained encoder and decoder are provided by the upstream FocalCodec model.
focalcodec_source: lucadellalib/focalcodec
focalcodec_model: focalcodec
focalcodec_config: lucadellalib/focalcodec_50hz
focalcodec: !apply:torch.hub.load
repo_or_dir: !ref <focalcodec_source>
model: !ref <focalcodec_model>
config: !ref <focalcodec_config>
trust_repo: True
pretrained: True
encoder: !new:hybridcodec.model.FocalCodecEncoder
model: !ref <focalcodec.encoder>
quantizer: !new:hybridcodec.model.SingleLayerResidualQuantizer
input_dim: 1024
bottleneck_dim: 32
codebook_size: 8192
semantic_hidden_sizes: [1024, 512, 256]
semantic_downscale_factors: [2, 1, 1]
residual_hidden_sizes: [512, 256]
residual_downscale_factors: [1, 1]
continuous_dropout: 0.2
use_post_norm: False
vocoder: !ref <focalcodec.decoder>
codec: !new:hybridcodec.model.HybridCodec
encoder: !ref <encoder>
quantizer: !ref <quantizer>
vocoder: !ref <vocoder>
modules:
codec: !ref <codec>
# Pretrainer uses this key as the relative filename under the source repo.
pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer
loadables:
"weights/quantizer_finetune_25hz": !ref <quantizer>