Skip to content

Instantly share code, notes, and snippets.

View pardo312's full-sized avatar
📚
Studying

Jiufen pardo312

📚
Studying
View GitHub Profile
@pardo312
pardo312 / handler.py
Created April 8, 2026 05:17
FastVideo RunPod serverless handler
import runpod
import os
import base64
import tempfile
import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "fastvideo", "imageio[ffmpeg]"])
os.environ["FASTVIDEO_ATTENTION_BACKEND"] = "VIDEO_SPARSE_ATTN"