← all repositories
HKUDS/GraphGPT

Teaching LLMs to read graph topology, not just text

GraphGPT bridges the gap between natural language and graph structure by instruction-tuning a Vicuna-7B model to reason over topological data it would otherwise ignore.

835 stars Python Language ModelsML Frameworks
GraphGPT
Not currently ranked — collecting fresh signals.
star history

What it does

GraphGPT aligns a Vicuna-7B large language model with graph structural knowledge through a graph instruction tuning paradigm. It handles node classification and link prediction on academic graph datasets like Arxiv and PubMed by translating topological relationships into prompts the LLM can interpret. The framework runs a two-stage tuning pipeline—first self-supervised alignment, then task-specific refinement—that the authors say fits on two RTX 3090 GPUs.

The interesting bit

Instead of dumping raw adjacency matrices into the prompt, the project uses a “text-graph grounding” paradigm that encodes structure into natural language space, then distills Chain-of-Thought reasoning so the model can handle unfamiliar graph distributions without losing its logical thread.

Key highlights

  • Built on Vicuna-7B-v1.5 with a pre-trained graph transformer encoder for structural encoding
  • Two-stage instruction tuning: self-supervised graph-text alignment followed by task-specific fine-tuning for node classification and link prediction
  • Chain-of-Thought distillation explicitly trains step-by-step reasoning to combat distribution shift across diverse graph data
  • Lightweight training scripts updated to run on dual 24 GB GPUs (PyTorch 2.1+)
  • Checkpoints, evaluation data, and pre-trained graph weights published on HuggingFace

Caveats

  • The FAQ catalogs visible environment battle scars—flash-attention bugs, fastchat conflicts, and path errors—and the PyTorch 2.1+ update required a mandatory graph data refresh for compatibility.
  • Scope is currently limited to node classification and link prediction on Arxiv and PubMed; the authors note more graph learning tasks remain on the TODO list.

Verdict

Researchers working at the intersection of LLMs and graph learning should grab this. If your graphs live outside academic citation networks or you need battle-tested tooling, wait for the roadmap to fill out.

Frequently asked

What is HKUDS/GraphGPT?
GraphGPT bridges the gap between natural language and graph structure by instruction-tuning a Vicuna-7B model to reason over topological data it would otherwise ignore.
Is GraphGPT open source?
Yes — HKUDS/GraphGPT is open source, released under the Apache-2.0 license.
What language is GraphGPT written in?
HKUDS/GraphGPT is primarily written in Python.
How popular is GraphGPT?
HKUDS/GraphGPT has 835 stars on GitHub.
Where can I find GraphGPT?
HKUDS/GraphGPT is on GitHub at https://github.com/HKUDS/GraphGPT.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.