SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.06666 · ICLR · 2025

LLaMA-Omni: Seamless Speech Interaction with Large Language Models

Yang Feng, Shaolei Zhang, Zhengrui Ma, Qingkai Fang, Yan Zhou, Shoutao Guo, Speech Vocoder

arXiv · PDF · Open in the Atlas

Code that ran

5 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 3 failures of our instrument; 7 no recorded run), measured 2026-11-24; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.06666.json · badge: /api/ran/2409.06666.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wntg/LLaMA-Omni reimplementation (classifier label)
classifier basis: classifier_2025
4 ran · 6 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
ictnlp/llama-omni marked official in Papers with Code
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
EncoderProjectorConcat Ran
ran on a synthesized input · constructed an object; no result was computed
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("4c5103ee8669c997")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, EncoderProjectorConcat: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a minimal config class with the required attributes
class Config:
    def __init__(self):
        self.speech_encoder_ds_rate = 2
        self.speech_encoder_hidden_size = 4
        self.hidden_size = 8

config = Config()

# Create a sample input tensor
# batch_size=2, seq_len=6, encoder_dim=4
x = torch.randn(2, 6, 4)

ARGS = {
    "config": config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EncoderProjectorConcat — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EncoderProjectorConcat output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
OmniSpeechConfig Ran
ran on a synthesized input · constructed an object; no result was computed
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("4da597212fee8c5f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, OmniSpeechConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from transformers import LlamaConfig

torch.manual_seed(0)

# OmniSpeechConfig inherits from LlamaConfig, so we need to provide
# all parameters that LlamaConfig accepts in its __init__
ARGS = {
    "vocab_size": 32000,
    "hidden_size": 512,
    "intermediate_size": 1024,
    "num_hidden_layers": 2,
    "num_attention_heads": 8,
    "num_key_value_heads": 8,
    "hidden_act": "silu",
    "hidden_dropout_prob": 0.1,
    "attention_probs_dropout_prob": 0.1,
    "initializer_range": 0.02,
    "rms_norm_eps": 1e-6,
    "use_cache": True,
    "pad_token_id": 0,
    "bos_token_id": 1,
    "eos_token_id": 2,
    "pretraining_tp": 1,
    "tie_word_embeddings": False,
    "rope_theta": 10000.0,
    "rope_scaling": None,
    "attention_bias": False,
    "attention_implementation": "eager",
    "max_position_embeddings": 2048,
    "mlp_bias": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type OmniSpeechConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a OmniSpeechConfig output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_speech_encoder Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("b262640dbfbc7946")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned MockWhisperEncoder. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class MockConfig:
    """Mock configuration object with required attributes."""
    def __init__(self):
        self.speech_encoder = 'base'
        self.speech_encoder_type = 'whisper'

class MockLayerNorm(nn.Module):
    """Mock LayerNorm from whisper.model."""
    def __init__(self, normalized_shape, eps=1e-5, elementwise_affine=True):
        super().__init__()
        self.normalized_shape = normalized_shape
        self.eps = eps
        self.elementwise_affine = elementwise_affine
        if elementwise_affine:
            self.weight = nn.Parameter(torch.ones(normalized_shape))
            self.bias = nn.Parameter(torch.zeros(normalized_shape))
    
    def forward(self, x):
        return nn.functional.layer_norm(x, self.normalized_shape, self.weight if self.elementwise_affine else None, 
                                        self.bias if self.elementwise_affine else None, self.eps)

class MockWhisperEncoder(nn.Module):
    """Mock Whisper encoder with LayerNorm."""
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv1d(80, 512, kernel_size=3)
        self.ln_post = MockLayerNorm(512)
    
    def forward(self, x):
        return x

class MockWhisperModel(nn.Module):
    """Mock Whisper model."""
    def __init__(self):
        super().__init__()
        self.encoder = MockWhisperEncoder()
    
    def forward(self, x):
        return x

def mock_whisper_load_model(name, device):
    """Mock whisper.load_model function."""
    return MockWhisperModel()

# Patch the whisper module
import sys
from types import ModuleType

whisper_module = ModuleType('whisper')
whisper_module.load_model = mock_whisper_load_model

model_module = ModuleType('model')
model_module.LayerNorm = MockLayerNorm

whisper_module.model = model_module

sys.modules['whisper'] = whisper_module
sys.modules['whisper.model'] = model_module

config = MockConfig()

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, whisper — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MockWhisperEncoder — a MockWhisperEncoder output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MockWhisperEncoder output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_speech_projector Ran
ran; our contract draft was wrong, not the code
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("cf80d0b1cc5418ca")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EncoderProjectorConcat. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class Config:
    def __init__(self):
        self.speech_encoder_ds_rate = 2
        self.speech_encoder_hidden_size = 4
        self.hidden_size = 8
        self.speech_projector_type = 'linear'

config = Config()

ARGS = {
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EncoderProjectorConcat — a EncoderProjectorConcat output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a EncoderProjectorConcat output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_list Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from kahnchana/mvu
pointer only · get_code("076c252c52cbb161")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

OmniSpeechLlamaForCausalLM Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("be916bc2b37c9888")
How it ran

no invocation recorded.

OmniSpeechLlamaForCausalLM Not yet run
unverified (harvested, no recorded run)
ictnlp/llama-omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("90a4ef0aa95d7a5f")
How it ran

no invocation recorded.

OmniSpeechLlamaModel Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("56462b063fec0c44")
How it ran

no invocation recorded.

OmniSpeechMetaForCausalLM Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("79aa45784d52b456")
How it ran

no invocation recorded.

OmniSpeechMetaModel Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("b28bc26a5d2baca8")
How it ran

no invocation recorded.

WhisperWrappedEncoder Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/model/language_model/omni_speech_llama.py
code served (permissive licence) · get_code("c03b4f330d42219f")
How it ran

no invocation recorded.

collate_fn Not yet run
unverified (harvested, no recorded run)
wntg/LLaMA-Omni/omni_speech/train/stage2.py
code served (permissive licence) · get_code("300383390ba66179")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 11 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
split_list 197 other papers
92 dated earlier, 16 the same month, 82 later, 6 same year, order not determinable, 1 undated
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 194 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Models like GPT-4o enable real-time interaction with large language models (LLMs) through speech, significantly enhancing user experience compared to traditional text-based interaction. However, there is still a lack of exploration on how to build speech interaction models based on open-source LLMs. To address this, we propose LLaMA-Omni, a novel end-to-end model architecture designed for low-latency and high-quality speech interaction with LLMs. LLaMA-Omni integrates a pretrained speech encoder, a speech adaptor, an LLM, and a streaming speech decoder. It eliminates the need for speech transcription, and can simultaneously generate text and speech responses directly from speech instructions with extremely low latency. We build our model based on the latest Llama-3.1-8B-Instruct model. To align the model with speech interaction scenarios, we construct a dataset named InstructS2S-200K, which includes 200K speech instructions and corresponding speech responses, with a style that better matches the characteristics of speech interaction scenarios. Experimental results show that compared to previous speech-language models, LLaMA-Omni provides better responses in both content and style, with a response latency as low as 236ms. Additionally, training LLaMA-Omni takes less than 3 days on just 4 GPUs, paving the way for the efficient development of speech-language models in the future. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.06666")
get_code_for_paper("2409.06666")
have("2409.06666")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.06666.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.06666.svg)](https://syntology.ai/paper/2409.06666)

Connect an agent — have() is free.