Phasuwut
ExperienceProjectsBlogsSkillsPublicationsAI ChatContactHire Me
Phasuwut

Full Stack · AI Engineer · Thailand

Portfolio

  • Work Experience
  • Projects
  • Blogs
  • Skills
  • Publications

More

  • Certification
  • Demo
  • AI Chat
  • Contact

Download

  • Profile
  • Resume
  • CV

© 2026 Phasuwut Chunnapiya

phasuwut.job@gmail.com

Worker Generative Studio — Serverless AI Image & Video Pipeline

Engineered a unified RunPod Serverless GPU worker for high-throughput image and video synthesis using PyTorch, Diffusers, InsightFace face conditioning, and S3 artifact storage.

 Home AI Resume Chat Work Experience All Projects Blogs Demo Technical Skills Certification Publications Contact
Personal ProjectsYear 2026Latest activity 2026-09-04

Project Overview

Objective

Engineered a unified RunPod Serverless GPU worker for high-throughput image and video synthesis using PyTorch, Diffusers, InsightFace face conditioning, and S3 artifact storage.

Stack

PythonPyTorchDiffusersTransformersRunPod ServerlessCUDAHugging FaceInsightFaceONNX Runtime GPUAWS S3DockerFFmpegFastAPIPydantic

Delivery highlights

  • Developed a unified RunPod Serverless GPU worker for the Generative Studio platform, designed to execute asynchronous image and video generation workloads on demand. Built around the official PyTorch 2.6 CUDA 12.6 runtime (`pytorch/pytorch:2.6.0-cuda12.6-cudnn9-runtime`), the service bridges incoming RunPod job dispatches to dedicated image and video diffusion pipelines, serializes output media to AWS S3, and reports status callbacks with secret-based webhook verification.
  • Supported dual media synthesis pathways: an image generation pipeline leveraging Hugging Face Diffusers, Transformers, PEFT, and LoRA with optional inpainting and FaceID identity conditioning; and a video generation pipeline orchestrating frame-by-frame diffusion synthesis, optional face conditioning, and temporary MP4 packaging via FFmpeg before cloud persistence.
  • Integrated face recognition and identity conditioning using InsightFace and ONNX Runtime GPU, enabling personalized character synthesis and face swapping across generated imagery and video frames. Automated bounded input handling by validating user-supplied image and face URLs, applying size constraints, and streaming binary assets safely.
  • Engineered GPU memory management with an in-memory LRU pipeline caching mechanism, keeping frequently requested Diffusers models warm in VRAM while evicting idle weights to prevent out-of-memory crashes on containerized GPU instances. Added throttled asynchronous progress reporting that streams percent-complete updates back to the API webhook without flooding the network.
  • The reviewed snapshot documents this worker as a deployment component of the `generative-studio` repository. Before production deployment, exposed local environment credentials must be rotated, face-image fetching should be unified with strict HTTPS domain allowlists, and safety checking or content moderation policies must be restored before public traffic.
Back to Topic ProjectsBack to All Projects

System workflow

How serverless image and video generation pipelines work

RunPod Serverless ingress routes requests to dedicated image or video Diffusers pipelines, executes GPU synthesis with face conditioning, stores media in S3, and returns verified webhook callbacks.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

System workflow

Worker system architecture

Unified RunPod serverless architecture routing requests to image or video Diffusers pipelines with shared GPU VRAM model cache, S3 persistence, and webhook notifications.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

System workflow

Image generation processing sequence

Detailed execution flow for text-to-image, image-to-image, inpainting, and FaceID synthesis jobs.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

System workflow

Video generation processing sequence

Detailed execution flow for text-to-video, image-to-video, and face-conditioned video synthesis.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

System workflow

Asynchronous progress and callback lifecycle

Throttled callback reporting system ensuring real-time feedback without overwhelming client webhooks.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

System workflow

Source-reviewed processing sequence

A conservative end-to-end boundary taken from the source audit. Specific endpoints, storage writes, and external calls are only claimed in the project-specific diagrams when the implementation confirms them.

Rendering workflow diagram…

Scroll horizontally to explore the full workflow on smaller screens.

Related Projects

3 items

Multimodal Semantic Retrieval (Video and Image Search)

Personal ProjectsYear: 2026

Unified text-to-video and text-to-image search into one cross-modal retrieval platform.

Image-to-Image and Video Similarity Search System

Personal ProjectsYear: 2026

Built query-image driven retrieval across both image and video collections.

Multi-Model AI Inference for Image Generation

Personal ProjectsYear: 2026

A full-stack AI image generation platform supporting multiple SDXL-based diffusion models on RunPod serverless GPU. Users can write prompts in any language — the system auto-translates to English — then configure generation parameters and generate images stored on AWS S3. Includes image inpainting, public gallery, per-user history, and an admin panel for managing users and images.