Lazy Import Refactor

Refactor module-level imports of heavy native dependencies (torch, tensorflow, jax) to function-internal lazy imports. Use when a library import triggers SIGSEGV or slow startup in environments where the native dep cannot fully initialize (e.g., CUDA driver absent, triton C-extension segfault, missing GPU). Predicts test-side effects from removed module attributes.

nextaltair db5e0de 2 files · 9.9 KB Updated

File contents

nextaltair/altairs-agent-dev-kit/tree/main/skills/lazy-import-refactor commit db5e0defc6

Frequently asked questions

npx skillmds@latest add nextaltair/lazy-import-refactor