From 55a6f8560cf88b655f49f1a1a59f6c1dc6afe022 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 13:49:56 +0200 Subject: Fix resizing attention bug --- src/construct/attention.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/construct/attention.rs b/src/construct/attention.rs index 2144864..d445938 100644 --- a/src/construct/attention.rs +++ b/src/construct/attention.rs @@ -379,7 +379,8 @@ fn resolve(tokenizer: &mut Tokenizer) -> Vec { // Opening. edit_map.add_before( - open_event_index, + // Add after the current sequence (it might remain). + open_event_index + 2, 0, vec![ Event { -- cgit