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
43dd21f7
Commit
43dd21f7
authored
Dec 26, 2019
by
Mohammad Shoeybi
Browse files
changed long seq length to 512
parent
2c58c9b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
megatron/data/helpers.cpp
megatron/data/helpers.cpp
+2
-2
No files found.
megatron/data/helpers.cpp
View file @
43dd21f7
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
namespace
py
=
pybind11
;
namespace
py
=
pybind11
;
using
namespace
std
;
using
namespace
std
;
const
int32_t
LONG_SENTENCE_LEN
=
256
;
const
int32_t
LONG_SENTENCE_LEN
=
512
;
inline
int32_t
get_target_sample_len
(
const
int32_t
short_seq_ratio
,
inline
int32_t
get_target_sample_len
(
const
int32_t
short_seq_ratio
,
...
@@ -154,7 +154,7 @@ py::array build_mapping_impl(const py::array_t<int64_t>& docs_,
...
@@ -154,7 +154,7 @@ py::array build_mapping_impl(const py::array_t<int64_t>& docs_,
}
}
}
}
// Detect documents with long sentences
// Detect documents with long sentences
.
bool
contains_long_sentence
=
false
;
bool
contains_long_sentence
=
false
;
if
(
num_remain_sent
>
1
)
{
if
(
num_remain_sent
>
1
)
{
for
(
auto
sent_index
=
sent_index_first
;
for
(
auto
sent_index
=
sent_index_first
;
...
...
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