VisCoder-7B
is a large language model fine-tuned for
Python visualization code generation and multi-turn self-correction
. It is trained on
VisCode-200K
, a large-scale instruction-tuning dataset that integrates validated executable code, natural language instructions, and revision supervision from execution feedback.
🧠 Model Description
VisCoder-7B
is trained on
VisCode-200K
, a large-scale instruction-tuning dataset tailored for executable Python visualization tasks. It addresses a core challenge in data analysis: generating Python code that not only executes successfully but also produces
semantically meaningful plots
by aligning
natural language instructions
,
data structures
, and
visual outputs
.
We propose a
self-debug evaluation protocol
that simulates real-world developer workflows. In this setting, models are allowed to revise previously failed generations over multiple rounds with guidance from
execution feedback
.
📊 Main Results on PandasPlotBench
We evaluate VisCoder-7B on
PandasPlotBench
, which tests executable visualization code generation across three major libraries. Our benchmark covers both standard generation and
multi-round self-debugging
.
VisCoder-7B achieves over
90% execution pass rate
on both
Matplotlib
and
Seaborn
under the self-debug setting, outperforming open-source baselines and approaching GPT-4o performance.
150K+ validated Python visualization samples with images
45K+ multi-turn correction dialogues with execution feedback
📖 Citation
If you use VisCoder-7B or VisCode-200K in your research, please cite:
@article{ni2025viscoder,
title={VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generation},
author={Ni, Yuansheng and Nie, Ping and Zou, Kai and Yue, Xiang and Chen, Wenhu},
journal={arXiv preprint arXiv:2506.03930},
year={2025}
}
VisCoder-7B huggingface.co is an AI model on huggingface.co that provides VisCoder-7B's model effect (), which can be used instantly with this TIGER-Lab VisCoder-7B model. huggingface.co supports a free trial of the VisCoder-7B model, and also provides paid use of the VisCoder-7B. Support call VisCoder-7B model through api, including Node.js, Python, http.
VisCoder-7B huggingface.co is an online trial and call api platform, which integrates VisCoder-7B's modeling effects, including api services, and provides a free online trial of VisCoder-7B, you can try VisCoder-7B online for free by clicking the link below.
TIGER-Lab VisCoder-7B online free url in huggingface.co:
VisCoder-7B is an open source model from GitHub that offers a free installation service, and any user can find VisCoder-7B on GitHub to install. At the same time, huggingface.co provides the effect of VisCoder-7B install, users can directly use VisCoder-7B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.