YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
π¬ SMOLSCOPE β Tiny Vision Lab
A creative demo project for SmolVLM2-256M-Video-Instruct running on a Google Colab T4 GPU. Uses only the Q4_K_M quantized model + Q8_0 mmproj projector.
Files
smolscope.ipynbβ guided Colab notebook: GPU check β install llama.cpp β download 2 GGUFs β serve on :8000 β verify API β launch UI + tunnel.app.pyβ the Gradio app (SMOLSCOPE). Dark instrument-panel aesthetic, six capability modes, live telemetry.
Six capabilities
| Mode | What it does |
|---|---|
| πΌ Describe | Caption, detailed description, object listing |
| π Video | Samples frames with OpenCV, reasons across them |
| π€ Read | Faithful OCR of screenshots, charts, receipts |
| π§© Compare | 2β4 images in one message, enumerate differences |
| { } Extract | JSON-only output into named fields |
| β± Speedrun | One-sentence caption with measured latency + tok/s |
| π¬ Timeline | Timestamped video analysis: entrances, camera moves, background, transitions, plus yt-dlp captions β a reverse video prompt |
Quick start
- Open
smolscope.ipynbin Colab, set T4 GPU. - Run all cells. The last cell prints the public SMOLSCOPE URL.
- Or run locally against an already-serving endpoint:
SMOLSCOPE_ENDPOINT=http://127.0.0.1:8000/v1/chat/completions python app.py.
Notes
- Colab's proxy owns port 8080, so the API runs on 8000.
- Gradio's own
share=Trueis unreliable in Colab; the notebook uses a Cloudflare quick tunnel. - Telemetry (latency / tokens / tok/s) comes from
response.usageat runtime β no hardcoded speed claims. timeline.pyis the timestamp engine: samples frames at real times, parses yt-dlp VTT captions (strips rolling repeats), analyzes frames in context-safe windows, and merges visuals + speech into a timeline and reverse prompt. The tiny model describes what it sees; exact event timing is approximated by the sampled frame times.- The model is tiny and fast but not magic; OCR and reasoning quality are proportional to its size.
Dedicated reverse-prompt app (new, focused UI)
reverse_app.pyβ single-purpose UI: VIDEO URL / FILE β FETCH β GENERATE REVERSE PROMPT. Only the prompt is shown as output; everything else is hidden.reverse_prompt.ipynbβ dedicated Colab notebook that installs the runtime, downloads the two GGUFs, writes both modules, serves the model and launches the app + tunnel.- Run locally against the served endpoint:
SMOLSCOPE_ENDPOINT=http://127.0.0.1:8000/v1/chat/completions python reverse_app.py.
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support