JittorGeometric 2.0 is a state-of-the-art graph machine learning library built on the Jittor framework. As a Chinese-developed deep learning library, JittorGeometric provides comprehensive support for Graph Neural Networks (GNNs) research and applications, featuring enhanced performance, flexibility, and scalability.
🌟 Key Features
Core Capabilities
🚀 JIT Compilation: Leverage Just-In-Time compilation for dynamic code modification without pre-compilation overhead
For detailed distributed training setup, see [examples/README.md](/jinchi_NKU/jittor-geometric-competition/tree/main/examples/README.md).
## 🧪 Testing
Run a specific example:
```bash
python examples/gcn_example.py
计图挑战赛赛道一热身赛:Cora GCN 节点分类
本仓库是战队“雪国”的计图挑战赛赛道一热身赛开源项目,使用 Jittor 和 JittorGeometric 训练两层 GCN,完成 Cora 引文网络节点分类。基础方案线上测试准确率为 0.821。
环境安装
已验证环境为 Ubuntu 22.04、Python 3.10.12、Jittor 1.3.11.0。最小依赖及 WSL2 安装方法见完整项目说明。
数据准备
从比赛发布包获取
cora.pkl,放置于release/data/cora.pkl。数据集原始文件不包含在开源仓库中。训练
多随机种子改进版:
评测与推理
训练脚本会计算验证集准确率、加载最佳权重并自动生成测试集预测。基础版输出
release/result.json,改进版输出release/result_improved.json和可提交压缩包。结果说明
评测指标为节点分类准确率,即预测正确的测试节点数除以测试节点总数。基础方案验证集准确率为 0.8120,线上测试准确率为 0.821。因测试标签隐藏,线上准确率需要在比赛平台提交后获得。
可复现说明
基础方案固定随机种子 42;改进版固定 5 个随机种子。完整环境、参数、数据格式、输出格式及复现命令见 release/README.md。
上游项目:JittorGeometric 2.0
A Comprehensive Graph Machine Learning Library Built on Jittor
Documentation • Examples • Installation • Quick Start • Models
Overview
JittorGeometric 2.0 is a state-of-the-art graph machine learning library built on the Jittor framework. As a Chinese-developed deep learning library, JittorGeometric provides comprehensive support for Graph Neural Networks (GNNs) research and applications, featuring enhanced performance, flexibility, and scalability.
🌟 Key Features
Core Capabilities
New in Version 2.0
Quick Tour
Supported Models
JittorGeometric 2.0 includes implementations of 40+ state-of-the-art GNN models:
Classic Graph Neural Networks
Spectral Graph Neural Networks
Dynamic Graph Neural Networks
Molecular Graph Neural Networks
Graph Self-supervised Learning
Graph Recommendation
Graph Embedding
Graph Transformers
Installation
Step-by-Step Installation
Create a conda environment
Install Jittor
or follow the Jittor official documentation.
Install dependencies
Install JittorGeometric
Verify installation
For Distributed Training (Optional)
Install MPI support:
📋 Requirements
🔄 Distributed Training
JittorGeometric 2.0 supports distributed training across multiple GPUs and nodes:
Single Machine Multi-GPU
Multi-Node Training
Configure your hostfile: ```
31.195.15 slots=1
31.195.16 slots=1 ```
Partition the graph:
Launch distributed training: ```bash mpirun -n 2 –hostfile hostfile \
–prefix /path/to/conda/env
python dist_gcn.py –num_parts 2 –dataset reddit
📖 Documentation
Comprehensive documentation is available at https://algruc.github.io/JittorGeometric/index.html
👥 Contributors
This project is actively maintained by the JittorGeometric Team at Renmin University of China and Northeastern University.
Core Team
📄 License
JittorGeometric is released under the Apache 2.0 License.
🙏 Acknowledgments