facebookresearch/ParlAI hiện có 10.6k sao trên GitHub, viết chủ yếu bằng Python. A framework for training and evaluating AI models on a variety of openly available dialogue datasets.
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.
ParlAI (pronounced “par-lay”) is a python framework for
sharing, training and testing dialogue models, from open-domain chitchat, to
task-oriented dialogue, to visual question answering.
Its goal is to provide researchers:
100+ popular datasets available all in one place, with the same API, among them PersonaChat, DailyDialog, Wizard of Wikipedia, Empathetic Dialogues, SQuAD, MS MARCO, QuAC, HotpotQA, QACNN & QADailyMail, CBT, BookTest, bAbI Dialogue tasks, Ubuntu Dialogue, OpenSubtitles, Image Chat, VQA, VisDial and CLEVR. See the complete list here.
a wide set of reference models -- from retrieval baselines to Transformers.
a large zoo of pretrained models ready to use off-the-shelf
seamless integration of Amazon Mechanical Turk for data collection and human evaluation
integration with Facebook Messenger to connect agents with humans in a chat interface
a large range of helpers to create your own agents and train on several tasks with multitasking
multimodality, some tasks use text and images
ParlAI is described in the following paper:
“ParlAI: A Dialog Research Software Platform", arXiv:1705.06476
or see these more up-to-date slides.
Follow us on Twitter and check out our Release
notes to see the latest
information about new features & updates, and the website
http://parl.ai for further docs. For an archived list of updates,
check out NEWS.md.
Interactive Tutorial
For those who want to start with ParlAI now, you can try our Colab Tutorial.
Installing ParlAI
Operating System
ParlAI should work as inteded under Linux or macOS. We do not support Windows at this time, but many users report success on Windows using Python 3.8 and issues with Python 3.9. We are happy to accept patches that improve Windows support.
Python Interpreter
ParlAI currently requires Python3.8+.
Requirements
ParlAI supports Pytorch 1.6 or higher.
All requirements of the core modules are listed in requirements.txt. However, some models included (in parlai/agents) have additional requirements.
Virtual Environment
We strongly recommend you install ParlAI in a virtual environment using venv or conda.
End User Installation
If you want to use ParlAI without modifications, you can install it with:
Many users will want to modify some parts of ParlAI. To set up a development
environment, run the following commands to clone the repository and install
ParlAI:
Note
Sometimes the install from source maynot work due to dependencies (specially in PyTorch related packaged).
In that case try building a fresh conda environment and running the similar to the following:
conda install pytorch==2.0.0 torchvision torchaudio torchtext pytorch-cuda=11.8 -c pytorch -c nvidia.
Check torch setup documentation for your CUDA and OS versions.
All needed data will be downloaded to ~/ParlAI/data. If you need to clear out
the space used by these files, you can safely delete these directories and any
files needed will be downloaded again.
Documentation
Quick Start
Basics: world, agents, teachers, action and observations
Creating a new dataset/task
List of available tasks/datasets
Creating a seq2seq agent
List of available agents
Model zoo (list pretrained models)
Running crowdsourcing tasks
Plug into Facebook Messenger
Examples
A large set of scripts can be found in parlai/scripts. Here are a few of them.
Note: If any of these examples fail, check the installation section to see if you have missed something.
Display 10 random examples from the SQuAD task
parlai display_data -t squad
Evaluate an IR baseline model on the validation set of the Personachat task:
Train a single layer transformer on PersonaChat (requires pytorch and torchtext).
Detail: embedding size 300, 4 attention heads, 2 epochs using batchsize 64, word vectors are initialized with fasttext and the other elements of the batch are used as negative during training.
agents: contains agents which can interact with the different tasks (e.g. machine learning models)
scripts: contains a number of useful scripts, like training, evaluating, interactive chatting, ...
tasks: contains code for the different tasks available from within ParlAI
mturk: contains code for setting up Mechanical Turk, as well as sample MTurk tasks
messenger: contains code for interfacing with Facebook Messenger
utils: contains a wide number of frequently used utility methods
crowdsourcing: contains code for running crowdsourcing tasks, such as on Amazon Mechanical Turk
chat_service: contains code for interfacing with services such as Facebook Messenger
zoo: contains code to directly download and use pretrained models from our model zoo
Support
If you have any questions, bug reports or feature requests, please don't hesitate to post on our Github Issues page.
You may also be interested in checking out our FAQ and
our Tips n Tricks.
Please remember to follow our Code of Conduct.
Contributing
We welcome PRs from the community!
You can find information about contributing to ParlAI in our
Contributing
document.
The Team
ParlAI is currently maintained by Moya Chen, Emily Dinan, Dexter Ju, Mojtaba
Komeili, Spencer Poff, Pratik Ringshia, Stephen Roller, Kurt Shuster,
Eric Michael Smith, Megan Ung, Jack Urbanek, Jason Weston, Mary Williamson,
and Jing Xu. Kurt Shuster is the current Tech Lead.
Former major contributors and maintainers include Alexander H. Miller, Margaret
Li, Will Feng, Adam Fisch, Jiasen Lu, Antoine Bordes, Devi Parikh, Dhruv Batra,
Filipe de Avila Belbute Peres, Chao Pan, and Vedant Puri.
Citation
Please cite the arXiv paper if you use ParlAI in your work:
@article{miller2017parlai,
title={ParlAI: A Dialog Research Software Platform},
author={{Miller}, A.~H. and {Feng}, W. and {Fisch}, A. and {Lu}, J. and {Batra}, D. and {Bordes}, A. and {Parikh}, D. and {Weston}, J.},
journal={arXiv preprint arXiv:{1705.06476}},
year={2017}
}
License
ParlAI is MIT licensed. See the LICENSE file for details.
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/facebookresearch/ParlAI là nguồn chính thức.
facebookresearch/ParlAI có phải mã nguồn mở không?
Có — facebookresearch/ParlAI phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/facebookresearch/ParlAI.
facebookresearch/ParlAI có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho facebookresearch/ParlAI. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
facebookresearch/ParlAI có trang demo không?
Dự án có trang chủ ở https://parl.ai. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
facebookresearch/ParlAI còn đang phát triển không?
Commit gần nhất trên facebookresearch/ParlAI là 3.0 năm trước (theo timestamp GitHub). Repo có 2.1k fork — một chỉ báo về mức độ quan tâm của cộng đồng.
facebookresearch/ParlAI dùng license gì?
facebookresearch/ParlAI phát hành theo license MIT. 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.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về ParlAI?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về ParlAI.