You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*(Note: This is the alpha release of Texar-PyTorch.)*
13
-
14
-
**Texar-PyTorch** is an open-source toolkit based on PyTorch, aiming to support a broad set of machine learning, especially text generation tasks, such as machine translation, dialog, summarization, content manipulation, language modeling, and so on. Texar is designed for both researchers and practitioners for fast prototyping and experimentation.
15
12
16
-
*If you work with TensorFlow, be sure to check out **[Texar (TensorFlow)](https://github.com/asyml/texar)** which has (mostly) the **same functionalities and interfaces**.*
13
+
**Texar-PyTorch** is a toolkit aiming to support a broad set of machine learning, especially natural language processing and text generation tasks. Texar provides a library of easy-to-use ML modules and functionalities for composing whatever models and algorithms. The tool is designed for both researchers and practitioners for fast prototyping and experimentation.
17
14
18
-
With the design goals of **modularity, versatility, and extensibility** in mind, Texar extracts the common patterns underlying the diverse tasks and methodologies, creates a library of highly reusable modules and functionalities, and facilitates **arbitrary model architectures and algorithmic paradigms**, e.g.,
19
-
* encoder(s) to decoder(s), sequential- and self-attentions, memory, hierarchical models, classifiers, ...
***pre-trained models** such as **BERT**, **GPT2**, **XLNet**, ...
15
+
Texar-PyTorch integrates many of the best features of TensorFlow into PyTorch, delivering highly usable and customizable modules superior to PyTorch native ones.
22
16
23
-
With Texar, cutting-edge complex models can be easily constructed, freely enriched with best modeling/training practices, readily fitted into standard training/evaluation pipelines, and quickly experimented and evolved by, e.g., plugging in and swapping out different modules.
17
+
### Key Features
18
+
***Two Versions, (Mostly) Same Interfaces**. Texar-PyTorch (this repo) and **[Texar-TF](https://github.com/asyml/texar)** have mostly the same interfaces. Both further combine the best design of TF and PyTorch:
19
+
- Interfaces and variable sharing in *PyTorch convention*
20
+
- Excellent factorization and rich functionalities in *TF convention*.
21
+
***Versatile** to support broad needs:
22
+
- data processing, model architectures, loss functions, training and inference algorithms, evaluation, ...
23
+
- encoder(s) to decoder(s), sequential- and self-attentions, memory, hierarchical models, classifiers, ...
***Fully Customizable** at multiple abstraction level -- both novice-friendly and expert-friendly.
26
+
- Free to plug in whatever external modules, since Texar is fully compatible with the native PyTorch APIs.
27
+
***Modularized** for maximal re-use and clean APIs, based on principled decomposition of *Learning-Inference-Model Architecture*.
28
+
***Rich Pre-trained Models, Rich Usage with Uniform Interfaces**. BERT, GPT2, XLNet, etc, for encoding, classification, generation, and composing complex models with other Texar components!
29
+
* Clean, detailed [documentation](https://texar-pytorch.readthedocs.io) and rich [examples](./examples).
***Versatility**. Texar contains a wide range of modules and functionalities for composing arbitrary model architectures and implementing various learning algorithms, as well as for data processing, evaluation, prediction, etc.
32
-
***Modularity**. Texar decomposes diverse, complex machine learning models and algorithms into a set of highly-reusable modules. In particular, model **architecture, losses, and learning processes** are fully decomposed.
33
-
Users can construct their own models at a high conceptual level, just like assembling building blocks. It is convenient to plug in or swap out modules, and configure rich options for each module. For example, switching between maximum-likelihood learning and reinforcement learning involves only changing several lines of code.
34
-
***Extensibility**. It is straightforward to integrate any user-customized, external modules. Also, Texar is fully compatible with the native PyTorch interfaces and can take advantage of the rich PyTorch features, and resources from the vibrant open-source community.
35
-
* Interfaces with different functionality levels. Users can customize a model through 1) simple **Python/YAML configuration files** of provided model templates/examples; 2) programming with **Python Library APIs** for maximal customizability.
36
-
* Easy-to-use APIs; rich configuration options for each module, all with default values.
37
-
* Well-structured high-quality code of uniform design patterns and consistent styles.
38
-
* Clean, detailed [documentation](https://texar-pytorch.readthedocs.io) and rich [examples](./examples).
Many more examples are available [here](./examples).
89
107
90
108
91
109
### Installation
92
-
Texar-PyTorch requires PyTorch1.0 or higher. Please follow the [official instructions](https://pytorch.org/get-started/locally/#start-locally) to install the appropriate version.
110
+
Texar-PyTorch requires `PyTorch>=1.0`. Please follow the [official instructions](https://pytorch.org/get-started/locally/#start-locally) to install the appropriate version.
93
111
94
112
After PyTorch is installed, please run the following commands to install Texar-PyTorch:
95
113
```
@@ -114,16 +132,15 @@ If you use Texar, please cite the [tech report](https://arxiv.org/abs/1809.00794
114
132
```
115
133
Texar: A Modularized, Versatile, and Extensible Toolkit for Text Generation
title={Texar: A Modularized, Versatile, and Extensible Toolkit for Text Generation},
121
139
author={Hu, Zhiting and Shi, Haoran and Tan, Bowen and Wang, Wentao and Yang, Zichao and Zhao, Tiancheng and He, Junxian and Qin, Lianhui and Wang, Di and others},
0 commit comments