# Speed and devices

> Pro and fast settings, CPU and NVIDIA or Apple GPUs, measured speeds.

ChakraTS-OS-10M is small enough for a laptop CPU. A GPU helps with large batches and long histories.

## Pro and fast

| Preset | What it does | When to use it |
|---|---|---|
| `pro` (default) | reads each series at every patch size the model knows and averages the forecasts | the most accurate setting; our benchmark results use it |
| `fast` | reads each series at the model's own patch size only | many series or long histories, when speed matters more |

```python
fc = model.forecast(df, h=48, preset="fast")
```

`pro` averages only for horizons up to 400 steps; longer horizons use the model's own patch size either way.

## Measured speed

48 steps ahead, each the median of several runs after a warm-up, on an Apple M5 Pro laptop:

| Job | CPU, pro | CPU, fast | Apple GPU, pro | Apple GPU, fast |
|---|---|---|---|---|
| 1 series, 512 past points | 80 ms | 12 ms | | |
| 1 series, 2,048 past points | 0.25 s | 25 ms | | |
| 1 series, 8,192 past points | 0.46 s | 94 ms | | |
| 100 series, 512 past points | 3.1 s | 0.23 s | | |
| 1,000 series, 512 past points | 36 s | 2.0 s | 13.5 s | 0.9 s |

An older or smaller CPU will be slower.

## Devices

The model picks an NVIDIA GPU, then an Apple GPU, then the CPU. Choose one yourself with `device`:

```python
model = ChakraTS.from_pretrained("ChakraTS-OS-10M", device="cpu")  # or "cuda", "mps"
```

- **NVIDIA GPUs** run in bfloat16, as the model was trained.
- **Large batches** are split into passes sized for the device, and a pass that runs out of GPU memory is retried in
  halves.
- The weights are a 42 MB file, so loading takes well under a second once downloaded.
