facebook / tribev2

huggingface.co
Total runs: 166.3K
24-hour runs: 460
7-day runs: 24.5K
30-day runs: 164.1K
Model's Last Updated: March 27 2026

Introduction of tribev2

Model Details of tribev2

TRIBE v2

A Foundation Model of Vision, Audition, and Language for In-Silico Neuroscience

Open In Colab License: CC BY-NC 4.0 Python 3.10+

📄 Paper ▶️ Demo | 🤗 Weights

TRIBE v2 is a deep multimodal brain encoding model that predicts fMRI brain responses to naturalistic stimuli (video, audio, text). It combines state-of-the-art feature extractors — LLaMA 3.2 (text), V-JEPA2 (video), and Wav2Vec-BERT (audio) — into a unified Transformer architecture that maps multimodal representations onto the cortical surface.

Quick start

Load a pretrained model from HuggingFace and predict brain responses to a video:

from tribev2 import TribeModel

model = TribeModel.from_pretrained("facebook/tribev2", cache_folder="./cache")

df = model.get_events_dataframe(video_path="path/to/video.mp4")
preds, segments = model.predict(events=df)
print(preds.shape)  # (n_timesteps, n_vertices)

Predictions are for the "average" subject (see paper for details) and live on the fsaverage5 cortical mesh (~20k vertices). You can also pass text_path or audio_path to model.get_events_dataframe — text is automatically converted to speech and transcribed to obtain word-level timings.

For a full walkthrough with brain visualizations, see the Colab demo notebook .

Installation

Basic (inference only):

pip install -e .

With brain visualization :

pip install -e ".[plotting]"

With training dependencies (PyTorch Lightning, W&B, etc.):

pip install -e ".[training]"
Training a model from scratch
1. Set environment variables

Configure data/output paths and Slurm partition (or edit tribev2/grids/defaults.py directly):

export DATAPATH="/path/to/studies"
export SAVEPATH="/path/to/output"
export SLURM_PARTITION="your_partition"
2. Authenticate with HuggingFace

The text encoder requires access to the gated LLaMA 3.2-3B model:

huggingface-cli login

Create a read access token and paste it when prompted.

3. Run training

Local test run:

python -m tribev2.grids.test_run

Grid search on Slurm:

python -m tribev2.grids.run_cortical
python -m tribev2.grids.run_subcortical
Project structure
tribev2/
├── main.py              # Experiment pipeline: Data, TribeExperiment
├── model.py             # FmriEncoder: Transformer-based multimodal→fMRI model
├── pl_module.py         # PyTorch Lightning training module
├── demo_utils.py        # TribeModel and helpers for inference from text/audio/video
├── eventstransforms.py  # Custom event transforms (word extraction, chunking, …)
├── utils.py             # Multi-study loading, splitting, subject weighting
├── utils_fmri.py        # Surface projection (MNI / fsaverage) and ROI analysis
├── grids/
│   ├── defaults.py      # Full default experiment configuration
│   └── test_run.py      # Quick local test entry point
├── plotting/            # Brain visualization (PyVista & Nilearn backends)
└── studies/             # Dataset definitions (Algonauts2025, Lahner2024, …)
Contributing to open science

If you use this software, please share your results with the broader research community using the following citation:

@article{dAscoli2026TribeV2,
  title={A foundation model of vision, audition, and language for in-silico neuroscience},
  author={d'Ascoli, St{\'e}phane and Rapin, J{\'e}r{\'e}my and Benchetrit, Yohann and Brookes, Teon and Begany, Katelyn and Raugel, Jos{\'e}phine and Banville, Hubert and King, Jean-R{\'e}mi},
  year={2026}
}
License

This project is licensed under CC-BY-NC-4.0. See LICENSE for details.

Contributing

See CONTRIBUTING.md for how to get involved.

Runs of facebook tribev2 on huggingface.co

166.3K
Total runs
460
24-hour runs
11.3K
3-day runs
24.5K
7-day runs
164.1K
30-day runs

More Information About tribev2 huggingface.co Model

tribev2 huggingface.co

tribev2 huggingface.co is an AI model on huggingface.co that provides tribev2's model effect (), which can be used instantly with this facebook tribev2 model. huggingface.co supports a free trial of the tribev2 model, and also provides paid use of the tribev2. Support call tribev2 model through api, including Node.js, Python, http.

facebook tribev2 online free

tribev2 huggingface.co is an online trial and call api platform, which integrates tribev2's modeling effects, including api services, and provides a free online trial of tribev2, you can try tribev2 online for free by clicking the link below.

facebook tribev2 online free url in huggingface.co:

https://huggingface.co/facebook/tribev2

tribev2 install

tribev2 is an open source model from GitHub that offers a free installation service, and any user can find tribev2 on GitHub to install. At the same time, huggingface.co provides the effect of tribev2 install, users can directly use tribev2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tribev2 install url in huggingface.co:

https://huggingface.co/facebook/tribev2

Url of tribev2

Provider of tribev2 huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 7.5M
Run Growth: 84.7K
Growth Rate: 1.13%
Updated:January 20 2022
huggingface.co

Total runs: 7.2M
Run Growth: 11.3K
Growth Rate: 0.16%
Updated:September 15 2023
huggingface.co

Total runs: 3.4M
Run Growth: 1.1M
Growth Rate: 30.90%
Updated:January 25 2024
huggingface.co

Total runs: 3.1M
Run Growth: -566.8K
Growth Rate: -18.17%
Updated:March 23 2023
huggingface.co

Total runs: 2.6M
Run Growth: 188.6K
Growth Rate: 7.35%
Updated:November 21 2025
huggingface.co

Total runs: 2.4M
Run Growth: 246.9K
Growth Rate: 10.25%
Updated:September 06 2023
huggingface.co

Total runs: 2.3M
Run Growth: 1.2M
Growth Rate: 52.27%
Updated:January 17 2024
huggingface.co

Total runs: 2.3M
Run Growth: 1.2M
Growth Rate: 50.61%
Updated:September 06 2023
huggingface.co

Total runs: 1.7M
Run Growth: 533.1K
Growth Rate: 31.69%
Updated:December 28 2021
huggingface.co

Total runs: 1.6M
Run Growth: 1.6M
Growth Rate: 96.45%
Updated:November 16 2023
huggingface.co

Total runs: 1.6M
Run Growth: 529.4K
Growth Rate: 32.84%
Updated:June 15 2023
huggingface.co

Total runs: 587.6K
Run Growth: -568.3K
Growth Rate: -96.70%
Updated:November 17 2022
huggingface.co

Total runs: 436.4K
Run Growth: 28.4K
Growth Rate: 6.51%
Updated:May 22 2023
huggingface.co

Total runs: 423.3K
Run Growth: 86.2K
Growth Rate: 20.37%
Updated:September 01 2023
huggingface.co

Total runs: 406.6K
Run Growth: 1.7K
Growth Rate: 0.41%
Updated:February 29 2024
huggingface.co

Total runs: 316.3K
Run Growth: -103.9K
Growth Rate: -32.85%
Updated:November 20 2023
huggingface.co

Total runs: 313.6K
Run Growth: 39.4K
Growth Rate: 12.58%
Updated:January 12 2024
huggingface.co

Total runs: 223.9K
Run Growth: 27.9K
Growth Rate: 12.46%
Updated:January 12 2024
huggingface.co

Total runs: 216.2K
Run Growth: -37.0K
Growth Rate: -17.10%
Updated:March 17 2025
huggingface.co

Total runs: 215.9K
Run Growth: 206.9K
Growth Rate: 95.83%
Updated:June 13 2023
huggingface.co

Total runs: 201.4K
Run Growth: 19.5K
Growth Rate: 9.70%
Updated:September 06 2023
huggingface.co

Total runs: 195.7K
Run Growth: -127.1K
Growth Rate: -64.94%
Updated:September 15 2023
huggingface.co

Total runs: 162.9K
Run Growth: 104.9K
Growth Rate: 64.39%
Updated:February 12 2023
huggingface.co

Total runs: 162.3K
Run Growth: -206.3K
Growth Rate: -127.08%
Updated:March 13 2024
huggingface.co

Total runs: 157.0K
Run Growth: -3.3K
Growth Rate: -2.13%
Updated:September 15 2023
huggingface.co

Total runs: 139.4K
Run Growth: -48.2K
Growth Rate: -34.60%
Updated:June 03 2022
huggingface.co

Total runs: 116.9K
Run Growth: -57.6K
Growth Rate: -49.33%
Updated:September 06 2023
huggingface.co

Total runs: 108.9K
Run Growth: -57.1K
Growth Rate: -52.46%
Updated:January 25 2023
huggingface.co

Total runs: 88.5K
Run Growth: -5.8K
Growth Rate: -6.54%
Updated:May 22 2023
huggingface.co

Total runs: 75.9K
Run Growth: 54.8K
Growth Rate: 72.16%
Updated:June 05 2023
huggingface.co

Total runs: 69.1K
Run Growth: 20.8K
Growth Rate: 30.02%
Updated:January 21 2026
huggingface.co

Total runs: 60.5K
Run Growth: 60.1K
Growth Rate: 99.74%
Updated:March 28 2026
huggingface.co

Total runs: 57.9K
Run Growth: -56.3K
Growth Rate: -97.14%
Updated:September 05 2023
huggingface.co

Total runs: 41.2K
Run Growth: 14.9K
Growth Rate: 36.23%
Updated:January 25 2023