2D Ising model · Metropolis Monte Carlo · simulated live

Dorian Przetakiewicz

Building agentic AI systems — LLM pipelines, autonomous content platforms, encrypted-CNN vision. Physics background.

T / Tc = ⟨m⟩ = 0.00 disordered
scroll

2024–25

Built at the DLR: encrypted vision.

Dec(fCNN(Enc(x)))    fCNN(x)\mathsf{Dec}\big(f_{\text{CNN}}(\mathsf{Enc}(x))\big)\;\approx\;f_{\text{CNN}}(x)

A CNN classifying camera frames it can never decrypt — homomorphic encryption plus deep learning, published at SPIE. Watch it run:

stack: Python backend · React/TypeScript frontend

[1] Proc. SPIE 13606, 136060W (2025) ↗

open the full demo ↗

now

Agents that ship, end to end.

idea
generate carousel validate render
Generated carousel frame 1Generated carousel frame 2Generated carousel frame 3Generated carousel frame 4Generated carousel frame 5Generated carousel frame 6

contentgen, my content platform: one line of intent becomes a published post — LLM planning, image generation, rendering, scheduling. A real run, replayed:

[2] § 05 — the system

see the full run ↗

in parallel

The physics is still running.

E  =  12i,jwijsisj  +  iθisiE \;=\; -\tfrac{1}{2}\sum_{i,j} w_{ij}\, s_i\, s_j \;+\; \sum_i \theta_i\, s_i

I’m midway through a physics master’s, and the lattice behind this page is from my thesis and first paper. Deep learning and agentic systems are the fascination I couldn’t shake — the same energy function that orders these spins trained the first neural networks, and that’s how I fell in.

[3] E. Ising (1925) · J. J. Hopfield (1982) · Phys. Rev. Research (2025)

§ 01 — Who

I ship
AI systems.

I build agentic AI systems end to end. My longest-running project, contentgen, turns a one-line idea into published social-media content — LLM planning, image and video generation, rendering, scheduling. In parallel I’m finishing an M.Sc. in physics at RWTH Aachen, focused on quantum technology.

I spent a year as a working student in AI Security at the DLR (German Aerospace Center), published research on the critical behaviour of the 3D Ising universality class, brought CNN inference onto homomorphically encrypted data, and picked up a certificate in quantitative modelling in finance along the way. On the side I build agentic systems — autonomous pipelines that generate, refine, and publish content without me watching.

It’s all the same interest, really: systems with many interacting parts, and models for what they’ll do together. The agentic stuff scratches the same itch — I just like building things that keep running after I close the laptop.

Portrait of Dorian Przetakiewicz
fig. 1 — the author
2020 B.Sc. Physics begins RWTH Aachen
04.2024 B.Sc. thesis, graded 1.0 became my first-author paper
10.2024 M.Sc. Physics begins RWTH · AI Security @ DLR until 10.2025
10.2025 Erasmus — Jagiellonian, Kraków deep learning · software engineering
08.2027 M.Sc. expected

§ 02 — The stack

What I work with.

languages

PythonTypeScriptGoC++LaTeX

ML / AI

PyTorchTenSEAL (homomorphic ML)GPT-2 & ResNet from scratchLLM pipelines · OpenRouterimage & video gen · Runware / RunwayLoRA training · Modal GPUs

systems & web

Docker · microservicesFastAPI · FlaskGo · EchoReactLinux HPC clusters

played with

SQLPostgreSQLFlutter

everything here is in a repo you can read — github.com/spyder73

§ 03 — The system

contentgen — a studio that runs itself.

My longest-running build: a fleet of microservices that takes a one-line idea and, with no further input from me, turns it into published social-media content. A studio feeds a Go pipeline engine that fans out over checkpoint graphs — LLM prompting, image, video and audio generation via provider APIs — then renders finished clips and schedules them onto platforms.

It has since grown into a multi-user platform: logins, credits metered against real model pricing, node-graph generator profiles, and a character lab that trains LoRAs on cloud GPUs. Under the hood it uses the patterns agent work actually needs — structured tool calls, LLM-as-judge validation, per-checkpoint cost metering. It’s a private tool by design — I’m happy to walk through a live demo. The core stays closed, but the public pieces are on GitHub.

