nllg / detikzify-v2-8b

huggingface.co
Total runs: 3.9K
24-hour runs: -278
7-day runs: -1.3K
30-day runs: -1.3K
Model's Last Updated: March 17 2025
text-generation

Introduction of detikzify-v2-8b

Model Details of detikzify-v2-8b

Model Card for DeTi k Zify v2 (8b)

DeTi k Zify v2 (8b) is a language model that automatically converts sketches and existing scientific figures into editable, semantics-preserving Ti k Z graphics programs. It is based on LLaMA 3.1 (8b) and the SigLIP vision encoder of PaliGemma Mix-448 (3b) . Check out the DeTi k Zify project for more information and tips on how to best run the model.

This release is considered a preview and may be updated in the near future.

Usage
from operator import itemgetter

from detikzify.model import load
from detikzify.infer import DetikzifyPipeline

image = "https://w.wiki/A7Cc"
pipeline = DetikzifyPipeline(*load(
    model_name_or_path="nllg/detikzify-v2-8b",
    device_map="auto",
    torch_dtype="bfloat16",
))

# generate a single TikZ program
fig = pipeline.sample(image=image)

# if it compiles, rasterize it and show it
if fig.is_rasterizable:
    fig.rasterize().show()

# run MCTS for 10 minutes and generate multiple TikZ programs
figs = set()
for score, fig in pipeline.simulate(image=image, timeout=600):
    figs.add((score, fig))

# save the best TikZ program
best = sorted(figs, key=itemgetter(0))[-1][1]
best.save("fig.tex")
Changes from DeTi k Zify v1
Architecture

Similar to DeTi k Zify v1 , DeTi k Zify v2 uses a SigLIP vision encoder. However, inspired by the continued ViT pretraining of InternVL , we initialize the weights with the fine-tuned vision encoder of PaliGemma Mix-448 (3b) and increase DeTi k Zify's resolution to 420x420 pixels. Further, the vision encoder is no longer kept frozen but fully fine-tuned with the rest of the model.

Training Data

For pretraining, we switch from MetaFig to the much larger ArXivCap dataset and extract 1 million (figure, caption, OCR) tuples for pretraining the modality connector. For fine-tuning, we create a new DaTi k Z v3 dataset (to be released soon) with over 450k Ti k Z drawings.

We also train a new model called UltraSketch to generate synthetic sketches during training. It is based on UltraEdit and achieves a congruence coefficient (CC) of 0.74. Additionally, we generate synthetic sketches using image transformation. While these sketches are less diverse, they are better at preserving text rendering, achieving a similar CC of 0.75. When we average the sketch representations produced by both methods, the resulting CC increases to 0.82, indicating that the methods are orthogonal and complement each other effectively.

Training & Inference

We observe improved performance by extending the training to 5 epochs and increasing the learning rate to 5e-5. Fully fine-tuning the vision encoder means that we can no longer compute SelfSim as the cosine similarity between pooled outputs during inference, as the pooling head is not fine-tuned. However, by instead computing Earth Mover's Distance on the fine-tuned patch embeddings, it actually enhances the correlation with human judgments (0.456 segment-level and 0.911 system-level correlation). This means that DeTikZify v2 also works well with our MCTS-based inference algorithm.

Evaluation

Here is how DeTi k Zify v2 (8b) compares to DeTi k Zify v1 (DS-7b) , previously the best performing DeTi k Zify model, as evaluated on the test split of DaTi k Z v3 .

Reference Figures Reference Figures
Model MTE ↑ cBLEU ↑ TED ↓ DSim ↑ KID ↓ MTE ↑ cBLEU ↑ TED ↓ DSim ↑ KID ↓
DeTi k Zify v1 (DS-7b) 84.019 2.953 56.851 73.589 8.423 84.401 1.541 59.589 65.446 7.66
DeTi k Zify v2 (8b) 93.326 6.105 54.946 78.943 6.256 93.858 3.356 58.32 72.969 7.507

Runs of nllg detikzify-v2-8b on huggingface.co

3.9K
Total runs
-278
24-hour runs
-871
3-day runs
-1.3K
7-day runs
-1.3K
30-day runs

More Information About detikzify-v2-8b huggingface.co Model

detikzify-v2-8b huggingface.co

detikzify-v2-8b huggingface.co is an AI model on huggingface.co that provides detikzify-v2-8b's model effect (), which can be used instantly with this nllg detikzify-v2-8b model. huggingface.co supports a free trial of the detikzify-v2-8b model, and also provides paid use of the detikzify-v2-8b. Support call detikzify-v2-8b model through api, including Node.js, Python, http.

detikzify-v2-8b huggingface.co Url

https://huggingface.co/nllg/detikzify-v2-8b

nllg detikzify-v2-8b online free

detikzify-v2-8b huggingface.co is an online trial and call api platform, which integrates detikzify-v2-8b's modeling effects, including api services, and provides a free online trial of detikzify-v2-8b, you can try detikzify-v2-8b online for free by clicking the link below.

nllg detikzify-v2-8b online free url in huggingface.co:

https://huggingface.co/nllg/detikzify-v2-8b

detikzify-v2-8b install

detikzify-v2-8b is an open source model from GitHub that offers a free installation service, and any user can find detikzify-v2-8b on GitHub to install. At the same time, huggingface.co provides the effect of detikzify-v2-8b install, users can directly use detikzify-v2-8b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

detikzify-v2-8b install url in huggingface.co:

https://huggingface.co/nllg/detikzify-v2-8b

Url of detikzify-v2-8b

detikzify-v2-8b huggingface.co Url

Provider of detikzify-v2-8b huggingface.co

nllg
ORGANIZATIONS

Other API from nllg

huggingface.co

Total runs: 59
Run Growth: 21
Growth Rate: 35.59%
Updated:September 10 2026
huggingface.co

Total runs: 33
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2026
huggingface.co

Total runs: 30
Run Growth: 0
Growth Rate: 0.00%
Updated:September 08 2026
huggingface.co

Total runs: 28
Run Growth: -15
Growth Rate: -53.57%
Updated:September 10 2026
huggingface.co

Total runs: 17
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2026
huggingface.co

Total runs: 14
Run Growth: 0
Growth Rate: 0.00%
Updated:December 04 2024
huggingface.co

Total runs: 11
Run Growth: -1
Growth Rate: -9.09%
Updated:August 23 2022
huggingface.co

Total runs: 11
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2026
huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:December 04 2024
huggingface.co

Total runs: 9
Run Growth: -11
Growth Rate: -122.22%
Updated:August 23 2022
huggingface.co

Total runs: 9
Run Growth: -6
Growth Rate: -66.67%
Updated:November 16 2022
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2026
huggingface.co

Total runs: 7
Run Growth: -8
Growth Rate: -114.29%
Updated:October 05 2022
huggingface.co

Total runs: 6
Run Growth: -1
Growth Rate: -16.67%
Updated:October 05 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:August 30 2024
huggingface.co

Total runs: 5
Run Growth: -5
Growth Rate: -100.00%
Updated:October 05 2022
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:February 16 2026
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:February 28 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 07 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 09 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 09 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 09 2023