From 0ebab6330991ef3dcd4bdb7241cf5ee7a24db167 Mon Sep 17 00:00:00 2001 From: bursteratom Date: Sun, 2 Feb 2025 01:27:15 -0500 Subject: [PATCH] test --- src/axolotl/monkeypatch/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/axolotl/monkeypatch/utils.py b/src/axolotl/monkeypatch/utils.py index eeab5d564..363fe78a9 100644 --- a/src/axolotl/monkeypatch/utils.py +++ b/src/axolotl/monkeypatch/utils.py @@ -128,7 +128,7 @@ def get_seqlens_from_pos_ids(position_ids): # Calculate the sequence lengths seq_lengths = start_indices[1:] - start_indices[:-1] # Append the padding length to the sequence lengths - if padding_length: + """if padding_length: seq_lengths = torch.cat( [ seq_lengths, @@ -138,7 +138,7 @@ def get_seqlens_from_pos_ids(position_ids): device=device, ), ] - ) + )""" results.append(seq_lengths)