Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Megatron-LM
Commits
9c623a49
Commit
9c623a49
authored
Dec 05, 2021
by
zihanl
Browse files
update COMMANDs
parent
8c9c145d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
tasks/knwl_dialo/scripts/data_processing.sh
tasks/knwl_dialo/scripts/data_processing.sh
+4
-5
tasks/knwl_dialo/scripts/prep_resp_gen.sh
tasks/knwl_dialo/scripts/prep_resp_gen.sh
+1
-1
No files found.
tasks/knwl_dialo/scripts/data_processing.sh
View file @
9c623a49
...
@@ -6,17 +6,16 @@
...
@@ -6,17 +6,16 @@
# WoI: https://parl.ai/projects/sea/
# WoI: https://parl.ai/projects/sea/
DIR
=
`
pwd
`
DIR
=
`
pwd
`
mkdir
-p
$DIR
/tasks/knwl_dialo/data
# We provide the following script to process the raw data from Wizard of Wikipedia
# We provide the following script to process the raw data from Wizard of Wikipedia
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
process_wow_dataset
--
input
_file
<PATH_OF_THE_INPUT_DATA>
--
output_file
<PATH_OF_TH
E_OUTPUT_DATA>
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
process_wow_dataset
--
raw
_file
<PATH_OF_THE_INPUT_DATA>
--
processed_file
<PATH_OF_THE_OUTPUT_DATA>
--knwl_ref_file
<PATH_OF_THE_KNOWLEDGE_REFERENCE_OUTPUT_DATA>
--resp_ref_file
<PATH_OF_THE_RESPONSE_REFERENC
E_OUTPUT_DATA>
# We provide the following script to process the raw data from Wizard of Internet
# We provide the following script to process the raw data from Wizard of Internet
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
process_woi_dataset
--
input
_file
<PATH_OF_THE_INPUT_DATA>
--
output_file
<PATH_OF_TH
E_OUTPUT_DATA>
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
process_woi_dataset
--
raw
_file
<PATH_OF_THE_INPUT_DATA>
--
processed_file
<PATH_OF_THE_OUTPUT_DATA>
--knwl_ref_file
<PATH_OF_THE_KNOWLEDGE_REFERENCE_OUTPUT_DATA>
--resp_ref_file
<PATH_OF_THE_RESPONSE_REFERENC
E_OUTPUT_DATA>
# Obtain the knowledge generation prompts
# Obtain the knowledge generation prompts
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
get_knwl_gen_prompts
--test_file
<PATH_OF_THE_PROCESSED_TEST_DATA>
--train_file
<PATH_OF_THE_PROCESSED_TRAIN_DATA>
--model_file
<PATH_OF_THE_DPR_MODEL>
--
output
_file
<PATH_OF_THE_OUTPUT_FILE>
--data_type
<DATA_TYPE_OF_THE_INPUT_FILE>
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
get_knwl_gen_prompts
--test_file
<PATH_OF_THE_PROCESSED_TEST_DATA>
--train_file
<PATH_OF_THE_PROCESSED_TRAIN_DATA>
--model_file
<PATH_OF_THE_DPR_MODEL>
--
processed
_file
<PATH_OF_THE_OUTPUT_FILE>
--data_type
<DATA_TYPE_OF_THE_INPUT_FILE>
# Obtain the response generation prompts
# Obtain the response generation prompts
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
get_resp_gen_prompts
--train_file
<PATH_OF_THE_PROCESSED_TRAIN_DATA>
--
output
_file
<PATH_OF_THE_OUTPUT_FILE>
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
get_resp_gen_prompts
--train_file
<PATH_OF_THE_PROCESSED_TRAIN_DATA>
--
processed
_file
<PATH_OF_THE_OUTPUT_FILE>
tasks/knwl_dialo/scripts/prep_resp_gen.sh
View file @
9c623a49
...
@@ -3,4 +3,4 @@
...
@@ -3,4 +3,4 @@
# Preparing the input file for the response generation (second-stage prompting)
# Preparing the input file for the response generation (second-stage prompting)
DIR
=
`
pwd
`
DIR
=
`
pwd
`
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
prepare_input
--test_file
<PATH_OF_THE_PROCESSED_TEST_DATA>
--knowledge_file
<PATH_OF_THE_GENERATED_KNOWLEDGE_DATA>
--
output
_file
<PATH_OF_THE_OUTPUT_FILE>
python
${
DIR
}
/tasks/knwl_dialo/preprocessing.py
--func
prepare_input
--test_file
<PATH_OF_THE_PROCESSED_TEST_DATA>
--knowledge_
gen_
file
<PATH_OF_THE_GENERATED_KNOWLEDGE_DATA>
--
processed
_file
<PATH_OF_THE_OUTPUT_FILE>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment