vit.cpp logo

vit.cpp

staghado/vit.cpp

Inference Vision Transformer in C/C++ with ggml

GraphCanon updated Sep 25, 2026 · GitHub synced Sep 25, 2026

320 stars28 forksLast push Apr 11, 2024 C++ MIT

Decision brief

Unverified catalog guidance: vit.cpp is an optimized C/C++ implementation for Vision Transformer inference that leverages ggml to enhance performance and maintain lightweight, dependency-free operation.

Good fit when

  • Unverified catalog guidance: Use vit.cpp when you need fast startup times for serverless deployments as it addresses cold start issues inherent in common deep learning frameworks.
  • Unverified catalog guidance: Select this tool for edge computing tasks due to its efficient use of CPU resources and support for different quantization levels, including 4-bit precision.

Avoid when

  • Unverified catalog guidance: Avoid using vit.cpp if you require GPU acceleration since it is primarily optimized for CPU performance with ggml.
  • Unverified catalog guidance: Do not choose vit.cpp if your project depends on rich ecosystem features or libraries unavailable in this standalone implementation lacking extra dependencies.

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (896d since push)
As of Sep 25, 2026
Provenance
Not a fork · Personal account
As of Sep 25, 2026
Security (OSV)
No lockfile
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

Package installation is not established from the available documentation. Check the source repository for setup instructions.

git clone https://github.com/staghado/vit.cpp
Source repository

Relationship proposals(1)

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Relationship types and rationales are stored proposals, not independently verified integrations, migration guidance or endorsements.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A standalone implementation of the Vision Transformer (ViT) model for inference tasks using plain C/C++ and ggml.

Capability facts

Languages
c++

Source: github.language · Sep 25, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Sep 25, 2026)

python convert-pth-to-ggml.py --list
Source link

Tags

README

vit.cpp Inference Vision Transformer (ViT) in plain C/C++ using ggml without any extra dependencies Description This project presents a standalone implementation of the well known Vision Transformer (ViT) model family, used in a broad spectrum of applications and SOTA models like...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.