IBM/pytorch-seq2seq — công cụ AI — đang có 1.5k sao GitHub trong nhóm AI Tools. An open source framework for seq2seq models in PyTorch.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This is a framework for sequence-to-sequence (seq2seq) models implemented in PyTorch. The framework has modularized and extensible components for seq2seq models, training and inference, checkpoints, etc. This is an alpha release. We appreciate any kind of feedback or contribution.
What's New in 0.1.6
Compatible with PyTorch 0.4
Added support for pre-trained word embedding
Roadmap
Seq2seq is a fast evolving field with new techniques and architectures being published frequently. The goal of this library is facilitating the development of such techniques and applications. While constantly improving the quality of code and documentation, we will focus on the following items:
Evaluation with benchmarks such as WMT machine translation, COCO image captioning, conversational models, etc;
Provide more flexible model options, improving the usability of the library;
Adding latest architectures such as the CNN based model proposed by Convolutional Sequence to Sequence Learning and the transformer model proposed by Attention Is All You Need;
Support features in the new versions of PyTorch.
Installation
This package requires Python 2.7 or 3.6. We recommend creating a new virtual environment for this project (using virtualenv or conda).
Prerequisites
Numpy: pip install numpy (Refer here for problem installing Numpy).
PyTorch: Refer to PyTorch website to install the version w.r.t. your environment.
Install from source
Currently we only support installation from source code using setuptools. Checkout the source code and run the following commands:
It will take about 3 minutes to train on CPU and less than 1 minute with a Tesla K80. Once training is complete, you will be prompted to enter a new sequence to translate and the model will print out its prediction (use ctrl-C to terminate). Try the example below!
Input: 1 3 5 7 9
Expected output: 9 7 5 3 1 EOS
Checkpoints
Checkpoints are organized by experiments and timestamps as shown in the following file structure
The sample script by default saves checkpoints in the experiment folder of the root directory. Look at the usages of the sample code for more options, including resuming and loading from checkpoints.
Benchmarks
WMT Machine Translation (Coming soon)
Troubleshoots and Contributing
If you have any questions, bug reports, and feature requests, please open an issue on Github. For live discussions, please go to our Gitter lobby.
We appreciate any kind of feedback or contribution. Feel free to proceed with small issues like bug fixes, documentation improvement. For major contributions and new features, please discuss with the collaborators in corresponding issues.
Development Cycle
We are using 4-week release cycles, where during each cycle changes will be pushed to the develop branch and finally merge to the master branch at the end of each cycle.
Development Environment
We setup the development environment using Vagrant. Run vagrant up with our 'Vagrantfile' to get started.
The following tools are needed and installed in the development environment by default:
Git
Python
Python packages: nose, mock, coverage, flake8
Test
The quality and the maintainability of the project is ensured by comprehensive tests. We encourage writing unit tests and integration tests when contributing new codes.
Locally please run nosetests in the package root directory to run unit tests. We use TravisCI to require that a pull request has to pass all unit tests to be eligible to merge. See travis configuration for more information.
Code Style
We follow PEP8 for code style. Especially the style of docstrings is important to generate documentation.
Local: Run the following commands in the package root directory
IBM/pytorch-seq2seq thuộc nhóm AI Tools trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về IBM/pytorch-seq2seq ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/IBM/pytorch-seq2seq là nguồn chính thức.
IBM/pytorch-seq2seq có bao nhiêu sao?
IBM/pytorch-seq2seq có 1.5k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/IBM/pytorch-seq2seq. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
IBM/pytorch-seq2seq có phải mã nguồn mở không?
Có — IBM/pytorch-seq2seq phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/IBM/pytorch-seq2seq.
IBM/pytorch-seq2seq còn đang phát triển không?
Commit gần nhất trên IBM/pytorch-seq2seq là 1.1 năm trước (theo timestamp GitHub). Repo có 369 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
IBM/pytorch-seq2seq dùng license gì?
IBM/pytorch-seq2seq phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
IBM/pytorch-seq2seq là gì?
IBM/pytorch-seq2seq (IBM/pytorch-seq2seq) là dự án Python trên GitHub. Theo mô tả gốc: An open source framework for seq2seq models in PyTorch.
IBM/pytorch-seq2seq viết bằng ngôn ngữ gì?
IBM/pytorch-seq2seq chủ yếu viết bằng Python. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về pytorch-seq2seq?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về pytorch-seq2seq.