Instructions to use mikewang/PVD-160k-Mistral-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mikewang/PVD-160k-Mistral-7b with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="mikewang/PVD-160k-Mistral-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mikewang/PVD-160k-Mistral-7b") model = AutoModelForCausalLM.from_pretrained("mikewang/PVD-160k-Mistral-7b") - Notebooks
- Google Colab
- Kaggle
Text-Based Reasoning About Vector Graphics
π Homepage β’ π Paper β’ π€ Data (PVD-160k) β’ π€ Model (PVD-160k-Mistral-7b) β’ π» Code
We observe that current large multimodal models (LMMs) still struggle with seemingly straightforward reasoning tasks that require precise perception of low-level visual details, such as identifying spatial relations or solving simple mazes. In particular, this failure mode persists in question-answering tasks about vector graphicsβimages composed purely of 2D objects and shapes.
To solve this challenge, we propose Visually Descriptive Language Model (VDLM), a visual reasoning framework that operates with intermediate text-based visual descriptionsβSVG representations and learned Primal Visual Description, which can be directly integrated into existing LLMs and LMMs. We demonstrate that VDLM outperforms state-of-the-art large multimodal models, such as GPT-4V, across various multimodal reasoning tasks involving vector graphics. See our paper for more details.

- Downloads last month
- 10
