Run this model with HF Jobs
Run hybridcodec/hybridcodec_frozen_50hz 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_frozen_50hz. 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_frozen_50hz 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 hybridcodec/hybridcodec_frozen_50hz with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use hybridcodec/hybridcodec_frozen_50hz with speechbrain:
# interface not specified in config.json
- Notebooks
- Google Colab
- Kaggle
Add HybridCodec model card
Browse files26 unmodified lines272829303132333435363738394041424344454626 unmodified lines- `hyperparams.yaml`: model architecture and inference configuration.- `weights/`: quantizer parameters in safetensors format.## Inference on FirWith the `hybridcodec` package installed and Hugging Face access configured:```bashpython ~/models/hf/reencode_hybridcodec.py \--model hybridcodec/hybridcodec_frozen_50hz \--input sample.wav \--output sample_reencoded.wav```The command resamples input audio to 16 kHz when needed, converts it to mono,encodes and decodes it, and writes the reconstructed WAV file.## PaperSee [HybridCodec: Modeling Discrete and Continuous Representations for26 unmodified lines2728293031323334353637383940414243444546474849505152535455565726 unmodified lines- `hyperparams.yaml`: model architecture and inference configuration.- `weights/`: quantizer parameters in safetensors format.## InstallInstall HybridCodec from GitHub:```bashpip install "git+https://github.com/hybridcodec/hybridcodec.git"```## Encode and decode audioLoad this model from the Hugging Face Hub, encode a WAV file, and write thereconstruction:```pythonimport soundfile as sfimport torchfrom hybridcodec.inference import HybridCodeccodec = HybridCodec.from_hparams(source="hybridcodec/hybridcodec_frozen_50hz")waveform = codec.load_audio("sample.wav").squeeze(-1).to(codec.device)lengths = torch.ones(1, device=codec.device)semantic, residual = codec.encode(waveform.unsqueeze(0), lengths)reconstruction = codec.decode(semantic, residual)sf.write("reconstructed.wav", reconstruction[0].cpu().numpy(), 16000)```## PaperSee [HybridCodec: Modeling Discrete and Continuous Representations for
README.md+19-8