Ultravox v0.6 Gemma 3 12B - Ukrainian

A multimodal speech-language model that can understand Ukrainian speech and respond intelligently.

Quick Start

import torch
from transformers import AutoProcessor, AutoModel
import librosa

model_id = "roman4work/ultravox-v0.6-gemma-3-12b-uk"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModel.from_pretrained(model_id, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="cuda")

audio, sr = librosa.load("audio.wav", sr=16000)

# Transcription mode
messages = [{"role": "user", "content": "Repeat the following text, without any explanation: <|audio|>"}]
# OR Conversation mode: messages = [{"role": "user", "content": "<|audio|>"}]

text = processor.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=text, audio=audio, sampling_rate=16000, return_tensors="pt")
inputs = {k: v.to("cuda") if hasattr(v, "to") else v for k, v in inputs.items()}

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Modes

Mode Prompt Result
Transcription `Repeat the following text, without any explanation: < audio
Conversation `< audio

Training

  • Dataset: Common Voice 17.0 Ukrainian (25K samples)
  • Steps: 8,000 | Loss: 0.046 | Time: 3h 17m
  • Hardware: 2x NVIDIA B200

License

Apache 2.0

Downloads last month
18
Safetensors
Model size
51.8M params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for roman4work/ultravox-v0.6-gemma-3-12b-uk

Finetuned
(386)
this model

Dataset used to train roman4work/ultravox-v0.6-gemma-3-12b-uk