/ Модель

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

Контекст
512 токенов
Параметры
124 млн
Лицензия
BSD 3-Clause
Архитектура
t5 · dense
Базовая модель
codet5p-220m
Опубликована
22 апр 2026

codet5p-strudel-music

Генерация текстаТекст → текст
239скачиваний за 30 дней1лайквеса обновлены22 апр 2026

Описание модели

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

Русское описание этой модели ещё готовится. Пока можно заглянуть в карточку модели от автора ниже.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

Открыть на Hugging Face

CodeT5+ Strudel Music Generator 🎵🎛️

An encoder-decoder transformer fine-tuned to generate Algorave music patterns in Strudel syntax from natural language descriptions of genre, mood, and musical intent.

Model Description

This model takes natural language descriptions like "dark techno beat with heavy kick and industrial percussion" and generates valid Strudel/TidalCycles JavaScript code that can be directly pasted into strudel.cc to produce live music.

Performance

MetricTest Set
BLEU97.17
ROUGE-L97.43
Exact Match84.78%
Valid Strudel Syntax100%

Usage

from transformers import T5ForConditionalGeneration, AutoTokenizer

model = T5ForConditionalGeneration.from_pretrained("Adam-Ben-Khalifa/codet5p-strudel-music")
tokenizer = AutoTokenizer.from_pretrained("Adam-Ben-Khalifa/codet5p-strudel-music")

def generate_strudel(description, num_beams=5, max_length=384):
    input_text = "generate strudel: " + description
    inputs = tokenizer(input_text, return_tensors="pt", max_length=256, truncation=True)
    outputs = model.generate(**inputs, max_new_tokens=max_length, num_beams=num_beams, early_stopping=True)
    return tokenizer.decode(outputs[0], skip_special_tokens=True)

# Generate music patterns!
print(generate_strudel("Dark techno beat with heavy kick and industrial percussion"))
# → stack(s("bd*4"), s("~ cp ~ cp"), s("hh*8").gain(0.4), note("c3 ~ e3 ~ g3 ~ e3 ~").s("triangle").gain(0.7))

print(generate_strudel("Calm ambient drone with deep reverb and slowly evolving filter"))
# → note("<c3 eb3 g3 bb3>").s("sine").room(0.9).roomsize(4).lpf(2000).slow(4)

print(generate_strudel("Acid house with squelchy 303 bassline and resonant filter"))
# → stack(s("bd*4"), note("c2 c2 c2 eb2").s("sawtooth").lpf(sine.range(200,4000).slow(4)).resonance(15))

print(generate_strudel("Aggressive drum and bass breakbeat with wobbling bass"))
# → stack(s("[bd ~ ~ bd] [~ ~ bd ~]").fast(2), s("[~ ~ ~ ~] [sd ~ ~ ~]").fast(2).room(0.3),
#     s("hh*16").gain(0.35).lpf(6000),
#     note("[c2 ~ c2 ~] [~ eb2 ~ c2]").s("sawtooth").lpf(sine.range(200,2000).fast(4)).fast(2))

Supported Genres & Styles

The model understands prompts covering:

  • 🏭 Techno (minimal, industrial, dark, acid)
  • 🏠 House (deep, funky, progressive, UK garage)
  • 🌊 Ambient (drone, atmospheric, dark ambient, meditation)
  • 🥁 Drum & Bass (liquid, neurofunk, jungle)
  • 🎤 Hip Hop (boom bap, trap, lo-fi, trip hop)
  • 🎹 Electro (synthwave, italo disco, electropop)
  • 🌀 Trance (psytrance, uplifting, progressive)
  • 🔧 Experimental (IDM, glitch, noise, polyrhythmic)
  • 🎸 Dub (dubstep, dub techno, reggae)
  • 🎮 Chiptune (8-bit, retro gaming)
  • 🌍 World (African polyrhythms)
  • 💿 Vaporwave, Footwork, Broken beat, Nu jazz

Strudel Syntax Output

The model generates valid Strudel JavaScript DSL including:

  • s() - sample triggers (drums, synths)
  • note() - pitched notes with synth selection
  • n() - scale-degree notation
  • stack() - layered patterns
  • .fast(), .slow() - tempo modifiers
  • .room(), .delay() - reverb/delay effects
  • .lpf(), .hpf() - filters
  • .gain(), .distort(), .crush() - dynamics
  • .every(), .rev(), .degradeBy() - pattern transformations
  • .cpm() - tempo in cycles per minute

Generated code can be pasted directly into strudel.cc/workshop to hear the music!

Training Details

  • Hardware: NVIDIA L4 GPU (24GB)
  • Training time: ~8 minutes (30 epochs)
  • Optimizer: AdamW (lr=5e-5, cosine schedule, 10% warmup)
  • Batch size: 8 × 4 gradient accumulation = 32 effective
  • Precision: FP16
  • Loss: Cross-entropy on decoder output tokens

Limitations

  • The model was trained on a synthetic dataset of ~900 patterns. While it achieves high metrics on the test set, real-world prompts with very specific or unusual requests may produce less accurate results.
  • Complex multi-layer compositions with many instruments may be simplified.
  • The model doesn't have real-time knowledge of the full Strudel API, just the most common patterns.
  • BPM suggestions are approximate and depend on the training data distribution.

Citation

@misc{codet5p-strudel-music,
  title={CodeT5+ Strudel Music Generator},
  author={Adam Ben Khalifa},
  year={2026},
  note={Fine-tuned on Salesforce/codet5p-220m for NL to Strudel code generation},
  url={https://huggingface.co/Adam-Ben-Khalifa/codet5p-strudel-music}
}

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

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

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
T5ForConditionalGeneration
Ревизия весов
91ea634

0 моделей