---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://catboost.ai/docs/en/references/training-parameters/processing-unit.md
  - href: en/references/training-parameters/processing-unit.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# Processing unit settings

## task_type {#task_type}

Command line: `--task-type`

#### Description

The processing unit type to use for training.

Possible values:
- CPU
- GPU

**Type**

string

**Default value**

CPU

**Supported processing units**

CPU and GPU


## devices {#devices}

Command line: `--devices`

#### Description

IDs of the GPU devices to use for training (indices are zero-based).

Format

- `<unit ID>` for one device (for example, `3`)
- `<unit ID1>:<unit ID2>:..:<unit IDN>` for multiple devices (for example, `devices='0:1:3'`)
- `<unit ID1>-<unit IDN>` for a range of devices (for example, `devices='0-3'`)

**Type**

string

**Default value**

{% cut "Python package" %}

NULL (all GPU devices are used if the corresponding processing unit type is
                    selected)

{% endcut %}

{% cut "R package" %}

-1 (all GPU devices are used if the corresponding processing unit type is selected)

{% endcut %}

{% cut "Command-line" %}

-1 (use all devices)

{% endcut %}

**Supported processing units**

CPU
