Skip to content

Graph translator#241

Open
Hinataee wants to merge 2 commits into
BUPT-GAMMA:mainfrom
Hinataee:GraphTranslator
Open

Graph translator#241
Hinataee wants to merge 2 commits into
BUPT-GAMMA:mainfrom
Hinataee:GraphTranslator

Conversation

@Hinataee
Copy link
Copy Markdown

This pull request introduces the initial implementation of the GraphTranslator example, including code for pre-training a graph neural network, generating node summaries using a large language model, and 2-statge training for GraphTranslator. The main changes are the addition of new scripts for the Producer and Translator phases, as well as a comprehensive README with setup and usage instructions.

Producer Phase Implementation (Data preparation):

  • Added Embeddings_GraphSAGE.py to pre-train a GraphSAGE model for node embeddings using link prediction on the OGBN-Arxiv dataset, with integration of BERT node embeddings and TensorLayerX for training.
  • Added producer.py to generate node summaries and neighbor summaries using ChatGLM2-6B, including dataset parsing, prompt construction, and result serialization.

Translator Phase:

  • Added graphtranslator_trainer.py: Training Phase, which trains the Translator model for GraphModel-Text (Stage 1) and GraphModel-LLM alignment (Stage 2).
  • Added graphtranslator_eval.py: Generate and Evaluate Phase, which generates predictions and evaluates the accuracy of the generated predictions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant