Ti
k
Zero adapters can be loaded into
DeTi
k
Zify
v2
(8B)
, a multimodal language model
that converts sketches and scientific figures into editable,
semantics-preserving TikZ graphics programs, to enable text caption
conditioning. Check out the
DeTi
k
Zify
project for more
information and tips on how to best run the model.
Usage
The default adapter uses cosine distance training, while an alternative variant
trained with MSE can be loaded by specifying
adapter_kwargs=dict(revision="mse")
in the
load_adapter
function.
from detikzify.model import load, load_adapter
from detikzify.infer import DetikzifyPipeline
caption = "A multi-layer perceptron with two hidden layers."
pipeline = DetikzifyPipeline(
*load_adapter(
*load(
model_name_or_path="nllg/detikzify-v2-8b",
device_map="auto",
torch_dtype="bfloat16",
),
adapter_name_or_path="nllg/tikzero-adapter",
#adapter_kwargs=dict(revision="mse") # load variant trained with MSE
)
)
# generate a single TikZ program
fig = pipeline.sample(text=caption)
# if it compiles, rasterize it and show itif fig.is_rasterizable:
fig.rasterize().show()
Acknowledgments
This model was trained using computational resources provided by the
bwForCluster Helix, as part of the bwHPC-S5 project. The authors acknowledge
support from the state of Baden-Württemberg through the bwHPC initiative and
the German Research Foundation (DFG) under grant INST 35/1597-1 FUGG.
Runs of nllg tikzero-adapter on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About tikzero-adapter huggingface.co Model
tikzero-adapter huggingface.co
tikzero-adapter huggingface.co is an AI model on huggingface.co that provides tikzero-adapter's model effect (), which can be used instantly with this nllg tikzero-adapter model. huggingface.co supports a free trial of the tikzero-adapter model, and also provides paid use of the tikzero-adapter. Support call tikzero-adapter model through api, including Node.js, Python, http.
tikzero-adapter huggingface.co is an online trial and call api platform, which integrates tikzero-adapter's modeling effects, including api services, and provides a free online trial of tikzero-adapter, you can try tikzero-adapter online for free by clicking the link below.
nllg tikzero-adapter online free url in huggingface.co:
tikzero-adapter is an open source model from GitHub that offers a free installation service, and any user can find tikzero-adapter on GitHub to install. At the same time, huggingface.co provides the effect of tikzero-adapter install, users can directly use tikzero-adapter installed effect in huggingface.co for debugging and trial. It also supports api for free installation.