hjLabs AI Playground
Starting the on-device runtime…
ViT-GPT2 Flower Captioner is a 239M-parameter ONNX model that writes a natural-language description of what is in an image. On this page it runs entirely inside your browser: the 247 MB download comes straight from the Hugging Face repository “cristianglezm/ViT-GPT2-FlowerCaptioner-ONNX” into your browser cache, and every inference after that executes on your own GPU through WebGPU. Expect a download of roughly a minute on a decent connection. It fits comfortably in the browser cache and in the memory of any GPU from the last few years, including laptop integrated graphics.
ViT-GPT2 fine-tuned only on flowers — it names petals, colour and shape where the general captioner just says “a flower”. In practice people reach for a model like this for generating alt text at scale, cataloguing photo archives, and describing images for screen readers.
Available precisions: q8 (8-bit) and fp32 (full precision). q8 comes first because it roughly halves the download at a quality cost you will struggle to measure on this class of model; fp32 is there when you want the reference numbers. Hugging Face records about 23 downloads a month. It is a specialist choice rather than a default, which is exactly why it is worth trying when the popular model gets your particular input wrong.
Because there is no inference server behind this page, there is nothing to rate-limit and nothing to bill: the only cost of running ViT-GPT2 Flower Captioner here is the one-off 247 MB download, and once that is cached the page keeps working with the network switched off.
vit-gpt2 flower captionervit-gpt2 flower captioner onnxvit-gpt2 flower captioner browserrun vit-gpt2 flower captioner locallycristianglezm/vit-gpt2-flowercaptioner-onnximage captioning modelvit-gpt2 flower captioner webgpuvit-gpt2 flower captioner download sizefree image captioning modeltransformers.js model
About 247 MB for the q8 build, including the tokenizer and config files the runtime also has to fetch — this is the whole payload, not just the weights file. It is downloaded once and then served from the browser Cache Storage API.
Yes, through the WebAssembly fallback, which is slower but works anywhere. WebGPU (Chrome or Edge 113+, Safari 26+) is what makes it feel interactive. On WASM, prefer the smaller quantized build.
No. cristianglezm/ViT-GPT2-FlowerCaptioner-ONNX is a public repository, so your browser fetches the ONNX files directly over HTTPS. There is no account, no key and no server in between.
No. The model weights are downloaded from Hugging Face to your browser once, and every inference after that runs on your own GPU through WebGPU. Your text, images and audio are never sent anywhere — hjLabs.in has no inference server and no way to see your input.