Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

update TRL filter (#3707)

Dan Saunders2040946d68b1
diff --git a/unsloth/utils/packing.py b/unsloth/utils/packing.py
index a9d9d7cecae..5c13c55c7f2 100644
--- a/unsloth/utils/packing.py
+++ b/unsloth/utils/packing.py
@@ -68,9 +68,14 @@ def _get_cached_block_mask(
class _TrlPackingWarningFilter(logging.Filter):
+ to_filter = (
+ "attention implementation is not",
+ "kernels-community",
+ )
+
def filter(self, record: logging.LogRecord) -> bool:
message = record.getMessage()
- return not "kernels-community" in message
+ return not any(substring in message for substring in self.to_filter)
_TRL_FILTER_INSTALLED = False