where ideas enter

studio

React · TypeScript

Pipelines are edited visually or generated by an LLM from plain language; progress streams back live.

the conductor

pipeline engine

Go · Echo

Executes checkpoint graphs, orchestrates every service below, streams events back to the studio.

the model pool

providers

external APIs

OpenRouter · Runware · Vertex AI · Suno — chat, image, video and audio models, selected per checkpoint.

the engine conducts these services

model registry

private

FastAPI

One source of truth: every model, its request schema, and the credit pricing the platform bills against.

store service

public ↗

Python · Postgres

Persistence for pipelines, prompts, media, clips and series.

render service

private

Remotion · headless Chrome

Clip metadata + assets in, 1080×1920 reels and carousel stills out.

scheduler / uploader

public ↗

Python

Accounts, scheduling, and the actual posting to social platforms.

upscaler

public ↗

Python

Rescues low-resolution model output before it ships.

GPU bridge

private

FastAPI · Modal

A character lab that trains LoRAs on cloud A100s (SDXL, Z-Image) and serves warm inference.

fig. 2 — the contentgen system: a studio, one orchestrating engine, and the services it conducts

the draft — one quantum circuit

|idea⟩ |media⟩ |scene⟩ ×N independent child pipelines plan gemini-2.5-flash ¢ seed img gpt-image@2 ¢ fan out distributor · ×N generate generate generate reference · ×N ¢ collect merge ×N validate → draft ¢ → idea payload + reference media time →

after approval — the production line

$$

send to production

this is the step that costs

¢

generate final media

image · video models

remotion render

assembles the clip

schedule / publish

to social media · optional

the draft — one quantum circuit

|idea⟩ |media⟩ |scene⟩ time ↓ plan gemini-2.5-flash ¢ seed img gpt-image@2 ¢ fan out distributor · ×N ×N independent child pipelines generate reference · ×N ¢ collect merge ×N validate → draft ¢

↓ idea payload + reference media

after approval — the production line

$$

send to production

this is the step that costs

¢

generate final media

image · video models

remotion render

assembles the clip

schedule / publish

to social media · optional

prompt
an LLM checkpoint — plans, writes, or validates text and JSON
generator
produces media through a chosen image, video, or audio model
distributor
splits the run into N parallel child branches, one per scene or slide
connector
waits for all children and merges their outputs into one payload

¢ — this call is metered against credits · $$ — money leaves the wallet here

Every checkpoint chooses its own model from the registry — Gemini for planning, GPT Image for stills, Kling for motion — and any of them can be swapped per checkpoint without touching the pipeline itself. Pipelines are saved as templates and run from a single line of input; demo 04 and demo 05 show two of them. If you want the full shape of the platform, the deep dive ↗ traces one idea end to end.

fig. 3 — the pipeline in two grammars. A quantum circuit drafts the idea: plan, seed image, fan out into N branches, per-branch reference generation, collect, validate. A human review gates the second half — because the next step is where real money is spent. Then a straight production line: send to production, generate final media, remotion render, and (optionally) publish.

§ 04 — Built things

scroll →

P.01 · TypeScript · Runway API · Remotion

Lifestory.ai — an AI film director

My Runway API hackathon submission. Describe your life story and an LLM structures it into scenes; Runway generates the imagery, animates it, and voices the narration; Remotion cuts the film. There’s even a live AI director you can talk to instead of typing.

P.02 · PyTorch

GPT-2, from the paper up

My own implementation of the GPT-2 decoder, written from “Attention Is All You Need” and trained on Tiny Shakespeare — the same attention formula you scrolled past in the bridge.

P.03 · Monte Carlo · PDE

Black–Scholes, solved twice

Option pricing by Monte Carlo simulation of the underlying — then again by transforming the Black–Scholes equation into a diffusion equation and solving it numerically, as a check that both give the same price.

P.04 · C++ · Monte Carlo

Blume–Capel in 3D

The simulation behind my bachelor’s thesis and Paper I: large-scale C++ Monte Carlo of the 3D Blume–Capel model at its surface. Its 2D cousin runs in the lab on this site.

P.05 · Go

factchecker

