Giter Club home page Giter Club logo

instructglm's Introduction

InstructGLM: Natural Language is All a Graph Needs

This repo presents implementation of the InstructGLM and provide a natural language interface for graph machine learning:

Paper: Natural Language is All a Graph Needs

Paper link: https://arxiv.org/abs/2308.07134

Teaser Teaser

Introduction

We introduce our proposed Instruction-finetuned Graph Language Model, i.e. InstructGLM, a framework utilizing natural language to describe both graph structure and node features to a generative large language model and further addresses graph-related problems by instruction-tuning, which provides a powerful natural language processing interface for graph machine learning.

Usage

  1. Clone this repo

git clone https://github.com/agiresearch/InstructGLM.git

  1. Download preprocessed data from this Google Drive link, and put the Arxiv/ folder under the same path with ./scripts folder. If you would like to preprocess your own data, please follow the data_preprocess folder. Related raw data files can be downloaded from this Google Drive link, and please put these raw data files under ./data_preprocess/Arxiv_preprocess/

  2. Download Llama-7b pretrained checkpoint via this Google Drive link. Then please put the ./7B folder under the same path with ./scripts folder.

  3. Multi-task Multi-prompt Instruction Tuning


bash scripts/train_llama_arxiv.sh 8

Here 8 means using 8 GPUs to conduct parallel instruction tuning with DDP.

  1. Validation/ Inference

bash scripts/test_llama.sh 8

  1. Main key points are summarized in note.txt

Checkpoints

See: Google Drive link.

Citation

Please cite the following paper corresponding to the repository:


@article{ye2023natural,
  title={Natural language is all a graph needs},
  author={Ye, Ruosong and Zhang, Caiqi and Wang, Runhui and Xu, Shuyuan and Zhang, Yongfeng},
  journal={arXiv:2308.07134},
  year={2023}
}

Acknowledgements

TAPE, GIANT, OGB, P5, OpenP5, and Planetoid

instructglm's People

Contributors

evison avatar agiresearch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.