SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2501.13106 · 2025

VideoLLaMA 3: Frontier Multimodal Foundation Models for Image and Video Understanding

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 6 failures of our instrument; 6 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/2501.13106.json · badge: /api/ran/2501.13106.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
damo-nlp-sg/videollama3 canonical (classifier label)
classifier basis not recorded on the link
8 ran · 6 no recorded run
FunctionStatusWhere it lives
build_mlp Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/inference/transformers_api/modeling_videollama3.py
code served (permissive licence) · get_code("d62ac690ebadd7fa")
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 Sequential. 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)

ARGS = {
    "depth": 3,
    "hidden_size": 4,
    "output_hidden_size": 5,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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_vision_projector Ran
ran on a synthesized input
damo-nlp-sg/videollama3/inference/transformers_api/modeling_videollama3.py
code served (permissive licence) · get_code("8409d5a94c95a154")
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 Linear. 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 StandInVisionEncoderConfig:
    def __init__(self):
        self.hidden_size = 4

class StandInConfig:
    def __init__(self):
        self.vision_encoder_config = StandInVisionEncoderConfig()
        self.hidden_size = 3
        self.mm_hidden_size = 5
        self.mm_projector_type = 'linear'

ARGS = {
    'config': StandInConfig(),
    'delay_load': False,
}
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 Linear — a Linear output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Linear 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
chunk_list Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/videollama3/mm_utils.py
code served (permissive licence) · get_code("a8b8b3e9a82ab02e")
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. 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)

# The function chunk_list takes an input_list and chunk_size
# It splits input_list into chunks of size chunk_size
# We need to provide a list and a chunk size

input_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
chunk_size = 3

ARGS = {
    "input_list": input_list,
    "chunk_size": chunk_size,
}
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 — a list 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
expand2square Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/videollama3/mm_utils.py
code served (permissive licence) · get_code("592b3c1a88f93d7c")
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) and returned Image. 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.

from PIL import Image

# Create a small test image (non-square)
pil_img = Image.new('RGB', (8, 6), color='red')

# Define background color for padding
background_color = (255, 255, 255)

