PyTorch-BigGraph (PBG) is a system for learning embeddings on massive graphs—think billions of nodes and edges—using partitioning and distributed training to keep memory and compute tractable. It shards entities into partitions and buckets edges so that each training pass only touches a small slice of parameters, which drastically reduces peak RAM and enables horizontal scaling across machines. PBG supports multi-relation graphs (knowledge graphs) with relation-specific scoring functions, negative sampling strategies, and typed entities, making it suitable for link prediction and retrieval. Its training loop is built for throughput: asynchronous I/O, memory-mapped tensors, and lock-free updates keep GPUs and CPUs fed even at extreme scale. The toolkit includes evaluation metrics and export tools so learned embeddings can be used in downstream nearest-neighbor search, recommendation, or analytics. In practice, PBG’s design lets practitioners train high-quality graph embeddings.

Features

  • Partitioned training for billion-scale graphs
  • Multi-relation scoring for knowledge graph link prediction
  • Efficient negative sampling and edge bucketing
  • Export and evaluation utilities for ANN and downstream tasks
  • Asynchronous I/O with memory-mapped tensors
  • Distributed, multi-machine training with simple orchestration

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow PyTorch-BigGraph

PyTorch-BigGraph Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PyTorch-BigGraph!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

2025-10-07