Skip to content

fix: auto-detect platform and exclude Triton on non-Linux systems#229

Open
opooladz wants to merge 1 commit into
erfanzar:mainfrom
opooladz:fix/mac-triton-compatibility
Open

fix: auto-detect platform and exclude Triton on non-Linux systems#229
opooladz wants to merge 1 commit into
erfanzar:mainfrom
opooladz:fix/mac-triton-compatibility

Conversation

@opooladz

@opooladz opooladz commented Oct 4, 2025

Copy link
Copy Markdown

Triton (from eformer) only has wheels for Linux x86_64. Use platform markers to auto-detect and conditionally install Triton based on the OS.

Auto-Detection

override-dependencies = [
  "triton>=3.0.0; platform_system == 'Linux' and platform_machine == 'x86_64'",
]

Behavior

  • Linux x86_64 (CUDA GPUs) → ✅ Triton installed
  • macOS (Apple Silicon/Intel) → ⏭️ Triton skipped
  • Windows → ⏭️ Triton skipped
  • Linux ARM (Raspberry Pi, etc.) → ⏭️ Triton skipped

Installation

Just run uv sync on any platform - it auto-detects:

uv sync  # Works on Mac, Linux, Windows

No manual platform selection needed!

🤖 Generated with Claude Code

Triton (from eformer) only has wheels for Linux x86_64. Use platform markers
to auto-detect and conditionally install Triton based on the OS.

## Auto-Detection

```toml
override-dependencies = [
  "triton>=3.0.0; platform_system == 'Linux' and platform_machine == 'x86_64'",
]
```

## Behavior

- **Linux x86_64** (CUDA GPUs) → ✅ Triton installed
- **macOS** (Apple Silicon/Intel) → ⏭️  Triton skipped
- **Windows** → ⏭️  Triton skipped
- **Linux ARM** (Raspberry Pi, etc.) → ⏭️  Triton skipped

## Installation

Just run `uv sync` on any platform - it auto-detects:
```bash
uv sync  # Works on Mac, Linux, Windows
```

No manual platform selection needed!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant