nllg / TikZilla-8B

huggingface.co
Total runs: 11
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 10 2026
text-generation

Introduction of TikZilla-8B

Model Details of TikZilla-8B

Model Card for TikZilla-8B

TikZilla-8B is a language model for generating TikZ/LaTeX figures from natural language descriptions.

It is based on Qwen3-8B-Base and was trained with supervised fine-tuning (SFT) on DaTikZ-V4 for scientific figure generation.

Installation
pip install torch==2.5.1 transformers==4.53.2 accelerate==1.8.1
Usage
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig

model_id = "nllg/TikZilla-8B"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

eos_token_id = tokenizer.convert_tokens_to_ids("<|im_end|>")
pad_token_id = tokenizer.pad_token_id or tokenizer.eos_token_id or eos_token_id

gen_config = GenerationConfig(
    do_sample=True,
    temperature=1.0,
    top_p=0.9,
    max_new_tokens=2048,
    eos_token_id=eos_token_id,
    pad_token_id=pad_token_id,
)

your_input_description = "A scientific line plot showing two curves. The x-axis is labeled 'Time' ranging from 0 to 100, and the y-axis is labeled 'Value' ranging from 0 to 1. The first curve is a blue solid line that gradually increases from near 0 and levels off around 0.9. The second curve is a red dashed line that rises to a peak around the middle of the plot and then decreases. A legend in the upper right labels the blue line as 'Model A' and the red dashed line as 'Model B'. The background is white with light gray grid lines."

messages = [
    {
        "role": "user",
        "content": (
            "Generate a complete LaTeX document that contains a TikZ figure according to the following requirements:\n"
            + your_input_description +
            "\nWrap your code using \\documentclass[tikz]{standalone}, and include \\begin{document}...\\end{document}. "
            "Only output valid LaTeX code with no extra text."
        ),
    }
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)

inputs = tokenizer([text], return_tensors="pt").to(model.device)
output_ids = model.generate(**inputs, generation_config=gen_config)
response_ids = output_ids[0][len(inputs["input_ids"][0]):]
output = tokenizer.decode(response_ids, skip_special_tokens=True)

print(output)

Runs of nllg TikZilla-8B on huggingface.co

11
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About TikZilla-8B huggingface.co Model

More TikZilla-8B license Visit here:

https://choosealicense.com/licenses/apache-2.0

TikZilla-8B huggingface.co

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

TikZilla-8B huggingface.co Url

https://huggingface.co/nllg/TikZilla-8B

nllg TikZilla-8B online free

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

nllg TikZilla-8B online free url in huggingface.co:

https://huggingface.co/nllg/TikZilla-8B

TikZilla-8B install

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

TikZilla-8B install url in huggingface.co:

https://huggingface.co/nllg/TikZilla-8B

Url of TikZilla-8B

TikZilla-8B huggingface.co Url

Provider of TikZilla-8B huggingface.co

nllg
ORGANIZATIONS

Other API from nllg

huggingface.co

Total runs: 3.7K
Run Growth: -1.8K
Growth Rate: -49.59%
Updated:March 17 2025
huggingface.co

Total runs: 59
Run Growth: 4
Growth Rate: 6.78%
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: -2
Growth Rate: -18.18%
Updated:August 23 2022
huggingface.co

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

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

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

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

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

Total runs: 7
Run Growth: -1
Growth Rate: -14.29%
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: -4
Growth Rate: -80.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