"...text-generation-inference.git" did not exist on "042180d88f91d4bc9acd42ae4de3c0236d272de4"
Commit 43dd21f7 authored by Mohammad Shoeybi's avatar Mohammad Shoeybi
Browse files

changed long seq length to 512

parent 2c58c9b0
...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment