cpu-mode-assertions-torch

Community

Enforce CPU-only PyTorch testing in containers.

Authorjfriisj
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enforces CPU-only execution inside a container for PyTorch workloads, preventing accidental GPU usage during CPU-focused tests.

Core Features & Use Cases

  • CPU-only validation: confirms that torch.cuda.is_available() is False to avoid GPU paths.
  • Optional environment variable checks: validates a provided env var matches an expected value when supplied.
  • CI/QA reliability: ensures CPU-only runtimes in smoke tests and debugging sessions.

Quick Start

Use the cpu-mode-assertions-torch skill to verify CPU-only runtime inside your container by checking that torch.cuda.is_available() is False and, if needed, validating a specific environment variable against an expected value.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cpu-mode-assertions-torch
Download link: https://github.com/jfriisj/real-time-speech-translation-mvp/archive/main.zip#cpu-mode-assertions-torch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.