Tiny vision model trained from scratch: image captions and video timelines for any LLM, with an MCP server
A small vision model trained from scratch, built to be universal. It turns images and video into:
- text (captions and timestamped video timelines) that any language model can read, and - visual tokens that open LLMs can use through a small per-model adapter (planned).
Status: v0.1, experimental. The first model is trained on Flickr8k (6,000 photos). It gets scene types roughly right and subjects often wrong.
Runs on Apple Silicon (MPS), NVIDIA (CUDA) or CPU.
--run takes a Hugging Face repo id (downloaded on first use) or a local folder.
mcpserver.py exposes two tools over stdio:
Tool Does ------ captionimage(path) One-sentence caption of a local image describevideo(path, everyseconds=2, maxframes=120) Timestamped text timeline of a local video
Add it to your MCP client's config (use absolute paths):
Model source: the TINYVISIONMODEL env var (local folder or HF repo id), else runs/flickr8k if you trained locally, else the published Hugging Face model.
--dataset takes any Hugging Face image-caption dataset; image and caption columns are auto-detected. The best checkpoint (by validation loss) is kept.
preset params image use ------------ nano ~1.3M 64px smoke tests tiny ~25M 224px first real model (~40 min on an M5 for Flickr8k) small ~56M 224px larger datasets / cloud GPU
The export writes model.safetensors, config.json, tokenizer.json and the model card (MODELCARD.md → README.md).
- vlm/encoder.py: ViT with fixed 2D sin-cos positions, token pooling, per-frame time embedding - vlm/captioner.py: adapter + prefix-LM caption decoder - vlm/video.py: frame sampling an
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/amar683--tiny-vision.html)
Daily radar for new AI terms: names of new models, products and repos, caught on X, Hugging Face, GitHub and sitemaps before keyword tools list them.
gary23w/f-ck_data_brokersfck_data_brokers.py is a free, open-source Python script that sends opt-out and deletion requests to data brokers on your behalf.
LiCinCan/blender-ai-mcp-addonAI assistant and MCP server for Blender: visual chat, scene tools, multi-agent workflows. Works with OpenAI, ChatGPT, Claude, Gemini, Ollama, OpenCode. Blender AI addon and plugin, copilot for 3D, bpy
2akouwu/reverifyStop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is
cranebeaker/coop-anythingCo-op Anything: point your AI agent at any single-player game and play it with friends (online and/or splitscreen!). MCP server and playbook to let you reverse engineer, fix, test, ship and share what
anujasid/blender-ai-mcp-addonAI assistant and MCP server for Blender: visual chat, scene tools, multi-agent workflows. Works with OpenAI, ChatGPT, Claude, Gemini, Ollama, OpenCode. Blender AI addon and plugin, copilot for 3D, bpy
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.