Model reference · open weights

starvector-im2svg

LLMs starvector Text gen 1 build Open weights 3k dl/mo

starvector-im2svg is an open-weight language model from starvector. starvector-8b-im2svg (BF16) weighs 15.0 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • StarVector is a 7.5B parameter vision-language model designed to generate Scalable Vector Graphics code from images and text.
  • It supports English and is licensed under Apache 2.0.
  • The model is intended for vectorizing icons, logotypes, and technical diagrams, and it is not suitable for natural images or complex 3D graphics.

Summary of the starvector/starvector-8b-im2svg model card, 2026-10-01

What it is

Released bystarvector
Released2025-01-11
Parameters7.5B
VRAM15.0 GB for the weights

What it runs on

Memory and cards for starvector-8b-im2svg (BF16)

15.0 GBweights, file size
66 MBcache per 1K tokens
706 MBruntime overhead, at least
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB143114K23.4 GB
RTX 4090 24 GB143113K23.4 GB
RTX 5090 32 GB287128K31.0 GB
L40S 48 GB5213128K44.0 GB
A100 80 GB11629128K78.2 GB
H100 80 GB10927128K78.1 GB
RTX PRO 6000 Blackwell 96 GB13934128K93.8 GB
DGX Spark (GB10) 128 GB unified16441128K107 GB
H200 141 GB22155128K138 GB
B200 180 GB29072128K176 GB
2× RTX 3060 12 GB
tensor parallel
123101K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
266128K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
116.3 GB17.9 GB
518.4 GB26.5 GB
820.0 GB32.9 GB
1624.3 GB50.1 GB
3232.9 GB84.4 GB
6450.1 GB153 GB

One card, with vLLM's small-card settings.

From the model card

What starvector says about starvector-im2svg

Read the model card

StarVector is a foundation model for generating Scalable Vector Graphics (SVG) code from images and text. It utilizes a Vision-Language Modeling architecture to understand both visual and textual inputs, enabling high-quality vectorization and text-guided SVG creation.

Model Details

Model Description

This is the model card for the StarVector model, a 🤗 transformers model. StarVector is a foundation model for generating Scalable Vector Graphics (SVG) code from images and text. It utilizes a Vision-Language Modeling architecture to understand both visual and textual inputs, enabling high-quality vectorization and text-guided SVG creation.

  • Developed by: ServiceNow Research, Mila - Quebec AI Institute, ETS, Montreal.
  • Shared by : Juan A Rodriguez, Abhay Puri, Shubham Agarwal, Issam H. Laradji, Sai Rajeswar, Pau Rodriguez, David Vazquez, Christopher Pal, Marco Pedersoli.
  • Model type: Vision-Language Model for SVG Generation.
  • Language(s) (NLP): English.
  • License: Apache 2.0

Model Architecture

The StarVector architecture integrates an image encoder and a Large Language Model (LLM) Adapter to generate SVG code from both image and text inputs. Images are first converted into embeddings using a Vision Transformer (ViT), after which the LLM Adapter maps these embeddings into the LLM's embedding space to create visual tokens. Text prompts are handled through the LLM’s tokenizer and embedder. This unified multimodal approach ensures precise and contextually rich SVG output.

Model Sources

Uses

Direct Use

Image-to-SVG generation, Text-to-SVG generation.

Downstream Use

Creation of icons, logotypes, technical diagrams, and other vector graphics.

Out-of-Scope Use

Generating realistic photographic images or complex 3D graphics.

Bias, Risks, and Limitations

Potential biases may exist in the model due to the composition of the training data (SVG-Stack). The model's ability to perfectly vectorize all types of images and interpret all textual instructions may have limitations. Users should be aware of these potential issues, especially in critical applications.

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. Further investigation into the model's behavior across different types of inputs is recommended.

How to Get Started with the Model

Use the code below to get started with the model.

from PIL import Image
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoProcessor
from starvector.data.util import process_and_rasterize_svg
import torch

model_name = "starvector/starvector-8b-im2svg"

starvector = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, trust_remote_code=True)
processor = starvector.model.processor
tokenizer = starvector.model.svg_transformer.tokenizer

starvector.cuda()
starvector.eval()

image_pil = Image.open('assets/examples/sample-18.png')

image = processor(image_pil, return_tensors="pt")['pixel_values'].cuda()
if not image.shape[0] == 1:
    image = image.squeeze(0)
batch = {"image": image}

raw_svg = starvector.generate_im2svg(batch, max_length=4000)[0]
svg, raster_image = process_and_rasterize_svg(raw_svg)

Training Details

Training Data

SVG-Stack: A dataset of over 2 million SVG samples.

Training Procedure

The model utilizes a Vision-Language Modeling architecture. Images are projected into embeddings via an image encoder, then mapped to the LLM hidden space using an LLM Adapter, generating Visual Tokens. Text conditioning is achieved with the LLM's tokenizer and embedder. The model learns to map token sequences (visual or textual) to SVG code.

Evaluation

Testing Data & Factors

Testing Data

SVG-Bench

Factors

SVG-Stack, SVG-Fonts, SVG-Icons, SVG-Emoji, SVG-Diagrams.

Models

StarVector models achieve state-of-the-art performance on SVG generation tasks

We provide Hugging Face 🤗 model checkpoints for image2SVG vectorization, for 💫 StarVector-8B and 💫 StarVector-1B. These are the results on SVG-Bench, using the DinoScore metric.

MethodSVG-StackSVG-FontsSVG-IconsSVG-EmojiSVG-Diagrams
AutoTrace0.9420.9540.9460.9750.874
Potrace0.8980.9670.9720.8820.875
VTracer0.9540.9640.9400.9810.882
Im2Vec0.6920.7330.7540.732-
LIVE0.9340.9560.9590.9690.870
DiffVG0.8100.8210.9520.8140.822
GPT-4-V0.8520.8420.8480.850-
💫 StarVector-1B0.9260.9780.9750.9290.943
💫 StarVector-8B0.9660.9820.9840.9810.959

Note: StarVector models will not work for natural images or illustrations, as they have not been trained on those images. They excel in vectorizing icons, logotypes, technical diagrams, graphs, and charts.

As shown in the table above, StarVector-8B achieves the highest performance across all benchmark datasets, demonstrating its effectiveness in generating high-quality SVG code from images. The model's ability to understand and reproduce complex vector graphics makes it particularly valuable for applications requiring precise vectorization of icons, logos, and technical diagrams.

Summary

StarVector represents

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms