SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.06660 · 2024

MuMu-LLaMA: Multi-modal Music Understanding and Generation via Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

17 of 19 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 14 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2412.06660.json · badge: /api/ran/2412.06660.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
shansongliu/M2UGen canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
shansongliu/MuMu-LLaMA canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
FunctionStatusWhere it lives
add_special_tokens Ran
ran; our contract draft was wrong, not the code
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/audioldm2/modeling_audioldm2.py
code served (permissive licence) · get_code("cec37d613e438bcc")
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 tuple. 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

torch.manual_seed(0)

# Construct arguments for add_special_tokens
batch_size = 2
seq_length = 5
hidden_dim = 4

# hidden_states: (batch_size, seq_length, hidden_dim)
hidden_states = torch.randn(batch_size, seq_length, hidden_dim)

# attention_mask: (batch_size, seq_length)
attention_mask = torch.ones(batch_size, seq_length, dtype=torch.long)

# sos_token: (1, hidden_dim) - will be expanded to (batch_size, 1, hidden_dim)
sos_token = torch.randn(1, hidden_dim)

# eos_token: (1, hidden_dim) - will be expanded to (batch_size, 1, hidden_dim)
eos_token = torch.randn(1, hidden_dim)

ARGS = {
    "hidden_states": hidden_states,
    "attention_mask": attention_mask,
    "sos_token": sos_token,
    "eos_token": eos_token,
}
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 tuple — a tuple output has no array shape of its own; none is 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
adjust_learning_rate Ran
ran, honoured the contract we drafted
shansongliu/MuMu-LLaMA/MuMu-LLaMA/util/lr_sched.py
pointer only (licence: MIT); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("bd3578806ecf5ac2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from quandao10/slct, and GitHub detected no licence in that repository when it was checked. 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.

apply_rotary_emb Ran
ran; our contract draft was wrong, not the code
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/llama.py
code served (permissive licence) · get_code("c2fac4e6b301302f")
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 tuple, ndim 5, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# Analyze the function:
# - apply_rotary_emb takes xq, xk, freqs_cis
# - xq and xk are reshaped to (*xq.shape[:-1], -1, 2) and viewed as complex
# - freqs_cis is reshaped via reshape_for_broadcast to match xq_ shape
# - reshape_for_broadcast expects:
#   - ndim >= 2 (asserts 0 <= 1 < ndim)
#   - freqs_cis.shape == (x.shape[1], x.shape[-1]) where x is xq_
#   - xq_ has shape (*xq.shape[:-1], -1) after reshaping
#
# Let's work backwards:
# - xq has shape (batch, seq_len, head_dim) where head_dim is even
# - After reshape(*xq.shape[:-1], -1, 2): (batch, seq_len, head_dim//2, 2)
# - After view_as_complex: (batch, seq_len, head_dim//2)
# - So xq_ has shape (batch, seq_len, head_dim//2)
# - freqs_cis must have shape (seq_len, head_dim//2)

batch_size = 2
seq_len = 3
head_dim = 4

# xq shape: (batch, seq_len, head_dim)
xq = torch.randn(batch_size, seq_len, head_dim)

# xk shape: (batch, seq_len, head_dim)
xk = torch.randn(batch_size, seq_len, head_dim)

# freqs_cis shape: (seq_len, head_dim//2) as complex tensor
# After xq is reshaped to (batch, seq_len, head_dim//2, 2) and viewed as complex,
# it becomes (batch, seq_len, head_dim//2)
# So freqs_cis needs shape (seq_len, head_dim//2)
freqs_cis = torch.randn(seq_len, head_dim // 2, dtype=torch.complex64)

ARGS = {
    "xq": xq,
    "xk": xk,
    "freqs_cis": freqs_cis,
}
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 tuple, ndim 5, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
format_prompt Ran
ran; our contract draft was wrong, not the code
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/utils.py
code served (permissive licence) · get_code("fa5a132156cdaf6d")
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 str. 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

instruction = "What is the capital of France?"

ARGS = {
    'instruction': instruction
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
generate_text Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUEdit/mistral.py
code served (permissive licence) · get_code("f016081a436c0aff")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# Stand-in tokenizer class
class MockTokenizer:
    def encode(self, text, return_tensors=None):
        # Return a small tensor of token IDs
        tokens = torch.tensor([[101, 2054, 2003, 1045]], dtype=torch.long)
        if return_tensors == 'pt':
            return tokens
        return tokens.tolist()
    
    def batch_decode(self, token_ids, skip_special_tokens=False):
        # Return decoded text for each sequence
        batch_size = token_ids.shape[0]
        return [f"generated text {i}" for i in range(batch_size)]

# Stand-in model class with generate method
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def generate(self, input_ids, do_sample=True, temperature=1.0, 
                 top_p=0.9, top_k=50, num_return_sequences=1, max_new_tokens=128):
        # Return generated token IDs
        batch_size = input_ids.shape[0]
        output_length = input_ids.shape[1] + max_new_tokens
        output = torch.randint(0, 1000, (batch_size * num_return_sequences, output_length), dtype=torch.long)
        return output

# Create instances
device = torch.device('cpu')
model = MockModel()
tokenizer = MockTokenizer()
prompt = "What is the meaning of life?"

ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'device': device,
    'prompt': prompt,
    'max_length': 1024,
    'temperature': 1.9,
    'top_p': 0.9,
    'top_k': 50,
    'num_return_sequences': 2,
    'max_new_tokens': 128
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
get_audio_list Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUEdit/prepare.py
code served (permissive licence) · get_code("bd7422108ba38202")
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 dict. 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 os
import tempfile
import shutil

# Create a temporary directory structure with mock mp3 files
temp_dir = tempfile.mkdtemp()

# Create subdirectories and mock mp3 files
os.makedirs(os.path.join(temp_dir, 'subdir1'), exist_ok=True)
os.makedirs(os.path.join(temp_dir, 'subdir2'), exist_ok=True)

# Create some mock mp3 files (empty files are fine for this function)
open(os.path.join(temp_dir, 'subdir1', 'song1.mp3'), 'w').close()
open(os.path.join(temp_dir, 'subdir1', 'song2.mp3'), 'w').close()
open(os.path.join(temp_dir, 'subdir2', 'song3.mp3'), 'w').close()
open(os.path.join(temp_dir, 'subdir1', 'other_file.txt'), 'w').close()

ARGS = {
    'dir_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_json Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUEdit/prepare.py
code served (permissive licence) · get_code("67c2fccdb8646607")
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 dict. 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 json
import tempfile
import os

# Create a temporary JSON file for testing
temp_dir = tempfile.mkdtemp()
json_file_path = os.path.join(temp_dir, "test_data.json")

# Write a simple JSON file
test_data = {
    "name": "test",
    "values": [1, 2, 3],
    "nested": {"key": "value"}
}

with open(json_file_path, 'w') as f:
    json.dump(test_data, f)

# Define ARGS mapping every parameter of load_json to a value
ARGS = {
    "file_path": json_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_json Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUImage/llava_caption.py
code served (permissive licence) · get_code("4d1ebce7f6f7cc0e")
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 dict. 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 json
import tempfile
import os

# Create a temporary JSON file with valid data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test_data.json")

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(temp_file, 'w') as f:
    json.dump(test_data, f)

ARGS = {
    "file_path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
load_jsonl Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUImage/llava_caption.py
pointer only (licence: MIT); the stored copy get_code serves, from xfey/mctbench, is pointer only (licence: NOASSERTION) · get_code("9eb0b14fc790de41")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xfey/mctbench, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

pack_to_metadata Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUEdit/prepare.py
code served (permissive licence) · get_code("a691506445cd09a5")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
music_dir = os.path.join(temp_dir, 'Looperman_Loops')
os.makedirs(music_dir, exist_ok=True)

# Create subdirectories and dummy mp3 files
categories = ['Electronic', 'Hip_Hop']
for category in categories:
    cat_dir = os.path.join(music_dir, category)
    os.makedirs(cat_dir, exist_ok=True)
    # Create a dummy mp3 file
    mp3_file = os.path.join(cat_dir, 'sample_track.mp3')
    with open(mp3_file, 'w') as f:
        f.write('')

# Create the data dictionary that matches what pack_to_metadata expects
data = {
    'Electronic': {
        'sample_track': {
            'bpm': 120,
            'genre': 'Electronic',
            'key': 'C',
            'description': 'A nice electronic loop',
            'url': 'http://example.com/sample_track'
        }
    },
    'Hip Hop': {
        'sample_track': {
            'bpm': 90,
            'genre': 'Hip Hop',
            'key': 'D',
            'description': 'A hip hop beat',
            'url': 'http://example.com/sample_track_hiphop'
        }
    }
}

ARGS = {
    'data': data,
    'music_dir': music_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
parse_text Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/MuMu-LLaMA/gradio_app.py
code served (permissive licence) · get_code("a5a8373f8eeb0e5b")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

ARGS = {
    "text": "Here is some code:\n```python\nprint('hello world')\n```\nAnd some more text with special chars: <tag> * _ - . ! ( ) $",
    "image_path": None,
    "video_path": None,
    "audio_path": None,
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
precompute_freqs_cis Ran
ran, violated the contract we drafted
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/llama.py
pointer only (licence: MIT); the stored copy get_code serves, from meituan-automl/visionllama, is pointer only (licence: NONE) · get_code("14a84c2cbfebc413")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from meituan-automl/visionllama, and GitHub detected no licence in that repository when it was checked. 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.

prompt1 Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/DataSet/MUEdit/mistral.py
code served (permissive licence) · get_code("757329bc69615251")
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 str. 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

ARGS = {
    "text": "这是一个测试文本 [note: example]。This is a test sentence with Chinese characters 中文 and annotations [annotation]."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
read_video_pyav Ran
ran; our contract draft was wrong, not the code
shansongliu/M2UGen/Evaluation/Video2Music/generate_m2ugen.py
code served (permissive licence) · get_code("a9873e075389c691")
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 ndarray, ndim 4, dtype family int, shape (3, 480, 640, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

class MockFrame:
    def __init__(self, array):
        self.array = array
    
    def to_ndarray(self, format='rgb24'):
        return self.array

class MockContainer:
    def __init__(self, num_frames=5):
        self.num_frames = num_frames
        self.frames = [
            MockFrame(np.random.randint(0, 256, (480, 640, 3), dtype=np.uint8))
            for _ in range(num_frames)
        ]
    
    def seek(self, pos):
        pass
    
    def decode(self, video=0):
        for frame in self.frames:
            yield frame

# Create a mock container with 5 frames
container = MockContainer(num_frames=5)

# Create indices to extract frames 1, 2, and 4
indices = [1, 2, 4]

ARGS = {
    "container": container,
    "indices": indices
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family int, shape (3, 480, 640, 3) — shape (3, 480, 640, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
reshape_for_broadcast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/llama.py
pointer only (licence: MIT); the stored copy get_code serves, from alpha-vllm/llama2-accessory, is pointer only (licence: NOASSERTION) · get_code("70bf6ebaafd266c4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from alpha-vllm/llama2-accessory, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

sample_frame_indices Ran
ran, honoured the contract we drafted
shansongliu/M2UGen/Evaluation/Video2Music/generate_m2ugen.py
code served (permissive licence) · get_code("6378137c116ad6da")
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 ndarray, ndim 1, dtype family int, shape (8,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 numpy as np

np.random.seed(0)

ARGS = {
    "clip_len": 8,
    "frame_sample_rate": 2.5,
    "seg_len": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (8,) — shape (8,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
sample_top_p Ran
ran; our contract draft was wrong, not the code
shansongliu/MuMu-LLaMA/MuMu-LLaMA/llama/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from lichenghaobuaa/tokenlearning, is pointer only (licence: NONE) · get_code("8845976729f4c4ee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lichenghaobuaa/tokenlearning, and GitHub detected no licence in that repository when it was checked. 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.

load_model Not yet run
unverified (harvested, no recorded run)
shansongliu/M2UGen/DataSet/MUEdit/mistral.py
code served (permissive licence) · get_code("08e8f3d4af99bdb4")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
shansongliu/M2UGen/DataSet/MUImage/llava_caption.py
code served (permissive licence) · get_code("11e5e8810f15e38a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 9 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 3 the same month, 6 later) and 9 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
reshape_for_broadcast 58 other papers
46 dated earlier, 2 the same month, 10 later · 2 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 55 more not named here
apply_rotary_emb 55 other papers
42 dated earlier, 2 the same month, 11 later · 1 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 52 more not named here
precompute_freqs_cis 47 other papers
39 dated earlier, 1 the same month, 7 later · 1 only as an assembly brick
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2303.09736 (2023-03)
Dynamic Structure Pruning for Compressing CNNs
2307.09288 (2023-07)
Llama 2: Open Foundation and Fine-Tuned Chat Models
and 44 more not named here
sample_top_p 26 other papers
23 dated earlier, 2 later, 1 same year, order not determinable
2023.emnlp-main.534 (2023 (year only))
Disentangling Transformer Language Models as Superposed Topic Models
2305.08322 (2023-05)
C-EVAL: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models
2305.11554 (2023-05)
ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings
and 23 more not named here
adjust_learning_rate 23 other papers
20 dated earlier, 2 later, 1 same year, order not determinable
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2204.09435 (2022-04)
Hephaestus: A large scale multitask dataset towards InSAR understanding
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
and 20 more not named here
add_special_tokens 2 other papers
2 dated earlier
2309.11140 (2023-09)
Investigating Personalization Methods in Text to Music Generation
2407.16564 (2024-07)
Audio Prompt Adapter: Unleashing Music Editing Abilities for Text-to-Music with Lightweight Finetuning
load_json 1 other paper
1 dated earlier
2403.04706 (2024-03)
Common 7B Language Models Already Possess Strong Math Capabilities
load_jsonl 1 other paper
1 dated earlier
2410.11538 (2024-10)
MCTBench: Multimodal Cognition towards Text-Rich Visual Scenes Benchmark
read_video_pyav 1 other paper
1 later
2605.21625 (2026-05)
FLAT-PACK BENCH: Evaluating Spatio-Temporal Understanding in Large Vision-Language Models through Furniture Assembly

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-23.

Repositories linked to this paper

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

Abstract

Research on large language models has advanced significantly across text, speech, images, and videos. However, multi-modal music understanding and generation remain underexplored due to the lack of well-annotated datasets. To address this, we introduce a dataset with 167.69 hours of multi-modal data, including text, images, videos, and music annotations. Based on this dataset, we propose MuMu-LLaMA, a model that leverages pre-trained encoders for music, images, and videos. For music generation, we integrate AudioLDM 2 and MusicGen. Our evaluation across four tasks--music understanding, text-to-music generation, prompt-based music editing, and multi-modal music generation--demonstrates that MuMu-LLaMA outperforms state-of-the-art models, showing its potential for multi-modal music applications.

For agents

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

get_harvested_code_for_paper("2412.06660")
get_code_for_paper("2412.06660")
have("2412.06660")

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

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

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

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

Connect an agent — have() is free.