/ Модель

Характеристики

Лицензия
CC BY-NC 4.0
Базовая модель
encodec_32khz
Библиотека
loom-py-rt
Опубликована
17 сен 2026

encodec-32khz-loom

Генерация аудиоТекст → аудио3 профессии

Экспортированный в GGUF декодер EnCodec 32 кГц восстанавливает аудиоволну из кодов аудиокодека.

33скачиваний за 30 дней0лайковвеса обновлены17 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это экспорт декодера аудиокодека EnCodec Meta AI с частотой дискретизации 32 кГц, используемого в MusicGen. Репозиторий содержит неизменённые веса модели facebook/encodec_32khz, упакованные в формат GGUF для запуска через loom.cpp и библиотеку loom-py-rt. Модель принимает кодовые последовательности аудио и восстанавливает из них звуковую волну; это декодирующая половина кодека, а не языковая модель.

Декодер рассчитан на 4 потока кодов на кадр при 50 кадрах в секунду, что соответствует полосе 2,2 кбит/с; один кадр даёт 640 аудиосэмплов. В архитектуре есть LSTM с обработкой по кадрам, поэтому скорость в описанном окружении составляет около 0,44× реального времени. Лицензия репозитория — CC BY-NC 4.0. Для работы нужны выровненные коды нужной ширины: декодер не выполняет обратное выравнивание задержек и не принимает коды с другой конфигурацией полосы.

Сценарии применения

  • декодирование кодов EnCodec в аудио
  • восстановление аудиоволны из кодовых потоков MusicGen
  • локальный запуск декодера аудиокодека через loom.cpp

Ограничения

Декодер принимает только 4 выровненных потока кодов на кадр при 50 кадрах в секунду и не устраняет задержки потоков. Из-за LSTM обработка в описанном окружении составляет около 0,44× реального времени.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

EnCodec 32 kHz (decoder)

Meta's EnCodec at 32 kHz -- MusicGen's codec -- decode half, exported for loom.cpp. Family 11: codec tokens in, a waveform out.

This is a loom.cpp export: a single self-describing GGUF that carries its own graph topologies, tokenizer (if any) and driver script, produced by loom-exporter.

Original model

Exported from facebook/encodec_32khz. Weights are unmodified; this repo packages the same parameters into loom.cpp's GGUF format.

License

cc-by-nc-4.0, inherited from the base model above.

Language(s)

(none tagged upstream)

a codec, not a language model: it carries no vocabulary and no language. The upstream repo carries NO license: tag; cc-by-nc-4.0 follows the MusicGen release this checkpoint was trained as part of, which is the stricter of the two readings. The EnCodec code itself is MIT, which covers the code and not these weights.

Usage

Run it with loom-py -- loom-py-rt on PyPI:

pip install -U "loom-py-rt[hub]"
import loom

model = loom.Model.from_pretrained("loom-ai-org/encodec-32khz-loom")

# The geometry a caller needs, declared by the file rather than looked up in a paper:
n_codebooks = model.hparam("codec.n_codebooks")       # code streams per frame
codebook_size = model.hparam("codec.codebook_size")   # valid id range per stream
frame_rate = model.hparam("codec.frame_rate", "f32")  # codes per second
print(n_codebooks, codebook_size, frame_rate, model.contract["sample_rate"])

# Codes are FRAME-MAJOR: all `n_codebooks` codes for frame 0, then frame 1, and so on. This file
# is the DECODE half -- real codes come from the matching encoder, or an AR model that emits them.
frames = round(frame_rate)                            # one second of audio
codes = [[0] * n_codebooks for _ in range(frames)]
audio = model.codes2speech.infer(codes)
print(len(audio), "samples at", audio.sample_rate, "Hz =", round(audio.duration, 3), "s")
audio.save("out.wav")

# A flat list works too, and is what a driver that emitted the codes hands over. One that is not a
# whole number of frames is refused rather than reinterpreted at a different width.
audio = model.codes2speech.infer([0] * (frames * n_codebooks))

The layer underneath

The call above is the high-level door: one per task, named for the modality pair it maps between, with the windowing, sampling and assembly this model needs already applied. Under it, model.infer(...) passes your arguments straight to the driver this GGUF embeds -- which is where you go for a knob the door does not name.

model.driver_source prints that driver, including a header comment documenting every argument it accepts for this model, and is the authority on it. See loom-py for the API and loom.cpp for what the engine does between the two.

Known limitations

This is the DECODE half only. encode is audio-in/codes-out -- a different contract with a different modality pair -- and no model that decodes through this codec ever calls it, so exporting it would be weight in the file for a door nothing opens. To go the other way, use the upstream checkpoint.

It takes 4 code streams per frame at 50 frames per second, and one frame decodes to 640 samples. That is the 2.2 kbps bandwidth this checkpoint is configured at; codes from EnCodec at another bandwidth are a different number of streams and are refused on the width rather than decoded.

Its decoder contains an LSTM, which the engine walks per frame. The file carries three graph topologies rather than one, with the recurrence run between them -- the timestep loop is inside the engine, not in the script, and the whole thing is invisible from the outside. It is why a clip costs about 0.44x real time here where a purely convolutional codec is far cheaper: 8.8 ms per frame, flat from 25 frames to 400.

It does not undo a delay pattern. An AR model that emits these codes typically offsets stream k by k steps; realigning them is a property of that model, not of the codec, so feed it aligned codes.

Files

  • encodec-32khz.gguf -- the model, exported with loom-exporter.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · loom-py-rt

Нельзя запустить

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
1e2ecc1

0 моделей