Model reference · open weights
gregg-vision.1 is an open-weight language model from grascii. gregg-vision-v0.2.1 (FP32) weighs 72 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the grascii/gregg-vision-v0.2.1 model card, 2026-10-01
What it is
| Released by | grascii |
|---|---|
| Released | 2024-12-06 |
| Parameters | 36M |
| VRAM | 72 MB for the weights |
What it runs on
How much memory each request adds isn't estimated yet for this architecture. The weights need at least the cards below, plus room for the context.
| Card | Weights alone |
|---|---|
| RTX 3060 12 GB | fits |
| RTX 4060 Ti 16 GB | fits |
| RTX 3090 24 GB | fits |
| RTX 4090 24 GB | fits |
| RTX 5090 32 GB | fits |
| L40S 48 GB | fits |
| A100 80 GB | fits |
| H100 80 GB | fits |
| RTX PRO 6000 Blackwell 96 GB | fits |
| DGX Spark (GB10) 128 GB unified | fits |
| H200 141 GB | fits |
| B200 180 GB | fits |
From the model card
Gregg Vision v0.2.1 generates a Grascii representation of a Gregg Shorthand form.
Given a grayscale image of a single shorthand form, Gregg Vision can be used to generate its Grascii representation. When combined with Grascii Search, one can obtain possible English interpretations of the shorthand form.
Use the code below to get started with the model.
from transformers import AutoModelForVision2Seq, AutoImageProcessor, AutoTokenizer
from PIL import Image
import numpy as np
model_id = "grascii/gregg-vision-v0.2.1"
model = AutoModelForVision2Seq.from_pretrained(model_id)
processor = AutoImageProcessor.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
def generate_grascii(image: Image):
# convert image to a single channel
grayscale = image.convert("L")
# prepare processor input
images = np.array([grayscale])
# preprocess image
pixel_values = processor(images, return_tensors="pt").pixel_values
# generate token ids
ids = model.generate(pixel_values, max_new_tokens=12)[0]
# decode ids and return grascii
return tokenizer.decode(ids, skip_special_tokens=True)
Note: As of transformers v4.47.0, the model is incompatible with pipeline due to the
model's single channel image input.
Gregg Vision v0.2.1 is a transformer model with a ViT encoder and a Roberta decoder.
For training, the model was warm-started using vit-small-patch16-224-single-channel for the encoder and a randomly initialized Roberta network for the decoder.
Gregg Vision v0.2.1 was trained on the gregg-preanniversary-words dataset.
Gregg Vision v0.2.1 was trained using 1xT4.
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.