-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unable to interact with md_gender
Multi Task Classifier
#3655
Comments
cc @emilydinan |
To run the md_gender model so that it returns the stats about the self, partner and gender neutral you must set the interactive_mode='false', this will force it to use the worlds.py file and display sorted scores. I have attached a text file, that if converted to a python file you can call this code interactively: |
Hi @lnisenbaum-tdab, just as @ivanscattergood suggest, you will have to set a couple of additional parameters with your call to the interactive script. See the README here to find the command:
You will have to specify the model path ( Feel free to re-open if you still have issues with this. |
Yes, thanks! We got to interact with it by adding those parameters. Also, we set up a Python 3.8.5 environment and run:
Then installed some missing dependencies:
I will try to test it on a batch of samples now but in terms of setup we are good to close this Cheers! |
Bug description
I am not able to interact with
md_gender
Multi Task Classsifier model from the zoo. I tried two different approaches:Approach 1) Google Colab Notebook
Model downloaded as expected but the following error message appears:
No module named 'parlai_internal'
Reproduction steps
Enter steps to reproduce the behavior.
Expected behavior
I was expecting to be able to interact with Multi Task Classifier similarly to what is shown in Google Colab Parlai Tutorial for the
tutorial_transformer_generator
Logs
Please paste the command line output:
Approach 2) Run locally by previously defining an environment
I also tried running the model locally on my machine on a previously defined
conda
environmentReproduction steps
Enter steps to reproduce the behavior.
Clonned
parlai
GH repoCreated a conda environment and executed
pip install parlai
Made sure that every requirement listed in
requirements.txt
was presentTried interacting with the model in the command line:
parlai interactive -t md_gender -m projects.md_gender.bert_ranker_classifier.agents:BertRankerClassifierAgent -mf zoo:md_gender/model -ecands inline -cands inline --interactive_mode False --data-parallel False
At this point I had an error message stating that
spacy
anden_core_web_sm-2.2.0
packages were missingI then Installed
spacy
and also the packageen_core_web_sm-2.2.0
runningpip3 install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.2.0/en_core_web_sm-2.2.0.tar.gz
Tried interacting with the model one more time but another error messsage popped up
Expected behavior
I was expecting to be able to interact with Multi Task Classifier similarly to what is shown in Google Colab Parlai Tutorial for the
tutorial_transformer_generator
Logs
Please paste the command line output:
Additional context
None
The text was updated successfully, but these errors were encountered: