From ec9b25da0e5fbecd6a0f9d8bebb82c3d88c5d868 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 7 May 2026 07:55:39 +0000 Subject: [PATCH] CI(Core): spoof torch.cuda before importing unsloth_zoo in llama.cpp smoke The previous push of the install_llama_cpp-based smoke failed across all three cells with: File "unsloth_zoo/device_type.py:220" in get_device_type raise NotImplementedError("Unsloth cannot find any torch accelerator? You need a GPU.") unsloth_zoo/__init__.py calls device_type.get_device_type() at module load. On the GH ubuntu-latest CPU-only runner this raises before any of our code runs. The pytest shims sidestep this by importing tests/_zoo_aggressive_cuda_spoof.py first; the inline `python <