/ Модель

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

Контекст
4 096 токенов
Параметры
278 млн
Лицензия
Apache 2.0
Архитектура
gemma4_text · dense
Библиотека
transformers
Опубликована
20 ноя 2026

telugu-song-model

Генерация текстаТекст → текст3 профессии
144скачиваний за 30 дней0лайковвеса обновлены20 ноя 2026

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

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

Небольшая модель, которая продолжает заданную строку и сочиняет тексты песен на телугу в форме индийских кинопесен.

Модель telugu-song-model разработана AGK FIRE INC на основе Udgam Labs Vemana-Base и дообучена на 665 телугуязычных песнях из индийских фильмов 1991–2024 годов. Это плотная авторегрессионная Gemma4-текстовая модель с 278,1 млн параметров, контекстом 4096 токенов и лицензией Apache-2.0; доступны веса Safetensors и вариант GGUF Q8_0.

Модель продолжает заданную первую строку в форме песни на телугу: создаёт рифмующиеся строки и строфы в стиле pallavi и charanam с возвращающимся припевом. Для генерации рекомендуется sampling с температурой 0,8, top-p 0,9 и штрафом за повторы 1,15: жадное декодирование может зацикливаться. По описанию автора, на тесте из 40 отложенных песен дословных совпадений не было; модель предназначена для создания новых текстов, а не для получения оригинальных текстов песен. Она может выдумывать или искажать слова, особенно в поздних строфах. README рекомендует личное или исследовательское использование и предостерегает от публикации результатов, дословно воспроизводящих защищённые авторским правом песни.

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

  • сочинение новых текстов песен на телугу по первой строке
  • генерация строф и припевов в форме телугуязычных кинопесен
  • создание рифмованных строк с повторяющимся припевом
  • эксперименты с генерацией песенных текстов на телугу

Ограничения

Жадное декодирование может зацикливаться; поздние строфы могут содержать выдуманные или искажённые слова. Модель не предназначена для дословного воспроизведения реальных песен; автор сообщает ноль точных совпадений на тесте из 40 отложенных песен.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

telugu-song-model

Developed by AGK FIRE INC.

A small Telugu movie-song model: Udgam Labs Vemana-Base (278M parameters) fine-tuned on 665 Telugu film songs (1991–2024), so it writes in the form of Telugu film lyrics — pallavi, charanam-style stanzas, and the returning refrain.

What it does

Given the first line of a song, it continues in Telugu song form: rhyming lines, parallel phrasing, and the pallavi coming back — the structure of a film song. It learned the form of Telugu songs well. What it does not do is quote real songs verbatim — see Evaluation below.

Evaluation (honest result)

Verbatim exact-match test on 40 held-out songs (first line given as the cue, greedy decoding, exact match after Unicode + whitespace normalisation):

ModelVerbatim exact match
Vemana-Base (base)0 / 40
telugu-song-model (fine-tuned)0 / 40

Low is good here: an exact match would mean the model copied a real, copyrighted song. Both models score 0 — the fine-tune did not memorise the held-out songs (they were excluded from training), and the base model had not memorised them from the web either. What changed is visible in the outputs: the fine-tuned model writes song-shaped Telugu — rhyming stanzas, parallel lines, a returning pallavi — where the base model wandered off-form. For accurate verbatim lyrics, use a licensed source, not this model.

Decoding matters more than training here. With greedy decoding the fine-tuned model loops, repeating the cue line itself ("చుట్టమల్లే చుట్టేస్తాంది" ×8, "రం రం" ×30+) — songs repeat by design, and greedy always picks the single most likely next word, so it gets stuck. With sampling (temperature 0.8, top-p 0.9, repetition penalty 1.15) the same model writes a real song from a fresh first line. Use sampling, not greedy, with this model.

Training data

  • Source: Akashpalli/Telugu_songs_lyrics on Hugging Face — 717 songs, years 1991–2024, Telugu script, with movie / lyricist / music director / year metadata. Scraped lyrics carry occasional typos, left as-is.
  • Training documents: 1,330 — raw songs (665) and first-line → song cues (665). The 40 evaluation songs were excluded from every document type.
  • Dataset: agk4444/telugu-songs-finetune (private).

Training procedure

  • Base: udgamlabs/Vemana-Base (278,214,144 params, Gemma-4 text layout, own 32,000-token SentencePiece tokenizer, Apache-2.0).
  • 3 epochs, learning rate 5e-5 with cosine decay, 3% warmup.
  • Effective batch 32 (micro-batch 2 × 2 GPUs × 8 accumulation steps).
  • fp32 weights with fp16 autocast (T4 has no bf16), activation checkpointing, max sequence length 1,024.
  • Hardware: Kaggle 2× NVIDIA T4, ~18 min, 126 steps. Final training loss ≈ 2.45 (2.88 at step 20 → 2.45 at step 80).
  • Software: transformers 5.23.0, torch, datasets, accelerate.

How to use

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

tok = AutoTokenizer.from_pretrained("agk4444/telugu-song-model")
model = AutoModelForCausalLM.from_pretrained(
    "agk4444/telugu-song-model", dtype=torch.float32
)
model.eval()

# Sampling, NOT greedy — greedy loops on song repetition (see Evaluation)
cue = "మొదటి పంక్తి: చందమామ నవ్వింది నీ కళ్ళలో\nపూర్తి పాట:\n"
ids = tok(cue, return_tensors="pt")
out = model.generate(**ids, max_new_tokens=300, do_sample=True,
    temperature=0.8, top_p=0.9, repetition_penalty=1.15,
    pad_token_id=tok.eos_token_id)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))

GGUF (CPU, llama.cpp)

telugu-song-model-q8_0.gguf (~285 MB, Q8_0) — the same fine-tuned weights, quantized for CPU inference with llama.cpp. Verified on CPU with sampling settings matching the transformers test above.

# use llama-completion, not llama-cli: llama-cli wraps the prompt in a chat
# template, which this base-style model does not want
llama-completion -m telugu-song-model-q8_0.gguf \
  -f prompt.txt -n 200 --temp 0.8 --top-p 0.9 \
  --repeat-penalty 1.15 --repeat-last-n 64

with prompt.txt containing:

మొదటి పంక్తి: చందమామ నవ్వింది నీ కళ్ళలో
పూర్తి పాట:

Note: the config.json in this repo has the architecture fields corrected (head_dim 128, first layer sliding_attention, sliding_window 4096) so llama.cpp can load it — the values the notebook saved from the base model (head_dim 64, all layers full_attention) crash llama.cpp's Gemma-4 support with a sliding-window assertion. The weights are unchanged; the tensor shapes (q_proj 1024×1024) prove head_dim 128 is correct.

Limitations

  • No verbatim recall of real songs (0/40, see above). Do not use it as a source of lyrics.
  • Greedy decoding loops — always use sampling with a repetition penalty.
  • Small (278M) base model: later stanzas wobble, it invents words, and lines can be garbled. First stanzas are the strongest.
  • Film lyrics are copyrighted: this model is for personal/research use; do not publish outputs that reproduce a real song verbatim.
  • Telugu only. Context 1,024 tokens (~570 Telugu words).

License

Apache-2.0, same as the base model.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma4ForCausalLM
Ревизия весов
1808691

0 моделей