Move `from unsloth_zoo.rl_environments import check_signal_escape_patterns` from module-level to inside `_check_code_safety()` and wrap it in a try/except for NotImplementedError. The top-level import triggers `unsloth_zoo.__init__` which calls `get_device_type()` at module scope, raising NotImplementedError on Apple Silicon. On Mac the safety check gracefully skips since unsloth_zoo is unavailable, while GGUF inference via llama.cpp continues to work. |
||
|---|---|---|
| .. | ||
| data_recipe | ||
| export | ||
| inference | ||
| training | ||
| __init__.py | ||