Downloads · 30 days
12
20% of all-time downloads
3bitquantizers/LFM2.5-Audio-1.5B-JP-jp-station-v2-vad-trimmed
LFM2.5-Audio-1.5B-JP-jp-station-v2-vad-trimmed is a text-to-audio model from 3bitquantizers. Use it for the text-to-audio task on the model card, and read the license before you ship it in a product. The card lists the license as other.
Fine-tuned checkpoint for LiquidAI/LFM2.5-Audio-1.5B-JP, trained on Japanese station announcement clips from 3bitquantizers/jp-station-full-v2-vad-trimmed-openai-clip-asr-strict.
Downloads · 30 days
12
20% of all-time downloads
All-time downloads
59
Public
Parameters
1.5B
3.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.6 GB · 100%
How the weights are stored.
BF161.5B · 100%
From the Hugging Face model README
Fine-tuned checkpoint for LiquidAI/LFM2.5-Audio-1.5B-JP, trained on Japanese station announcement clips from 3bitquantizers/jp-station-full-v2-vad-trimmed-openai-clip-asr-strict.
The model was trained for Japanese TTS with the system prompt:
Perform TTS in japanese.
LiquidAI/LFM2.5-Audio-1.5B-JP3bitquantizers/jp-station-full-v2-vad-trimmed-openai-clip-asr-strictThis checkpoint uses the liquid-audio package.
import soundfile as sf
import torch
from liquid_audio import ChatState, LFM2AudioModel, LFM2AudioProcessor
repo_id = "3bitquantizers/LFM2.5-Audio-1.5B-JP-jp-station-v2-vad-trimmed"
prompt = "次は、渋谷、渋谷です。お出口は右側です。"
processor = LFM2AudioProcessor.from_pretrained(repo_id, device="cuda").eval()
model = LFM2AudioModel.from_pretrained(repo_id, device="cuda", dtype=torch.bfloat16).eval()
chat = ChatState(processor)
chat.new_turn("system")
chat.add_text("Perform TTS in japanese.")
chat.end_turn()
chat.new_turn("user")
chat.add_text(prompt)
chat.end_turn()
chat.new_turn("assistant")
frames = []
with torch.no_grad():
for token in model.generate_sequential(
**chat,
max_new_tokens=512,
text_temperature=None,
text_top_k=1,
audio_temperature=0.8,
audio_top_k=4,
):
if token.numel() == 1:
continue
if token[0].item() == 2048:
break
frames.append(token.detach())
codes = torch.stack(frames, dim=1).to(device="cuda", dtype=torch.long)
wav = processor.mimi.eval().decode(codes.unsqueeze(0))[0].float().cpu().squeeze()
sf.write("sample.wav", wav.numpy(), 24_000)
This is a narrow-domain fine-tune for Japanese station-announcement style speech. It is not intended as a general-purpose speech model.