Paste an Instagram URL and an LLM judges the claim: the post is scraped, the core claim extracted, and a judge prompt returns a rating with its reasoning. A small end-to-end exercise in LLM-as-judge evaluation, in Go.

P.06 · ETHGlobal Brussels ’24

funder-quest

Hackathon dapp at ETHGlobal Brussels 2024, built on Scaffold-ETH 2 — NextJS, Wagmi, Hardhat, TypeScript. The weekend that got me into web development.

P.07 · PyTorch

ResNet, from the paper up

My own implementation of He et al., 2015, trained on CIFAR-100 — ResNet32 lands 67.9% test accuracy. The residual block is the whole trick; the demo walks through why depth needs the skip.

§ 05 — Research

Two papers, two worlds.

Paper I arXiv:2502.14965 → Phys. Rev. Research

Boundary operator product expansion coefficients of the three-dimensional Ising universality class

D. Przetakiewicz, S. Wessel, F. Parisen Toldin

What happens to a critical system when you give it an edge? We studied the 3D Ising universality class in the presence of a surface — realizing its ordinary, special, and normal boundary classes — and combined high-precision Monte Carlo simulations with conformal field theory to extract boundary operator product expansion coefficients.

It’s the same lattice you watched order itself at the top of this page, taken to three dimensions and pushed to publication-grade precision.

σ(x,z)    z0    kbσk(2z)ΔσΔk  O^k(x) \sigma(\mathbf{x}_\parallel, z)\;\xrightarrow{\;z\,\to\,0\;}\; \sum_{k}\,\frac{b^{\,k}_{\sigma}}{(2z)^{\Delta_\sigma-\Delta_k}}\; \widehat{\mathcal{O}}_k(\mathbf{x}_\parallel)

the boundary operator product expansion

Paper II Proc. SPIE 13606, 136060W (2025)

Privacy-centric digital surveillance through homomorphic encryption and deep learning

J. Unruh, D. Przetakiewicz, O. H. Ramirez-Agudelo, M. Karl

The goal was a camera that raises an alarm without anyone ever watching the footage. So we run convolutional neural network inference directly on homomorphically encrypted data: the model classifies video it can never decrypt, and plaintext never leaves the camera.

This is the kind of security-critical AI I spent my DLR year on: deep learning under cryptographic and deployment constraints.

Dec(fCNN(Enc(x)))    fCNN(x) \mathsf{Dec}\big(f_{\text{CNN}}(\mathsf{Enc}(x))\big)\;\approx\;f_{\text{CNN}}(x)

inference without decryption

§ 06 — The map

Four fields, one lattice.

Everything I do hangs off the same graph. Grab a node and pull — the A marks are university courses I finished with the top grade.

drag nodes · hover to trace couplings

§ 07 — The thesis

BACHELOR’S THESIS · THEORETICAL PHYSICS · GRADED 1.0

Field theory coefficients for Ising surface criticality

Dorian Przetakiewicz

abstract — lattice · σ ∈ {−1, 0, +1} · cluster updates · finite-size scaling · surface universality

open PDF ↗

Where the lattice got serious.

My bachelor’s thesis is a large-scale C++ Monte Carlo study of the three-dimensional Blume–Capel model — a spin-1 cousin of the Ising model — at its surface. It took millions of lattice updates, finite-size scaling, and more careful error analysis than I care to remember.

It didn’t stay a thesis: the work grew into my first-author publication in Physical Review Research, extracting boundary OPE coefficients of the 3D Ising universality class (Paper I above).

§ 08 — Credentials

On paper.

§ 09 — Off the clock

Off the clock.

  • bicycling Cologne to Rome in three weeks, once.
  • the adventurous kind of camping a kayak survival tour through Albania — just a tent, sleeping wild, from the ocean to a lake to a river.
  • electronic music, nerd-level the complex-bassline end of it; I’ve produced and DJ’d a bit.
  • coding is also the hobby I’ll start a project in anything: a product, a personal AI server (built one), a new kitchen table.

§ 10 — Contact

Interesting problem?
Let’s talk.

I’m most interested in agentic engineering, research engineering, and AI security. Physics is where I trained; systems that ship are what I work on.

Dorian Przetakiewicz