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
54093417
Commit
54093417
authored
May 12, 2021
by
Mostofa Patwary
Browse files
added pre ad post process
parent
f9267205
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
megatron/indexer.py
megatron/indexer.py
+2
-1
No files found.
megatron/indexer.py
View file @
54093417
...
...
@@ -58,7 +58,8 @@ class IndexBuilder(object):
#model = get_model(lambda: biencoder_model_provider(only_context_model \
model
=
get_model
(
biencoder_model_provider
(
only_context_model
\
=
only_context_model
,
biencoder_shared_query_context_model
=
\
self
.
biencoder_shared_query_context_model
))
self
.
biencoder_shared_query_context_model
,
pre_process
=
True
,
post_process
=
True
))
self
.
model
=
load_biencoder_checkpoint
(
model
,
only_context_model
=
only_context_model
)
...
...
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