Skip to content

Auto-select sidecar in lupine.connect on macOS#151

Merged
kevmo314 merged 2 commits into
mainfrom
fix/connect-auto-sidecar
Jun 3, 2026
Merged

Auto-select sidecar in lupine.connect on macOS#151
kevmo314 merged 2 commits into
mainfrom
fix/connect-auto-sidecar

Conversation

@kevmo314

@kevmo314 kevmo314 commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • make lupine.connect() automatically use the Apple container sidecar when local PyTorch has no CUDA backend on macOS
  • keep native CUDA Session behavior for CUDA-enabled PyTorch builds
  • update the tensor example to remain a plain connect() caller while reporting sidecar session info when used

Verification

  • uv run --python 3.13 --with pytest --with torch --with numpy --with-editable ./python pytest -q python/tests
  • printf '100.106.167.98\\n14833\\n' | uv run --python 3.13 --with torch --with numpy --with-editable ./python python python/examples/tensor.py\n - printed device: lupine:0\n - printed gpu: NVIDIA GeForce RTX 4090\n - printed result: [0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0]

@kevmo314 kevmo314 enabled auto-merge (squash) June 3, 2026 03:08
@kevmo314 kevmo314 merged commit 1ef29ac into main Jun 3, 2026
38 of 39 checks passed
@kevmo314 kevmo314 deleted the fix/connect-auto-sidecar branch June 3, 2026 03:11
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