Skip to content

Compute profiles: when results can differ

Neural networks can train in three ways. Parity gives the same numbers in Python and R; Faster CPU and Apple GPU trade that for speed. This lesson says what changes, why, and when each is the right choice.

Applied ~8 min5 steps

You will be able to

  • Name the three compute profiles and what each one trains with
  • Explain why single precision and the Apple GPU change the last digits of a fit
  • Choose a profile for exploring, for a result you'll report, and for comparing engines

Read first

01

Three ways to train the same network

Read

Neural-network learners and forecasters (the torch network, FT-Transformer, TabM, the CNN, N-BEATS, DeepAR and the rest) can train under one of three compute profiles:

ProfileNumbersWhereWhat you get
Parity (default)Double precisionOne CPU threadThe same numbers in Python and R, run after run
Faster CPUSingle precisionAll performance coresThe same numbers on this Mac, slightly different from Parity
Apple GPUSingle precisionThe Apple GPU (macOS 15 or later)Usually the fastest for large networks; results can differ slightly

Pick one for the whole experiment in Predict → Setup → Compute. Environments → Compute sets the profile new experiments start with and checks whether the Apple GPU works on this Mac.

02

Why the numbers move

Read

Single precision keeps about 7 significant digits; double precision keeps about 16. A network takes thousands of small steps, and each step rounds. After many epochs, rounding differences grow into differences you can see in the 4th or 5th digit of a score. They rarely change which model wins, but they do change the numbers.

The Apple GPU only computes in single precision, and it adds sums in a different order. That's why its runs carry a badge and are never counted as Python ≡ R: the engines can't be expected to agree to the last digit when the hardware doesn't.

03

Will it repeat?

Predict

Predict first

You train the same network twice with Faster CPU and the same seed. Will the two runs agree?

Yes: same seed, same profile, same MacNo: single precision is randomOnly on the Apple GPU
Reveal

Yes. Faster CPU is repeatable on one Mac: the same seed and data give the same numbers. It differs from Parity, and it can differ on another Mac or in the other engine.

04

When the app adjusts the profile

Read
  • If the Apple GPU isn't available (an older Mac or macOS 14), the run uses Faster CPU instead. The badge shows a star, and the warnings say why.
  • If an earlier analysis in the same session loaded a gradient-boosting library, Faster CPU trains on one thread. Those libraries can't share threads with torch in one engine. Restarting the engine gives every core back.
05

Choosing

Read
  • Exploring a large network: Faster CPU or Apple GPU, to iterate quickly.
  • A result you'll report, register or compare across engines: retrain the chosen model with Parity. The parity checks always use Parity.

Check yourself

Which runs count as Python ≡ R?

Show the answer

Answer: a

Parity trains in double precision on one CPU thread in both engines, so they agree. The faster profiles change the arithmetic, so their runs show a badge and aren't counted.

Check yourself

Why can't an Apple GPU run match a Parity run digit for digit?

Show the answer

Answer: b

The Apple GPU has no double precision, and its sums run in a different order. Rounding differences grow over thousands of training steps.

Concepts in this lesson