Skip to content
Other

VLM-all-inclusive (OmniVLM)

an omni-model built from scratch that sees, hears, speaks, and lip-syncs

3 min readupdated

A research project from hkblockchaintechnology: a unified AI model trained completely from scratch on a single GPU without off-the-shelf pretrained backbones (like ready-made ViT or HiFi-GAN). The model takes an image and a question, generates a text answer, voices it, and renders a talking-head video with synchronized lip-sync, while also supporting speech recognition on the input. All multimodal capabilities are built around a shared vocabulary (8,011 words + 39 ARPAbet phonemes) and a single weight trunk, where speech heads are trained in multi-task mode alongside vision. Best suited for multimodal architecture researchers and enthusiasts interested in full end-to-end training pipelines for omni-models.

Key features

  • Full pipeline from scratch: vision (ViT, 10 layers, 128px scenes), language core (16-layer transformer with RoPE and cross-attention), hearing (CTC phoneme recognizer), voice (FastSpeech-style decoder), and vocoder (Vocos-style with ConvNeXt and ISTFT) are all written and trained without external pretrained modules.
  • Unified token space: shared weights process vision-language tasks while simultaneously driving speech synthesis and articulation, without splitting the model into isolated copies.
  • Built-in lip-sync renderer: the model maps its own ARPAbet phoneme timeline to visemes and mouth, jaw, and eyebrow motion parameters, assembling the final mp4 video via ffmpeg.
  • On-GPU scene generation: the vision-language dataset (shapes, colors, sizes, counting, and spatial relationships on a 3×3 grid) is rendered by a vectorized rasterizer directly on the GPU to avoid CPU bottlenecks.

What you can do

  • Explore multi-task omni-model architecture: inspect the training code for the unified weight trunk, where the CTC hearing module self-labels data for the speech decoder without an external forced aligner.
  • Swap synthetic scenes for real data: following the author's instructions, you can replace the omni/scenes.py module with a real dataset for VQA or image captioning and fine-tune the model.
  • Test end-to-end video response generation: run the OmniSystem.test_to_movie() method to generate a narrated video answering a question about a scene in ~2.5 seconds on a single GPU.

Example

python -m omni.train --stage vlm     --preset xl --steps 8000 --batch 384
python -m omni.train --stage ear     --steps 4000 --batch 24
python -m omni.train --stage align
python -m omni.train --stage speech  --steps 6000 --batch 24
python -m omni.train --stage vocoder --steps 4000 --batch 16
Read moreDetails
Trained on an RTX PRO 6000 Blackwell (100 GB VRAM); the current snapshot has completed 251 steps for VLM (loss 0.1577), 503 steps for ear, and 2,251 steps for vocoder (the align and speech stages have not been run yet).
The speech module was trained on a single speaker from the LJSpeech-1.1 dataset (24 hours, CMUdict).
Limitations: the visual corpus currently consists only of synthetic geometric shapes, lip-sync uses an analytical 2D renderer instead of photorealistic generation, and there is no RLHF or moderation.
Discuss Telegram 1

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # hkblockchaintechnology/VLM-all-inclusive
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download hkblockchaintechnology/VLM-all-inclusive --local-dir ~/models/VLM-all-inclusive
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to VLM-all-inclusive
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b40from November 18, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026new release

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of VLM-all-inclusive (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

hkblockchaintechnology/VLM-all-inclusive
Author
hkblockchaintechnology
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

01

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments