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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Silence Apex Aiter RoPE warning unless logging is enabled (#4058)
Daniel Han084ca10ac247
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.pyindex f11328f7e9b..6d3df0b4704 100644--- a/unsloth/import_fixes.py+++ b/unsloth/import_fixes.py@@ -97,7 +97,7 @@ class HidePrintMessage:return getattr(self._original_stream, name)-if os.environ.get("UNSLOTH_ENABLE_LOGGING", "0") != "1":+if not UNSLOTH_ENABLE_LOGGING:import sys# Apply to stderr for FBGEMM and CUTLASS errors@@ -204,6 +204,13 @@ if os.environ.get("UNSLOTH_ENABLE_LOGGING", "0") != "1":sys.stderr.add_filter("df: No such file")# ROCm/libdrm missing ids table stderr noise on some AMD setupssys.stderr.add_filter(_AMDGPU_IDS_MISSING_TEXT)+ # Apex ROCm fused RoPE backend selection warning when Aiter is enabled.+ warnings.filterwarnings(+ "ignore",+ message = r"^Aiter backend is selected for fused RoPE\.?",+ category = UserWarning,+ module = r"^apex\.transformer\.functional\.fused_rope$",+ )# Fix up AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'