NousResearch/hermes-function-calling-v1
Viewer β’ Updated β’ 11.6k β’ 30.4k β’ 417
An autonomous AI agent that transforms raw video footage into professional, viral-worthy social media content.
ViralCut Agent is a fine-tuned Qwen2.5-3B-Instruct model trained with QLoRA SFT on tool-calling trajectories for video editing, social media optimization, and content strategy.
| Capability | How |
|---|---|
| π¬ Video Analysis | Analyze raw footage, find best moments, detect scenes |
| βοΈ Professional Editing | Trim, transitions, effects, text overlays, color grading via FFmpeg |
| π΅ Audio Production | Search & add trending royalty-free music, sound effects, audio mixing |
| π Viral Optimization | Score content for TikTok/Instagram/YouTube, optimize for algorithms |
| π Trend Research | Search current trends, hooks, sounds via web search |
| π« AI Slop Detection | Filter out AI-generated junk content |
| βοΈ Caption Generation | Platform-optimized captions, hashtags, posting strategy |
The agent was trained to call these tools autonomously:
# 1. FFmpeg for video processing
ffmpeg_cmd(command="ffmpeg -y -i input.mp4 -vf 'eq=saturation=1.3' output.mp4",
description="Boost color saturation")
# 2. Web search for assets and trends
web_search(query="trending TikTok sounds food 2025", search_type="trending_content")
web_search(query="royalty free lo-fi beat", search_type="royalty_free_music")
# 3. Video analysis
analyze_video(video_path="raw.mp4", analysis_type="full")
# 4. Virality scoring
score_virality(video_path="edit.mp4", platform="tiktok", niche="food")
# 5. Caption generation
generate_caption(video_description="...", platform="tiktok", tone="casual")
# 6. AI content detection
detect_ai_slop(content_path="broll.mp4", check_type="video")
pip install transformers torch peft bitsandbytes duckduckgo-search
# Clone the repo
git clone https://huggingface.co/ryu34/viralcut-agent
cd viralcut-agent
# Edit a video
python agent.py --video raw_footage.mp4 --platform tiktok --niche food
# Get a content plan (no video needed)
python agent.py --plan --niche "coffee shop" --platform tiktok
# Check files for AI slop
python agent.py --check-slop clip1.mp4 clip2.mp4
# Interactive mode
python agent.py
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ryu34/viralcut-agent", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("ryu34/viralcut-agent")
messages = [
{"role": "system", "content": "You are ViralCut Agent..."},
{"role": "user", "content": "Edit my beach video into a TikTok with trending music and effects"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=1024)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:]))
Mixed dataset of ~2,800 examples:
Full dataset: ryu34/viralcut-agent-data
# Option 1: Google Colab (free T4 GPU)
# Open: https://huggingface.co/datasets/ryu34/viralcut-agent-data/blob/main/train_colab.ipynb
# Option 2: Direct script
wget https://huggingface.co/datasets/ryu34/viralcut-agent-data/resolve/main/train.py
pip install transformers trl torch datasets accelerate peft bitsandbytes
python train.py
User Request ("Edit my raw footage into a viral TikTok")
β
βΌ
βββββββββββββββββββββββββββββββββββ
β ViralCut Agent (Qwen2.5-3B) β
β Fine-tuned for tool-calling β
β β
β Thinks β Plans β Calls Tools β
ββββββββββββ¬βββββββββββββββββββββββ
β
ββββββββΌβββββββββββββββββββββββ
β β β β β
βΌ βΌ βΌ βΌ βΌ
FFmpeg Web Video Viral AI Slop
Edit Search Anal. Score Detect
β β β β β
ββββββββ΄βββββββ΄βββββββ΄βββββββββ
β
βΌ
Final edited video + caption + strategy
Input: "I have 8 minutes of raw ramen footage from Tokyo. Make a TikTok."
Agent actions:
analyze_video(raw_ramen.mp4, "full") β Found 8 scenes, best: noodle pull at 0.9 energyweb_search("trending TikTok sounds food ASMR 2025") β Lo-fi city pop trendingweb_search("royalty free lo-fi Japanese beat") β Found "Tokyo Nights" CC BY 4.0ffmpeg_cmd(...) β Extracted hook shot with color boostffmpeg_cmd(...) β Speed-ramped broth prepffmpeg_cmd(...) β Assembled with fadeblack + slideright transitionsffmpeg_cmd(...) β Mixed lo-fi music at 70% with ambientffmpeg_cmd(...) β Added text hook + location overlayscore_virality(...) β 82/100detect_ai_slop(...) β Authentic β
generate_caption(...) β "This man has been making ramen by hand for 30 years"Output: 17s vertical TikTok with professional transitions, trending music, text overlays. Score: 82/100.
duckduckgo-search package@misc{viralcut-agent-2025,
title={ViralCut Agent: Autonomous Video Editing for Social Media},
author={ryu34},
year={2025},
url={https://huggingface.co/ryu34/viralcut-agent}
}