Skip to content

Instantly share code, notes, and snippets.

@stephenroller
Created October 14, 2020 04:19
Show Gist options
  • Save stephenroller/9be20e3453b0c0e17d94e1ad673771fb to your computer and use it in GitHub Desktop.
Save stephenroller/9be20e3453b0c0e17d94e1ad673771fb to your computer and use it in GitHub Desktop.
2020-10-14 00:19:19.237771: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Parse Error: unrecognized arguments: foo
usage: parlai interactive [-h] [--helpall] [-o INIT_OPT] [-t TASK]
[-dt DATATYPE] [-bs BATCHSIZE]
[-dynb {None,full,batchsort}] [-dp DATAPATH]
[-m MODEL] [-mf MODEL_FILE] [-im INIT_MODEL]
[-d DISPLAY_EXAMPLES]
[--display-prettify DISPLAY_PRETTIFY]
[--display-ignore-fields DISPLAY_IGNORE_FIELDS]
[-it INTERACTIVE_TASK] [--outfile OUTFILE]
[--save-format {conversations,parlai}]
[-fixedCands LOCAL_HUMAN_CANDIDATES_FILE]
[--single-turn SINGLE_TURN]
[--log-keep-fields LOG_KEEP_FIELDS]
Interactive chat with a model on the command line
optional arguments:
-h, --help
show this help message and exit
--helpall
Show usage, including advanced arguments.
-o, --init-opt INIT_OPT
Path to json file of options. Note: Further Command-line arguments
override file-based options. (default: None)
-t, --task TASK
ParlAI task(s), e.g. "babi:Task1" or "babi,cbt" (default: interactive)
-dt, --datatype DATATYPE
choose from: train, train:ordered, valid, test. to stream data add
":stream" to any option (e.g., train:stream). by default train is
random with replacement, valid is ordered, test is ordered. (default:
train)
-bs, --batchsize BATCHSIZE
batch size for minibatch training schemes (default: 1)
-dynb, --dynamic-batching {None,full,batchsort}
Use dynamic batching (default: None)
-dp, --datapath DATAPATH
path to datasets, defaults to {parlai_dir}/data (default: None)
-m, --model MODEL
the model class name. can match parlai/agents/<model> for agents in
that directory, or can provide a fully specified module for `from X
import Y` via `-m X:Y` (e.g. `-m
parlai.agents.seq2seq.seq2seq:Seq2SeqAgent`) (default: None)
-mf, --model-file MODEL_FILE
model file name for loading and saving models (default: None)
-im, --init-model INIT_MODEL
Initialize model weights and dict from this file (default: None)
-d, --display-examples DISPLAY_EXAMPLES
--display-prettify DISPLAY_PRETTIFY
Set to use a prettytable when displaying examples with text candidates
(default: False)
--display-ignore-fields DISPLAY_IGNORE_FIELDS
Do not display these fields (default:
label_candidates,text_candidates)
-it, --interactive-task INTERACTIVE_TASK
Create interactive version of task (default: True)
--outfile OUTFILE
Saves a jsonl file containing all of the task examples and model
replies. Set to the empty string to not save at all (default: )
--save-format {conversations,parlai}
Format to save logs in. conversations is a jsonl format, parlai is a
text format. (default: conversations)
-fixedCands, --local-human-candidates-file LOCAL_HUMAN_CANDIDATES_FILE
File of label_candidates to send to other agent (default: None)
--single-turn SINGLE_TURN
If on, assumes single turn episodes. (default: False)
--log-keep-fields LOG_KEEP_FIELDS
Fields to keep when logging. Should be a comma separated list
(default: all)
optional arguments:
-h, --help
show this help message and exit
--helpall
Show usage, including advanced arguments.
-d, --display-examples DISPLAY_EXAMPLES
--display-prettify DISPLAY_PRETTIFY
Set to use a prettytable when displaying examples with text candidates
(default: False)
--display-ignore-fields DISPLAY_IGNORE_FIELDS
Do not display these fields (default:
label_candidates,text_candidates)
-it, --interactive-task INTERACTIVE_TASK
Create interactive version of task (default: True)
--outfile OUTFILE
Saves a jsonl file containing all of the task examples and model
replies. Set to the empty string to not save at all (default: )
--save-format {conversations,parlai}
Format to save logs in. conversations is a jsonl format, parlai is a
text format. (default: conversations)
Main ParlAI Arguments:
-o, --init-opt INIT_OPT
Path to json file of options. Note: Further Command-line arguments
override file-based options. (default: None)
-t, --task TASK
ParlAI task(s), e.g. "babi:Task1" or "babi,cbt" (default: interactive)
-dt, --datatype DATATYPE
choose from: train, train:ordered, valid, test. to stream data add
":stream" to any option (e.g., train:stream). by default train is
random with replacement, valid is ordered, test is ordered. (default:
train)
-bs, --batchsize BATCHSIZE
batch size for minibatch training schemes (default: 1)
-dynb, --dynamic-batching {None,full,batchsort}
Use dynamic batching (default: None)
-dp, --datapath DATAPATH
path to datasets, defaults to {parlai_dir}/data (default: None)
ParlAI Model Arguments:
-m, --model MODEL
the model class name. can match parlai/agents/<model> for agents in
that directory, or can provide a fully specified module for `from X
import Y` via `-m X:Y` (e.g. `-m
parlai.agents.seq2seq.seq2seq:Seq2SeqAgent`) (default: None)
-mf, --model-file MODEL_FILE
model file name for loading and saving models (default: None)
-im, --init-model INIT_MODEL
Initialize model weights and dict from this file (default: None)
Local Human Arguments:
-fixedCands, --local-human-candidates-file LOCAL_HUMAN_CANDIDATES_FILE
File of label_candidates to send to other agent (default: None)
--single-turn SINGLE_TURN
If on, assumes single turn episodes. (default: False)
World Logging:
--log-keep-fields LOG_KEEP_FIELDS
Fields to keep when logging. Should be a comma separated list
(default: all)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment