Sightline-heads
Draft heads for rapid SVG and Lottie generation acceleration
2 min readupdated
The repository contains a set of trained weights (draft heads) implementing the Sightline method, which accelerates vector graphics generation models without losing output quality. The method relies on speculative decoding (where a small auxiliary model quickly proposes a token window and the base model verifies them in a single step). The repository features configurations for model families such as OmniSVG, InternSVG, SVGen, HiVG, OmniLottie, and StarVector with block sizes of 16 and 32. This tool is useful for researchers and engineers working on optimization and vector generation acceleration.
Key features
- Generation acceleration: Draft heads significantly reduce the generation time of SVG and Lottie animations.
- Wide support: Ready-to-use weights for 11 different setups and architectures (OmniSVG, SVGen, StarVector, and others).
- Safetensors format: All weights are saved in the modern format precisely matching the paper and benchmark results.
- Flexible verification windows: Options are available with a block size of 32 (for the Sightline method) and a block size of 16 (for the baseline DFlash and DDTree approaches).
What you can do
- Accelerate SVG generation: Plug the heads into corresponding target models (such as OmniSVG-8B or StarVector) for fast text-to-vector and image-to-vector conversion.
- Generate Lottie animation: Use the heads for the OmniLottie-3B model within vector animation generation pipelines.
- Run benchmarks: Compare performance against DFlash and DDTree methods using scripts from the official Sightline repository.
Example
Downloading the required weights via the command line and running evaluation for text models:
hf download lizaiyuan0804/Sightline-heads --include "omnisvg-8b/text-to-svg-b32/*" --local-dir heads
python3 eval/eval_text.py --head heads/omnisvg-8b/text-to-svg-b32 --designs D1-top16-N127
--sets bench --modes greedy,sample --time-ar --out $SIGHTLINE_OUT/oursRead more
DetailsArchitecture: 5 transformer layers utilizing hidden states of the base model without its own embedding.
Training: on MMSVG-2M and MMLottie-2M datasets under the CC BY-NC-SA 4.0 license.
Weight size: from 0.7 GB to 3.2 GB depending on the target model (in bfloat16 format).










Comments