# CARELESS on MacOS GPU/Metal

**URL:** <https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189>\
**Category:** Careless\
**Created:** [April 26, 2026, 9:33am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189 "2026-04-26T09:33:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronfinke](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/aaronfinke/32/135_2.png) [@aaronfinke](https://discourse.rs-station.org/u/aaronfinke)\
**Post date:** [April 26, 2026, 9:33am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/1 "2026-04-26T09:33:35Z")

</div>

Is it possible to use the TensorFlow Apple SIlicon GPU implementation for mac with CARELESS?

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [April 26, 2026, 2:08pm UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/2 "2026-04-26T14:08:10Z")

</div>

@aaronfinke, Apple has a [plugin](https://developer.apple.com/metal/tensorflow-plugin/) that makes the Apple Silicon GPU available to TensorFlow. It’s not something I have in my tests or documentation, but I’m happy to support it if it’s a feature that users want. I have to say though that I just tried it on an M3 Pro. While TensorFlow picks up and uses the GPU just fine, it’s actually slower with the GPU than without (~8 iterations / s with vs 15 without GPU on my hewl ssad benchmark). You can make a new conda env to try it out:

```bash
conda create -yn metal python=3.12
conda activate metal
pip install -u pip
pip install careless
pip install tensorflow-metal

```

You can confirm it worked by running `careless devices`:

```auto
(metal) PC103400:hewl_ssad kmdalton$ careless devices
Careless version 0.5.4
###############################################
# TensorFlow can access the following devices #
###############################################
 - CPU: /physical_device:CPU:0
 - GPU: /physical_device:GPU:0

```

You should see a GPU device listed if everything went to plan.

---

<div class="post-metadata">

**Author:** ![aaronfinke](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/aaronfinke/32/135_2.png) [@aaronfinke](https://discourse.rs-station.org/u/aaronfinke)\
**Post date:** [April 26, 2026, 3:29pm UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/3 "2026-04-26T15:29:48Z")

</div>

Thanks, I got it working too with some noodling. I also found the GPU run to be slower than the CPU (same Mac specs as you). I was hoping for some performance benefit… c’est la vie.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [April 26, 2026, 4:58pm UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/4 "2026-04-26T16:58:36Z")

</div>

Yeah I’m honestly not sure whether to expect it to run faster on metal or not. I don’t know enough about Apple CPUs. Sorry it wasn’t a big performance win, but thanks for trying it out!

---

<div class="post-metadata">

**Author:** ![aaronfinke](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/aaronfinke/32/135_2.png) [@aaronfinke](https://discourse.rs-station.org/u/aaronfinke)\
**Post date:** [August 12, 2026, 12:13am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/5 "2026-08-12T00:13:05Z")

</div>

I’m back to looking at this after @rahewitt 's talk at the DIALS workshop. With Claude’s assistance I have mapped the ML parts of TensorFlow to PyTorch/MPS which is much better optimized for Apple Silicon/Metal than TensorFlow, which has many issues still. Initial tests look good, and I’m getting proper GPU acceleration. Will report back once I have done more tests.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 12, 2026, 12:28am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/6 "2026-08-12T00:28:29Z")

</div>

Hi @aaronfinke, there is a complete pytorch port of careless on this branch: [GitHub - rs-station/careless at pytorch-migration · GitHub](https://github.com/rs-station/careless/tree/pytorch-migration). That might make a better starting point for you.

---

<div class="post-metadata">

**Author:** ![kmdalton](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/kmdalton/32/7_2.png) [@kmdalton](https://discourse.rs-station.org/u/kmdalton)\
**Post date:** [August 12, 2026, 12:57am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/7 "2026-08-12T00:57:46Z")

</div>

That is to say, I do plan to port `careless` to PyTorch, but it hasn’t hit main yet. It’d be great if we could coordinate efforts!

---

<div class="post-metadata">

**Author:** ![aaronfinke](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/aaronfinke/32/135_2.png) [@aaronfinke](https://discourse.rs-station.org/u/aaronfinke)\
**Post date:** [August 12, 2026, 3:16am UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/8 "2026-08-12T03:16:52Z")

</div>

ok I’ll check out that branch, and fork careless so you can see what I’ve come up with. I’ll run some benchmarks too

---

<div class="post-metadata">

**Author:** ![aaronfinke](https://discourse.rs-station.org/user_avatar/discourse.rs-station.org/aaronfinke/32/135_2.png) [@aaronfinke](https://discourse.rs-station.org/u/aaronfinke)\
**Post date:** [August 12, 2026, 1:48pm UTC](https://discourse.rs-station.org/t/careless-on-macos-gpu-metal/189/9 "2026-08-12T13:48:04Z")

</div>

> **[GitHub - aaronfinke/careless at macos\_metal](https://github.com/aaronfinke/careless/tree/macos_metal)**
>
> macos\_metal

With this fork I get ~2.2x speedup vs CPU on my Macbook pro M3 with the HEWL test dataset
