Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Fix downloading of TOD models #4647

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parlai/zoo/tod/tod_base_no_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
def download(datapath):
ddir = os.path.join(get_model_dir(datapath), 'tod_base_no_api')
model_type = 'tod_base_no_api'
version = 'v1.0'
version = 'v2.0'
if not built(os.path.join(ddir, model_type), version):
opt = {'datapath': datapath, 'model_type': model_type}
fnames = ['model.tar.gz']
fnames = ['model_v2.tar.gz']
download_models(
opt, fnames, 'tod', version=version, path='aws', use_model_type=True
)
4 changes: 2 additions & 2 deletions parlai/zoo/tod/tod_base_yes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def download(datapath):
ddir = os.path.join(get_model_dir(datapath), 'tod_base_yes_api')
print(datapath)
model_type = 'tod_base_yes_api'
version = 'v1.0'
version = 'v2.0'
if not built(os.path.join(ddir, model_type), version):
opt = {'datapath': datapath, 'model_type': model_type}
fnames = ['model.tar.gz']
fnames = ['model_v2.tar.gz']
download_models(
opt, fnames, 'tod', version=version, path='aws', use_model_type=True
)