Fine-tuned Qwen2.5-7B on 100 films for probabilistic story graphs
Details
- External ID
- 46933515
- Source
- HN
- Company
- —
- Product
- Fine-tuned Qwen2.5-7B on 100 films for probabilistic story graphs
- Website domain
- cinegraphs.ai
- Launched
- Feb. 8, 2026
- Cohort
- —
- Upvotes
- 101
- Upvotes percentile
- 0.8928571428571429
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hi HN, I'm a computer systems engineering student in Mexico who switched from film school. I built CineGraphs because my filmmaker friends and I kept hitting the same wall—we'd have a vague idea for a film but no structured way to explore where it could go. Every AI writing tool we tried output generic, formulaic slop. I didn't want to build another ChatGPT wrapper, so I went a different route.The idea is simple: you input a rough concept, and the tool generates branching narrative paths visualized as a graph. You can sculpt those branches into a structured screenplay format and export to Fountain for use in professional screenwriting software.Most AI writing tools are trained on generic internet text, which is why they output generic results. I wanted something that understood actual cinematic storytelling—not plot summaries or Wikipedia synopses, but the actual structural DNA of films. So I spent a month curating 100 films I consider high-quality cinema. Not just popular films, but works with distinctive narrative structures: Godard's jump cuts and essay-film digressions, Kurosawa's parallel character arcs, Brakhage's non-linear visual poetry, Tarkovsky's slow-burn temporal structures. The selection was deliberately eclectic because I wanted the model to learn that "story" can mean many things.Getting useful training data from films is harder than it sounds. I built a 1000+ line Python pipeline using Qwen3-VL to analyze each film with subtitles enabled. The pipeline extracts scene-level narrative beats, character relationships and how they evolve, thematic threads, and dialogue patterns. The tricky part was getting Qwen3-VL to understand cinematic structure rather than just summarizing plot. I had to iterate on the prompts extensively to get it to identify things like "this scene functions as a mirror to the opening" or "this character's arc inverts the protagonist's." That took weeks and I'm still not fully satisfied with it, but it's good enough to produce useful training data.From those extractions I generated a 10K example dataset of prompt-to-branching-narrative pairs, then fine-tuned Qwen2.5-7B-Instruct with a LoRA optimized for probabilistic story branching. The LoRA handles the graph generation—exploring possible narrative directions—while the full 7B model generates the actual technical screenplay format when you export. I chose the 7B model because I wanted something that could run affordably at scale while still being capable enough for nuanced generation. The whole thing is served on a single 4090 GPU using vLLM. The frontend uses React Flow for the graph visualization. The key insight was that screenwriting is fundamentally about making choices—what if the character goes left instead of right?—but most writing tools force you into a linear document too early. The graph structure lets you explore multiple paths before committing, which matches how writers actually think in early development.The biggest surprise was how much the film selection mattered. Early versions trained on more mainstream films produced much more formulaic outputs. Adding experimental and international cinema dramatically improved the variety and interestingness of the generations. The model seemed to learn that narrative structure is a design space, not a formula.We've been using it ourselves to break through second-act problems—when you know where you want to end up but can't figure out how to get there. The branching format forces you to think in possibilities rather than committing too early.You can try it at https://cinegraphs.ai/ — no signup required to test it out. You get a full project with up to 50 branches without registering, though you'll need to create an account to save it. Registered users get 3 free projects. I'd love feedback on whether the generation quality feels meaningfully different from generic AI tools, and whether the graph interface adds value or just friction.
Enrichment
- Theme
- ai video generation and editing tools
- Vertical
- Media & entertainment
- Function
- Model & infra
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Hobby / open-source project
- Normalized one-liner
- fine-tuned language model for generating story graphs from films
- Manually corrected
- False
Could you build this?
Partial Building the UI and prompting an LLM is straightforward, but fine-tuning an open weights model on structured narrative graphs extracted from 100 films requires custom dataset curation and fine-tuning engineering.
What it would actually take: The system requires parsing movie screenplays into structured narrative nodes/edges (probabilistic state transitions), formatting them into instruction/completion pairs, and fine-tuning Qwen2.5-7B using LoRA/QLoRA via Unsloth or Axolotl. The inference service needs to output valid structured JSON representing probabilistic next-beat graphs, served via vLLM or Ollama alongside a React/React-Flow graph canvas UI. Domain knowledge in screenplay structure and hands-on ML fine-tuning experience are required.
Discussion
20 comments analyzed.
Competitors mentioned: Oblique Strategies (Eno's creative constraint system), Other studio-focused narrative tools in development
Concerns raised: Workflow loop incomplete without node editing, Stories can't end—tool forces more branches, Node overlap bug in dense graphs, Market concentration risk—studios could monopolize and 'destroy media', Model behavior opaque (unclear how it generated compatible episode suggestions)
Feature requests: Manual node editing and branch remixing, Ability to mark branches as endpoints instead of forcing continuation, Public API returning branching structure as JSON, Script evaluation tool extracting story structure and grading, Better auto-layout for dense graphs
Competitors
Other products that read as similar to this one — 144 launches clear the similarity bar, closest 8 shown.
Attention rank: #27 of 145 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 95 days after the earliest competitor.
- PlotStudio · ph · 2026-09-14 · 2 upvotes · similarity 0.47
- Illustrative · hn · 2026-03-26 · 5 upvotes · similarity 0.46
- ai-director-film · github · 2026-09-28 · 23 upvotes · similarity 0.46
- Cinegraph · ph · 2026-09-22 · 7 upvotes · similarity 0.43
- Can you spot AI-generated content? (spoiler: probably not) · hn · 2025-12-01 · 5 upvotes · similarity 0.43
- What 180k words look like as a temporal knowledge graph (Oz series) · hn · 2026-07-26 · 22 upvotes · similarity 0.42
- 3D and World Models for Consistent AI Filmmaking · hn · 2026-02-12 · 5 upvotes · similarity 0.41
- I built an AI movie making and design engine in Rust · hn · 2026-02-03 · 5 upvotes · similarity 0.41
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a model & infra tool for Fintech yet.