torchgfn: A PyTorch GFlowNet library
- URL: http://arxiv.org/abs/2305.14594v2
- Date: Tue, 29 Aug 2023 14:51:08 GMT
- Title: torchgfn: A PyTorch GFlowNet library
- Authors: Salem Lahlou, Joseph D. Viviano, Victor Schmidt, Yoshua Bengio
- Abstract summary: torchgfn is a PyTorch library that aims to address this need.
It provides users with a simple API for environments and useful abstractions for samplers and losses.
- Score: 56.071033896777784
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: The growing popularity of generative flow networks (GFlowNets or GFNs) from a
range of researchers with diverse backgrounds and areas of expertise
necessitates a library which facilitates the testing of new features such as
training losses that can be easily compared to standard benchmark
implementations, or on a set of common environments. torchgfn is a PyTorch
library that aims to address this need. It provides users with a simple API for
environments and useful abstractions for samplers and losses. Multiple examples
are provided, replicating and unifying published results. The code is available
in https://github.com/saleml/torchgfn.
Related papers
- Comgra: A Tool for Analyzing and Debugging Neural Networks [35.89730807984949]
We introduce comgra, an open source python library for use with PyTorch.
Comgra extracts data about the internal activations of a model and organizes it in a GUI.
It can show both summary statistics and individual data points, compare early and late stages of training, focus on individual samples of interest, and visualize the flow of the gradient through the network.
arXiv Detail & Related papers (2024-07-31T14:57:23Z) - Local Search GFlowNets [85.0053493167887]
Generative Flow Networks (GFlowNets) are amortized sampling methods that learn a distribution over discrete objects proportional to their rewards.
GFlowNets exhibit a remarkable ability to generate diverse samples, yet occasionally struggle to consistently produce samples with high rewards due to over-exploration on wide sample space.
This paper proposes to train GFlowNets with local search, which focuses on exploiting high-rewarded sample space to resolve this issue.
arXiv Detail & Related papers (2023-10-04T10:27:17Z) - BayesDLL: Bayesian Deep Learning Library [29.624531252627484]
We release a new Bayesian neural network library for PyTorch for large-scale deep networks.
Our library implements mainstream inference algorithms: variational inference, MC-dropout, approximate-gradient MCMC, and Laplace approximation.
arXiv Detail & Related papers (2023-09-22T15:27:54Z) - SPRINT: A Unified Toolkit for Evaluating and Demystifying Zero-shot
Neural Sparse Retrieval [92.27387459751309]
We provide SPRINT, a unified Python toolkit for evaluating neural sparse retrieval.
We establish strong and reproducible zero-shot sparse retrieval baselines across the well-acknowledged benchmark, BEIR.
We show that SPLADEv2 produces sparse representations with a majority of tokens outside of the original query and document.
arXiv Detail & Related papers (2023-07-19T22:48:02Z) - TyXe: Pyro-based Bayesian neural nets for Pytorch [12.343312954353639]
We introduce TyXe, a Bayesian neural network library built on top of Pytorch and Pyro.
Our leading design principle is to cleanly separate architecture, prior, inference and likelihood specification.
In contrast to existing packages TyXe does not implement any layer classes, and instead relies on architectures defined in generic Pytorch code.
arXiv Detail & Related papers (2021-10-01T09:04:26Z) - Solo-learn: A Library of Self-supervised Methods for Visual
Representation Learning [83.02597612195966]
solo-learn is a library of self-supervised methods for visual representation learning.
Implemented in Python, using Pytorch and Pytorch lightning, the library fits both research and industry needs.
arXiv Detail & Related papers (2021-08-03T22:19:55Z) - Efficient Graph Deep Learning in TensorFlow with tf_geometric [53.237754811019464]
We introduce tf_geometric, an efficient and friendly library for graph deep learning.
tf_geometric provides kernel libraries for building Graph Neural Networks (GNNs) as well as implementations of popular GNNs.
The kernel libraries consist of infrastructures for building efficient GNNs, including graph data structures, graph map-reduce framework, graph mini-batch strategy, etc.
arXiv Detail & Related papers (2021-01-27T17:16:36Z) - torchgpipe: On-the-fly Pipeline Parallelism for Training Giant Models [19.024035785367044]
We design and implement a ready-to-use library in PyTorch for performing micro-batch pipeline parallelism with checkpointing proposed by GPipe.
We show that each component is necessary to fully benefit from pipeline parallelism in such environment, and demonstrate the efficiency of the library.
arXiv Detail & Related papers (2020-04-21T11:27:00Z) - Torch-Struct: Deep Structured Prediction Library [138.5262350501951]
We introduce Torch-Struct, a library for structured prediction.
Torch-Struct includes a broad collection of probabilistic structures accessed through a simple and flexible distribution-based API.
arXiv Detail & Related papers (2020-02-03T16:43:02Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.