project-overview

Explain the torch-spyre repository architecture and PyTorch backend for the IBM Spyre AI Accelerator.

56|191|Updated Oct 16, 2025
One-click install
npx skills add https://github.com/torch-spyre/torch-spyre --skill project-overview-torch-spyre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: project-overview
Source: https://github.com/torch-spyre/torch-spyre/tree/main/.claude/skills/project-overview
Command: npx skills add https://github.com/torch-spyre/torch-spyre --skill project-overview-torch-spyre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides a comprehensive understanding of the torch-spyre repository, enabling users to grasp its architecture, compilation pipeline, and codebase structure for the IBM Spyre AI Accelerator.

Core Features & Use Cases

  • Repository Overview: Explains the purpose and design of torch-spyre as a PyTorch backend for the Spyre device.
  • Architecture Details: Details the Spyre device, its memory primitives (sticks), and the two execution paths (eager and compiled).
  • Codebase Navigation: Provides a detailed breakdown of the directory structure and key files for both eager and compiled modes.
  • Use Case: A new developer joining the torch-spyre project can use this Skill to quickly get oriented with the project's goals, technical underpinnings, and how to navigate the codebase.

Quick Start

Explain the overall purpose and architecture of the torch-spyre project.

Frequently Asked Questions about project-overview

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is torch-spyre and how does it work as a PyTorch backend?

Torch-spyre is an out-of-tree PyTorch backend for the IBM Spyre AI Accelerator. It provides an execution path for models using custom memory primitives called sticks and supports both eager and compiled execution modes.

How do I navigate the torch-spyre codebase for compiled and eager execution?

The torch-spyre repository structure separates key files and directories for eager and compiled modes. You can navigate these distinct paths to understand the Inductor backend compilation pipeline and specific execution flows.

How does the Inductor backend compilation pipeline work for the IBM Spyre AI Accelerator?

The Inductor backend compilation pipeline in torch-spyre utilizes key abstractions like SpyreTensorLayout and KernelSpec. These components define how operations are lowered and executed on the Spyre device architecture.

Do I need specific environment variables to run torch-spyre for PyTorch backend development?

Yes, torch-spyre relies on important environment variables to control initialization flow and execution behavior. Configuring these variables is necessary for proper build system operation and testing on the Spyre device.

What testing strategies are used in the torch-spyre PyTorch backend?

Torch-spyre implements specific testing strategies to validate both eager and compiled execution paths on the Spyre device. These strategies ensure the Inductor backend pipeline and custom abstractions function correctly.

Can I use torch-spyre without understanding the Spyre device architecture and memory primitives?

Effectively using torch-spyre requires understanding the Spyre device architecture and its memory primitives, known as sticks. Key abstractions like SpyreTensorLayout depend on these architectural concepts for proper data handling.