Skip to content

Commit

Permalink
fix set operation
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Dec 22, 2024
1 parent f7516be commit 2722306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/axolotl/contribs/lgpl/unsloth.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def fix_untrained_tokens( # pylint: disable=too-many-return-statements

# Get set and actual tokens
where_untrained = where_untrained.tolist()
where_untrained = list(set(where_untrained) + set(token_ids_to_fix))
where_untrained = list(set(token_ids_to_fix + where_untrained))
if len(where_untrained) == 0:
return

Expand Down

0 comments on commit 2722306

Please sign in to comment.