DeTi
k
Zify-DS
1.3b
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
DeepSeek Coder 7b
v1.5
and was
fine-tuned on
DaTi
k
Z
v2
. Check
out the
DeTi
k
Zify
project for more
information and tips on how to best run the model.
Usage
from operator import itemgetter
from detikzify.model import load
from detikzify.infer import DetikzifyPipeline
import torch
image = "https://w.wiki/A7Cc"
pipeline = DetikzifyPipeline(*load(
base_model="nllg/detikzify-ds-7b",
device_map="auto",
torch_dtype=torch.bfloat16,
))
# generate a single TikZ program
fig = pipeline.sample(image=image)
# if it compiles, rasterize it and show itif 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")
Runs of nllg detikzify-ds-7b on huggingface.co
14
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About detikzify-ds-7b huggingface.co Model
detikzify-ds-7b huggingface.co is an AI model on huggingface.co that provides detikzify-ds-7b's model effect (), which can be used instantly with this nllg detikzify-ds-7b model. huggingface.co supports a free trial of the detikzify-ds-7b model, and also provides paid use of the detikzify-ds-7b. Support call detikzify-ds-7b model through api, including Node.js, Python, http.
detikzify-ds-7b huggingface.co is an online trial and call api platform, which integrates detikzify-ds-7b's modeling effects, including api services, and provides a free online trial of detikzify-ds-7b, you can try detikzify-ds-7b online for free by clicking the link below.
nllg detikzify-ds-7b online free url in huggingface.co:
detikzify-ds-7b is an open source model from GitHub that offers a free installation service, and any user can find detikzify-ds-7b on GitHub to install. At the same time, huggingface.co provides the effect of detikzify-ds-7b install, users can directly use detikzify-ds-7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.