ParlAI | evaluating AI models on a variety | Machine Learning library
kandi X-RAY | ParlAI Summary
kandi X-RAY | ParlAI Summary
ParlAI currently requires Python3.8+ and Pytorch 1.6 or higher. Dependencies of the core modules are listed in requirements.txt. Some models included (in parlai/agents) have additional requirements. We strongly recommend you install ParlAI in a venv or conda environment. 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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Setup the argument parser .
- Adds command line options to the given parser .
- Run the Parley action .
- Argument specific to MTurk .
- Generate context .
- Convert model weight to a dictionary .
- Setup Heroku client .
- Evaluate wordstat .
- Write dialog to file .
- Fetch and concatenate results .
ParlAI Key Features
ParlAI Examples and Code Snippets
1. Clinc 150
2. Banking 77
3. SNIPS
4. HWU64
export OUTPUT_DIR="/home/data/dse_evaluate"
# 1. Download raw data for snips and hwu64 (we direct acquire clinc150 and banking 77 from a package named "datasets")
wget https://raw.githubusercontent.com/
cp -r ./v1.0/accentor-sgd .
python3 gen_delex.py
python3 gen_parlai_data.py
parlai train_model -t fromfile:parlaiformat --fromfile_datapath ./parlai --fromfile-datatype-extension true -m transformer/generator --init-model zoo:tutorial_transformer
python train.py \
--train_datasets datasets/ConvAI2/dummy.txt \
--valid_datasets datasets/ConvAI2/dummy.txt \
--test_datasets datasets/ConvAI2/dummy.txt \
--train_datasets_cache datasets/dummy_cache_gpt2 \
--valid_datasets_cache datasets/dummy_cache_
Community Discussions
Trending Discussions on ParlAI
QUESTION
I'm currently trying out ParlAi by following the quickstart from the documentation. I already installed ParlAi and currently on "View a task & train a model" but when I run the code parlai display_data --task babi:task10k:1
, I got these tracebacks instead.
ANSWER
Answered 2021-Feb-13 at 10:40Yes, these tracebacks indicate errors. The kinds of errors here are pkg_resources.ContextualVersionConflict
which is kind of confusing because they don't have Error in their name. For these traceback blocks the last line is the error, the second to last is the way the error was raised.
pkg_resources.ContextualVersionConflict: (urllib3 1.25.8 (c:\users\dean\anaconda3\lib\site-packages), Requirement.parse('urllib3~=1.25.9'), {'parlai'})
Shows that you urllib3 is at 1.25.8, but it needs to be between 1.25.9 and 1.26.
pkg_resources.ContextualVersionConflict: (Sphinx 2.4.0 (c:\users\dean\anaconda3\lib\site-packages), Requirement.parse('Sphinx>=3.0'), {'sphinx-autodoc-typehints'})
means that your sphinx is 2.4.0 but should be greater than or equal to 3.0.
QUESTION
I'm using the latest version of Mephisto on macOS Catalina. I am trying to run ParlAI, and specifically the acute_eval
task.
According to the Instructions of both Mephisto and AcuteEVAL, I should be able to execute run.py
and get the task running. However, I get this error as I run it, using this command:
ANSWER
Answered 2021-Jan-31 at 00:21The ParlAI installation instructions on github state that Python 3.7 or higher is required, however it appears that you are using Python 3.6. This is likely the cause of the issue, and the program should work if you upgrade your Python version.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ParlAI
You can use ParlAI like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page