texar-pytorch  by asyml

PyTorch toolkit for NLP and text generation research

created 6 years ago
746 stars

Top 47.5% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

Texar-PyTorch is a comprehensive toolkit for machine learning, particularly NLP and text generation, designed for researchers and practitioners. It offers a modular, extensible library of components and functionalities, integrating the strengths of TensorFlow's design with PyTorch's ecosystem for rapid prototyping and experimentation.

How It Works

Texar-PyTorch provides a principled decomposition of learning, inference, and model architecture, enabling users to compose complex models from reusable modules. It supports various learning paradigms (maximum likelihood, reinforcement, adversarial) and model architectures (encoder-decoder, attention, hierarchical). The toolkit aims for interface consistency with its TensorFlow counterpart, Texar-TF, while leveraging PyTorch conventions for variable sharing and offering deep customization at multiple abstraction levels.

Quick Start & Requirements

  • Install via pip: pip install texar-pytorch
  • Requires Python 3.6 or 3.7, and PyTorch >= 1.0.0.
  • TensorBoard support requires pip install tensorboardX.
  • Installation from source is available for development.
  • Official documentation and examples are provided.

Highlighted Details

  • Integrates pre-trained models like BERT, GPT2, and XLNet.
  • Offers uniform interfaces for diverse tasks including encoding, classification, and generation.
  • Features a flexible Executor API for managing training and evaluation loops.
  • Supports custom data processing, loss functions, and inference algorithms.

Maintenance & Community

Originally developed by Petuum and CMU, with active contributions from other institutes. A mirror is maintained by Petuum Open Source.

Licensing & Compatibility

Licensed under the Apache License 2.0, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The project specifies Python 3.6 or 3.7, which are end-of-life versions. Compatibility with newer Python versions or PyTorch releases is not explicitly guaranteed by the README.

Health Check
Last commit

3 years ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 90 days

Explore Similar Projects

Starred by Tim J. Baek Tim J. Baek(Founder of Open WebUI), Stas Bekman Stas Bekman(Author of Machine Learning Engineering Open Book; Research Engineer at Snowflake), and
7 more.

pytorch-tutorial by yunjey

0.1%
32k
PyTorch tutorial for deep learning researchers
created 8 years ago
updated 1 year ago
Starred by Peter Norvig Peter Norvig(Author of Artificial Intelligence: A Modern Approach; Research Director at Google), Aravind Srinivas Aravind Srinivas(Cofounder of Perplexity), and
45 more.

tensorflow by tensorflow

0.1%
191k
Open-source ML framework
created 9 years ago
updated 13 hours ago
Feedback? Help us improve.