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.

Wrap models import with ROCm amdgpu ids fd2 filter (#4057)

Daniel Han842099f2b084
diff --git a/unsloth/__init__.py b/unsloth/__init__.py
index e3ced412a51..5587aa8c8e3 100644
--- a/unsloth/__init__.py
+++ b/unsloth/__init__.py
@@ -305,8 +305,10 @@ elif DEVICE_TYPE == "xpu":
# TODO: check triton for intel installed properly.
pass
-from .models import *
-from .models import __version__
+# Filter native fd=2 amdgpu.ids noise during model import startup.
+with _filter_rocm_amdgpu_ids_fd2_noise():
+ from .models import *
+ from .models import __version__
from .save import *
from .chat_templates import *
from .tokenizer_utils import *