Skip to content
Merged
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
2 changes: 1 addition & 1 deletion olive/data/component/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def text_gen_corpus_pre_process(_dataset, tokenizer, all_kwargs):
# no randomization, just use contiguous blocks of tokens
if args.corpus_strategy == TextGenCorpusStrategy.JOIN_SLIDING_WINDOW:
# we use the stride as both the step between sequences and the context size
step, context = args.stride, args.stride
step, context = args.stride, seqlen - args.stride
else:
# JOIN corpus_strategy
# text is split into non-overlapping sequences and there is no context
Expand Down