CoolFace
Modelpublic

KhoiBui/tiktok-multimodal-fusion-classifier

sourceHugging Facemitupdated 8mo agoView on Hugging Face
0likes
Model Card

TikTok Content Safety - Multimodal Fusion Model

This model combines text and video features using Late Fusion with Cross-Attention to classify TikTok content as safe or harmful.

Architecture

Text Backbone (XLM-RoBERTa) → Text Features (768-dim)
Video Backbone (VideoMAE)    → Video Features (768-dim)
                                  ↓
                         Cross-Attention Fusion
                                  ↓
                         Gating Mechanism
                                  ↓
                        Classifier (2 classes)

Usage

This is a custom model. You need to download and use the LateFusionModel class:

python
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
import torch.nn as nn

# Download model weights
weights_path = hf_hub_download(repo_id="KhoiBui/tiktok-multimodal-fusion-classifier", filename="model.safetensors")
config_path = hf_hub_download(repo_id="KhoiBui/tiktok-multimodal-fusion-classifier", filename="fusion_config.json")

# Load config
import json
with open(config_path) as f:
    config = json.load(f)

# Initialize and load model (using LateFusionModel class from your codebase)
# model = LateFusionModel(config)
# model.load_state_dict(load_file(weights_path))

Model Details

  • Text Backbone: XLM-RoBERTa-base
  • Video Backbone: VideoMAE-base
  • Fusion: Cross-Attention with Gating
  • Task: Binary classification (safe/harmful)