home/categories/framework-internals/jfriisj-real-time-speech-translation-mvp-github-skills-cpu-mode-assertions-torch-skill-md
framework-internalsdevelopment

cpu-mode-assertions-torch

Assert CPU-only runtime inside a container using PyTorch (torch.cuda.is_available()==False) and optional env var checks. Use to prevent accidental GPU execution during CPU smoke tests.

jfriisj
maintainer
jfriisj
更新於 1/19/2026
星標
0
分支
0
quick start

Installation and usage

Assert CPU-only runtime inside a container using PyTorch (torch.cuda.is_available()==False) and optional env var checks. Use to prevent accidental GPU execution during CPU smoke tests.

安裝
$ install --globalskills.sh
使用

安裝後,您可以透過在終端機執行以下指令來使用此技能:

skills use cpu-mode-assertions-torch