kornia/kornia-paligemma

Rust implementation of Google Paligemma with Candle

Rust

6

5 commits

updated May 18, 2025

See the code
paligemma
rust
visual-language-models

README

kornia-paligemma

Rust implementation of Google Paligemma with Candle

Usage

cargo run --example inference --release -- -i ./data/gangsters.png -p "cap en" --sample-length 100

or with cuda pass the flag --features cuda

Usage: paligemma -i <image-path> -p <text-prompt> [--sample-length <sample-length>]

Generate a description of an image using Google Paligemma

Options:
  -i, --image-path  path to an input image
  -p, --text-prompt prompt to ask the model
  --sample-length   the length of the generated text
  --help, help      display usage information

xucli_sepas

cap enTwo men are sitting under an umbrella, the left man is wearing sunglasses.
16 tokens generated (26.15 token/s)

Contributors

edgarriba

5 commits

kornia/kornia-paligemma

Rust implementation of Google Paligemma with Candle

Rust

6

5 commits

updated May 18, 2025

See the code
paligemma
rust
visual-language-models

README

kornia-paligemma

Rust implementation of Google Paligemma with Candle

Usage

cargo run --example inference --release -- -i ./data/gangsters.png -p "cap en" --sample-length 100

or with cuda pass the flag --features cuda

Usage: paligemma -i <image-path> -p <text-prompt> [--sample-length <sample-length>]

Generate a description of an image using Google Paligemma

Options:
  -i, --image-path  path to an input image
  -p, --text-prompt prompt to ask the model
  --sample-length   the length of the generated text
  --help, help      display usage information

xucli_sepas

cap enTwo men are sitting under an umbrella, the left man is wearing sunglasses.
16 tokens generated (26.15 token/s)

Contributors

edgarriba

5 commits

Languages

Rust

100.0%