ARGS = {
    'pil_img': pil_img,
    'background_color': background_color,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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_image_from_base64 Ran
ran, honoured the contract we drafted
damo-nlp-sg/videollama3/videollama3/mm_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from tencent/hunyuan3d-2, is pointer only (licence: NOASSERTION) · get_code("0dde2e782959c0bd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from tencent/hunyuan3d-2, 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.

load_mm_projector Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/videollama3/model/projector.py
code served (permissive licence) · get_code("d8e25fe3aa75d2ce")
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 torch
from pathlib import Path

torch.manual_seed(0)

# Create a temporary directory to act as a local model path
temp_dir = tempfile.mkdtemp()

# Create mm_projector.bin file with some dummy weights
mm_projector_weights = {
    'layer1.weight': torch.randn(4, 3, dtype=torch.float32),
    'layer1.bias': torch.randn(4, dtype=torch.float32),
    'layer2.weight': torch.randn(2, 4, dtype=torch.float32),
}
torch.save(mm_projector_weights, os.path.join(temp_dir, 'mm_projector.bin'))

ARGS = {
    'model_path': temp_dir,
    'cache_dir': None,
    'token': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
huggingface_hub, torch, transformers — 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
parse_snapshot_folder Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/videollama3/model/projector.py
code served (permissive licence) · get_code("04129d1d261c322a")
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 os
import tempfile
from transformers import TRANSFORMERS_CACHE

# Create a temporary directory structure to simulate a Hugging Face cache
temp_cache_dir = tempfile.mkdtemp()

# Create the necessary directory structure for the function to work
repo_id = "bert-base/model"
repo_type = "model"
object_id = repo_id.replace('/', '--')
repo_cache = os.path.join(temp_cache_dir, f'{repo_type}s--{object_id}')
refs_dir = os.path.join(repo_cache, 'refs')
snapshots_dir = os.path.join(repo_cache, 'snapshots')
main_snapshot_dir = os.path.join(snapshots_dir, 'main')

os.makedirs(refs_dir, exist_ok=True)
os.makedirs(main_snapshot_dir, exist_ok=True)

# Create a refs/main file with a revision hash
revision_hash = "abc123def456"
with open(os.path.join(refs_dir, 'main'), 'w') as f:
    f.write(revision_hash)

# Create the actual snapshot directory for that revision
revision_snapshot_dir = os.path.join(snapshots_dir, revision_hash)
os.makedirs(revision_snapshot_dir, exist_ok=True)

ARGS = {
    'repo_id': 'bert-base/model',
    'cache_dir': temp_cache_dir,
    'repo_type': 'model'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
transformers — 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
rotate_half Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/videollama3/inference/transformers_api/modeling_videollama3_encoder.py
code served (permissive licence) · get_code("b99eea6376d1e212")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 4) 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 torch

torch.manual_seed(0)

# The function rotate_half takes a single parameter 'x' which is a tensor
# It accesses x.shape[-1] to get the last dimension
# It uses indexing with [..., :] slicing notation
# It calls torch.cat() to concatenate tensors

# Create a small tensor with shape (2, 4) - batch size 2, hidden dim 4
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
apply_rotary_pos_emb_vision Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/inference/transformers_api/modeling_videollama3_encoder.py
code served (permissive licence) · get_code("48f12d3a9c4a15e8")
How it ran

no invocation recorded.

build_vision_encoder Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/videollama3/model/encoder.py
code served (permissive licence) · get_code("771a5c9570d61ca3")
How it ran

no invocation recorded.

get_mm_adapter_state_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/videollama3/videollama3_trainer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from humanmllm/r1-omni, is pointer only (licence: NONE) · get_code("14fb23ef45b146d1")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from humanmllm/r1-omni, 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. No invocation recorded.

get_peft_state_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/videollama3/videollama3_trainer.py
code served (permissive licence) · get_code("fa1225dfac92bc0d")
How it ran

no invocation recorded.

maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/videollama3/videollama3_trainer.py
code served (permissive licence) · get_code("616ffbdc154ed2d8")
How it ran

no invocation recorded.

spatial_downsampling Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/videollama3/videollama3/model/videollama3_arch.py
code served (permissive licence) · get_code("285dd14346d5d119")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 11 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 3 the same month, 8 later) and 3 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
rotate_half 360 other papers
234 dated earlier, 5 the same month, 113 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
load_image_from_base64 85 other papers
71 dated earlier, 13 later, 1 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2308.10253 (2023-08)
StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
and 82 more not named here
expand2square 68 other papers
57 dated earlier, 10 later, 1 same year, order not determinable · 1 only as an assembly brick
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.03541 (2022-04)
End-to-End Zero-Shot HOI Detection via Vision and Language Knowledge Distillation
2308.10253 (2023-08)
StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data
and 65 more not named here
get_mm_adapter_state_maybe_zero_3 43 other papers
32 dated earlier, 1 the same month, 10 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 40 more not named here
maybe_zero_3 37 other papers
23 dated earlier, 1 the same month, 12 later, 1 same year, order not determinable
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2311.16839 (2023-11)
Beyond Hallucinations: Enhancing LVLMs through Hallucination-Aware Direct Preference Optimization
2312.02949 (2023-12)
LLaVA-Grounding: Grounded Visual Chat with Large Multimodal Models
and 34 more not named here
get_peft_state_maybe_zero_3 23 other papers
15 dated earlier, 7 later, 1 same year, order not determinable
2310.01779 (2023-10)
HallE-Control: Controlling Object Hallucination in Large Multimodal Models
2401.02330 (2024-01)
LLaVA-Phi: Efficient Multi-Modal Assistant with Small Language Model
2402.12501 (2024-02)
Your Vision-Language Model Itself Is a Strong Filter: Towards High-Quality Instruction Tuning with Data Selection
and 20 more not named here
apply_rotary_pos_emb_vision 7 other papers
3 dated earlier, 3 later, 1 same year, order not determinable
2407.17331 (2024-07)
Multi-label Cluster Discrimination for Visual Representation Learning
2410.06169 (2024-10)
Treat Visual Tokens as Text? But Your MLLM Only Needs Fewer Efforts to See
2411.17465 (2024-11)
ShowUI: One Vision-Language-Action Model for GUI Visual Agent
and 4 more not named here
chunk_list 2 other papers
1 later, 1 same year, order not determinable
2025.naacl-long.579 (2025 (year only))
ProMQA: Question Answering Dataset for Multimodal Procedural Activity Understanding
2601.09141 (2026-01)
Identity-Robust Language Model Generation via Content Integrity Preservation
load_mm_projector 2 other papers
1 dated earlier, 1 same year, order not determinable
2306.02858 (2023-06)
Video-LLaMA An Instruction-tuned Audio-Visual Language Model for Video Understanding
2025.naacl-long.579 (2025 (year only))
ProMQA: Question Answering Dataset for Multimodal Procedural Activity Understanding
parse_snapshot_folder 2 other papers
1 dated earlier, 1 same year, order not determinable
2306.02858 (2023-06)
Video-LLaMA An Instruction-tuned Audio-Visual Language Model for Video Understanding
2025.naacl-long.579 (2025 (year only))
ProMQA: Question Answering Dataset for Multimodal Procedural Activity Understanding
build_mlp 1 other paper
1 dated earlier
2306.02858 (2023-06)
Video-LLaMA An Instruction-tuned Audio-Visual Language Model for Video Understanding

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

In this paper, we propose VideoLLaMA3, a more advanced multimodal foundation model for image and video understanding. The core design philosophy of VideoLLaMA3 is vision-centric. The meaning of "vision-centric" is two-fold: the vision-centric training paradigm and vision-centric framework design. The key insight of our vision-centric training paradigm is that high-quality image-text data is crucial for both image and video understanding. Instead of preparing massive video-text datasets, we focus on constructing large-scale and high-quality image-text datasets. VideoLLaMA3 has four training stages: 1) Vision Encoder Adaptation, which enables vision encoder to accept images of variable resolutions as input; 2) Vision-Language Alignment, which jointly tunes the vision encoder, projector, and LLM with large-scale image-text data covering multiple types (including scene images, documents, charts) as well as text-only data. 3) Multi-task Fine-tuning, which incorporates image-text SFT data for downstream tasks and video-text data to establish a foundation for video understanding. 4) Video-centric Fine-tuning, which further improves the model's capability in video understanding. As for the framework design, to better capture fine-grained details in images, the pretrained vision encoder is adapted to encode images of varying sizes into vision tokens with corresponding numbers, rather than a fixed number of tokens. For video inputs, we reduce the number of vision tokens according to their similarity so that the representation of videos will be more precise and compact. Benefit from vision-centric designs, VideoLLaMA3 achieves compelling performances in both image and video understanding benchmarks.

For agents

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

get_harvested_code_for_paper("2501.13106")
get_code_for_paper("2501.13106")
have("2501.13106")

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

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

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

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

Connect an agent — have() is free.