Saltar al contenido
ModelPublicadoExterno
Descargar

Shuka 1

Shuka v1 is a language model which natively understands audio in Indic languages. It is an encoder-decoder model built by combining two models: Our state-of-the-art, in-house, audio encoder: Saaras v1 Meta’s...

TipoOtherVersiónRevision cdc20cfBcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
2,42–4,66 GB
Versión
vRevision cdc20cf
Actualizado
21 sept 2026
Descargas
269
Fuente
Hugging Face

Descripción de la fuente

Shuka v1 is a language model which natively understands audio in Indic languages. It is an encoder-decoder model built by combining two models:

  • Our state-of-the-art, in-house, audio encoder: Saaras v1
  • Meta’s Llama3-8B-Instruct as the decoder

The encoder and decoder are connected by a small projector with ~60M parameters. During training, only the projector weights are finetuned while the rest of the network is frozen. Following our tradition of training models frugally, we train Shuka v1 on less than 100 hours of audio.

Though we only finetune the projector on English and Hindi data, the multilingual nature of our encoder makes Shuka v1 perform well on zero-shot QA in other Indic languages as well. We have tested on the model on Bengali, English, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, and Telugu.

See what Shuka v1 can do in this demo video, and get started by using huggingface pipeline, as follows:

# install libraries
# pip install transformers==4.41.2 peft==0.11.1 librosa==0.10.2

import transformers
import librosa

# load the model pipeline on gpu:0
pipe = transformers.pipeline(model='sarvamai/shuka_v1', trust_remote_code=True, device=0, torch_dtype='bfloat16')

# get a sample audio
# wget https://huggingface.co/sarvamai/shuka_v1/resolve/main/hi-question.webm

audio, sr = librosa.load("./hi-question.webm", sr=16000)
turns = [
          {'role': 'system', 'content': 'Respond naturally and informatively.'},
          {'role': 'user', 'content': '<|audio|>'}
        ]

pipe({'audio': audio, 'turns': turns, 'sampling_rate': sr}, max_new_tokens=512)

For more details, please see our blog.

Fuentes

1 fuente
Hugging FacePrincipalVersión cdc20cf7b92857bb2b59c4e9b6b09702586e9835
huggingface.co/sarvamai/shuka-1/tree/cdc20cf7b92857bb2b59c4e9b6b09702586e9835

Verificado 15 ago

Artefactos del modelo

4 artefactos

model-00001-of-00004.safetensors

safetensors · 4,60 GB · SHA-256 579097641f55…e95b · Hugging Face

Descargar

model-00002-of-00004.safetensors

safetensors · 4,66 GB · SHA-256 15f03a7aa67f…0d96 · Hugging Face

Descargar

model-00003-of-00004.safetensors

safetensors · 4,58 GB · SHA-256 2e97a7b690d3…5620 · Hugging Face

Descargar

model-00004-of-00004.safetensors

safetensors · 2,42 GB · SHA-256 dfbb9312a19a…0d44 · Hugging Face

Descargar

Extractos de fuentes

2 extractos

--- library_name: transformers pipeline_tag: audio-text-to-text license: llama3 language: - en - hi --- `Shuka v1` is a language model which natively understands audio in Indic languages. It is an encoder-decoder model built by combining two models: - Our state-of-the-art, in-house, audio encoder: Saaras v1 - Meta’s Llama3-8B-Instruct as the decoder The encoder and decoder are connected by a small projector with ~60M parameters. During training, only the projector weights are finetuned while the rest of the network is frozen. Following our tradition of training models frugally, we train `Shuka v1` on less than 100 hours of audio. Though we only finetune the projector on English and Hindi data, the multilingual nature of our encoder makes `Shuka v1` perform well on zero-shot QA in other Indic languages as well. We have tested on the model on Bengali, English, Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya, Punjabi, Tamil, and Telugu. See what `Shuka v1` can do in this [demo video](https://www.youtube.com/watch?v=VgJhjCPbORs), and get started by using huggingface pipeline, as follows: ``` # install libraries # pip install transformers==4.41.2 peft==0.11.1 librosa==0.10.2 import transformers import librosa # load the model pipeline on gpu:0 pipe = transformers.pipeline(model='sarvamai/shuka_v1', trust_remote_code=True, device=0, torch_dtype='bfloat16') # get a sample audio # wget https://huggingface.co/sarvamai/shuka_v1/resolve/main/hi-question.webm audio, sr = librosa.load("./hi-question.webm", sr=16000) turns = [ {'role': 'system', 'content': 'Respond naturally and informatively.'}, {'role': 'user', 'content': '<|audio|>'} ] pipe({'audio': audio, 'turns': turns, 'sampling_rate': sr}, max_new_tokens=512) ``` For more details, please see our [blog](https://www.sarvam.ai/blogs/shuka-v1).

Source context: 269 downloads · 92 likes · Pipeline audio-text-to-text · Library transformers · Repo sarvamai/shuka-1