Shipped

Image captioning with a Transformer

An encoder-decoder Transformer written from scratch in PyTorch that turns an image into a one-line caption, trained on the full COCO captions set.

stack: Python, PyTorch, Hugging Face Accelerate, COCO

Source code

Approach

The model has no pretrained backbone. Every layer is written in PyTorch.

The encoder cuts the image into patches with a convolutional patch embedding and adds a learned positional encoding. A stack of Transformer encoder layers then runs self-attention over the patches.

The decoder adds a sinusoidal positional encoding to the caption tokens. Each decoder layer runs masked self-attention over the words so far, then cross-attention over the image patches. Captions are tokenized with the GPT-2 tokenizer from Hugging Face, with start and end tokens added.

Training

The model was trained on the full COCO 2017 captions set, about 118,000 images, each normalized to the dataset’s own mean and standard deviation. Training used AdamW with a cosine learning-rate schedule and fp16 mixed precision through Hugging Face Accelerate. After each epoch the model writes captions for the validation images, and the checkpoint with the best BLEU-4 score is kept.

Results

The model reached a BLEU-4 score of 0.169. That is a baseline with no large-scale pretraining behind it. The captions partly match what is in the image but need more tuning.

What I’d do next

  • Start from pretrained embeddings such as CLIP, ViT, or BERT instead of training every layer from zero.
  • Add data augmentation so the model generalizes better.

All projects

Raymond Dehenrich Susilo

Applied ML engineer with a DevOps background

Open to data scientist, ML / MLOps engineer, AI engineer roles

Jakarta, IndonesiaAvailability: 1 month notice period (can be shortened if needed)raymondsusilo.com

Download CV (PDF)

Summary

I'm based in Jakarta. I studied Computer Science with an AI focus at Bina Nusantara University. My thesis, written in a team of four, built a Faster R-CNN face detector that predicts age range, gender, and expression, comparing ResNet-50 and MobileNetV3 backbones. I built most of its model architecture. I now work as a junior DevOps engineer. Most of that work is full-stack Python on a monitoring platform, plus infrastructure and PowerShell automation.

Looking for: data scientist, ML / MLOps engineer, AI engineer roles in Jakarta.

Experience

Junior DevOps Engineer, PT. CreateIT Solution IndonesiaMay 2026 to present

  • Designed and maintain a release flow with versioned rollbacks for production web apps
  • Set up cross-region VPS monitoring (Prometheus, Grafana, Loki, Tempo) with alerts to Microsoft Teams
  • Built a Flask and PostgreSQL platform on a client's RMM API for custom alert suppression and reporting
  • Patch and troubleshoot client Windows servers; wrote PowerShell health checks for server hardware and backups

Stack: Python, Flask, PostgreSQL, Docker Compose, PowerShell, Prometheus, Grafana, Loki, Tempo, WireGuard, K3s, Argo CD, GitHub Actions, Gitea Actions

AI Data Annotator (part-time), FreelanceMay 2025 to present

  • Review and compare LLM outputs, rating their accuracy, reasoning, and summaries
  • Compare models on coding tasks and review the code they generate

Stack: LLM evaluation, Code review

Machine Learning Engineer Intern, PT. Astra Daihatsu MotorMarch 2024 to February 2025

  • Designed and implemented ETL pipelines for data integration, accuracy, and accessibility for analysis
  • Analyzed incoming data to find patterns and insights for project-specific ML use cases
  • Built a dashboard that gave meetings and reporting analytical insight from historical data
  • Developed and deployed predictive models to find trends and improve workflows

Stack: Python, SQL, ETL, Talend, Power BI

Skills

Languages
Python (used in production)
ML and computer vision
PyTorch (used in projects), torchvision (used in projects), Computer vision (used in projects)
LLM apps
LangGraph (learning), LLM output evaluation (used in production), LLM applications (learning)
Backend
Flask (used in production), PostgreSQL (used in production)
DevOps and infrastructure
Monitoring and alerting (used in production), PowerShell (used in production), Windows Server administration (used in production), Docker and Docker Compose (used in production), Linux (Ubuntu) (used in projects), CI/CD (GitHub Actions, Gitea Actions) (used in production), K3s and Argo CD (used in production)
Tools
Git (used in production)

Projects

Multi-attribute face detectionShipped

A Faster R-CNN face detector that predicts age range, gender, and expression. It started as a four-person undergraduate thesis comparing ResNet-50 and MobileNetV3 backbones, in which I built most of the model architecture. I am now improving the MobileNetV3 version.

Vulnerability triage agentIn progress

An agent that takes CVE IDs or a scanner report and produces a prioritized triage report. Currently being built.

Self-hosted infrastructureShipped

The VPS and homelab this site runs on: Docker services behind Nginx, a WireGuard tunnel to a Traefik-fronted homelab.

Image captioning with a TransformerShipped

An encoder-decoder Transformer written from scratch in PyTorch that turns an image into a one-line caption, trained on the full COCO captions set.

Education

Bachelor of Computer Science, Bina Nusantara UniversitySeptember 2021 to April 2025

Focus: Artificial Intelligence

Thesis: Multi-Task Face Attribute Detection with ResNet50 and MobileNetV3 Backbones in Faster R-CNN. Multi-attribute face detection (age range, gender, and expression) with Faster R-CNN, comparing ResNet-50 and MobileNetV3 backbones. It uses a custom prediction head and staged training, because no single dataset had all three labels. Written with three co-authors; I built most of the model architecture, implemented the algorithms, and did data analysis.