Downloads · 30 days
9
4% of all-time downloads
LABahasa/llama-labahasa-11B
llama-labahasa-11B is a machine learning model from LABahasa. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
LABahasa 11B is a multimodal LLM that combines text, audio, and image processing capabilities. Built upon OpenAI's Whisper and Meta's Llama 3.2 architectures, this model has been specifically optimized for Indonesian…
Downloads · 30 days
9
4% of all-time downloads
All-time downloads
228
Public
Parameters
11.4B
45.4 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors45.4 GB · 100%
From the Hugging Face model README
LABahasa 11B is a multimodal LLM that combines text, audio, and image processing capabilities. Built upon OpenAI's Whisper and Meta's Llama 3.2 architectures, this model has been specifically optimized for Indonesian language understanding while maintaining English capability. The model was trained on 9 billion high quality bilingual dataset comprising Indonesian and English speech and text data.
Model Architecture: LaBahasa 11B uses a feed-forward network to project audio embeddings from Whisper Large encoder to Llama's input embeddings, combined with image/text inputs to enable multimodal understanding.
Model Developer: Meeting.AI and Lintasarta
This model is intended for various NLP tasks that require text/audio/image understanding and generating Indonesian language.
pip install --upgrade pip
pip install --upgrade transformers
For audio input, LaBahasa 11B uses a special placeholder token <|audio|>, which then be replaced with the projected audio embedding.
import transformers
import torch
import librosa, requests
from PIL import Image
model = transformers.AutoModel.from_pretrained('LABahasa/llama-labahasa-11B',
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device_map='cuda')
processor = transformers.AutoProcessor.from_pretrained('LABahasa/llama-labahasa-11B',
trust_remote_code=True)
# Example with all modalities
url = "https://huggingface.co/datasets/huggingface/documentation-images/resolve/0052a70beed5bf71b92610a43a52df6d286cd5f3/diffusers/rabbit.jpg"
image = Image.open(requests.get(url, stream=True).raw)
audio_path = "deskripsi.mp3"
audio, * = librosa.load(audio_path, sr=22050)
messages = [
{
'role': 'system',
'content': 'You are a helpful AI assistant.'
},
{
"role": "user",
"content": [
{"type": "image"},
{"type": "text", "text": "\n<|audio|>\n"},
],
}
]
input_text = processor.tokenizer.apply_chat_template(
messages, add_generation_prompt=True, tokenize=False
)
inputs = processor(
images=image,
text=input_text,
audio=audio,
return_tensors="pt",
sampling_rate=16000,
).to(model.device)
input_len = inputs.input_ids.shape[1]
outputs = model.generate(**inputs, max_new_tokens=100)
print(processor.decode(outputs[0][input_len:]))
| Metric | Qwen2.5-14B | llama-labahasa-11B |
|---|---|---|
| MMLU | 66.3 | 67.2 |
| Multi-Mathematics | 63.7 | 64.5 |
| MMMU | 68.2 | 68.2 |
| id-MMLU | 63.1 | 72.2 |
Training regime: BF16 mixed precision training
Training Infrastructure: 8xH100 GPUs
Training Time: 25 hours
LABahasa 11B was trained on an extensive 9 billion high quality bilingual dataset comprising Indonesian and English speech and text data.
LABahasa 11B was trained on customized training methodology modifications to enhance: