> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# wandb beta core

export const GitHubLink = ({url}) => <a href={url} target="_blank" rel="noopener noreferrer" className="github-source-link">
    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
      <path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z" />
    </svg>
    GitHub 소스 코드
  </a>;

<GitHubLink url="https://github.com/wandb/wandb/blob/v0.28.0/wandb/cli/beta.py#L177" />

<div id="usage">
  ## 사용
</div>

```bash theme={null}
core [OPTIONS] COMMAND [ARGS]...
```

<div id="description">
  ## 설명
</div>

다중 프로세스 워크로드를 위해 공유 로컬 wandb-core 서비스를 관리합니다.

wandb-core는 run 데이터, 파일 업로드, 시스템 메트릭 수집을 처리하는
로컬 백엔드 프로세스입니다. 기본적으로 `wandb.init()`를 호출하는 각
프로세스는 자체 백엔드를 시작합니다. 많은 독립 워커가 실행 중인
머신에서는 이로 인해 작업이 중복되고 CPU와 메모리가 낭비됩니다.

다음 명령을 사용해 분리된 wandb-core 인스턴스 하나를 시작하고,
WANDB\_SERVICE 환경 변수를 통해 같은 머신의 여러 워커가 이
인스턴스를 사용하도록 설정하세요.

일반적인 워크플로:

```bash theme={null}
wandb beta core start
```

```bash theme={null}
export WANDB_SERVICE=printed_value
```

```bash theme={null}
python -m your_launcher
```

```bash theme={null}
wandb beta core stop
```

셸 스크립트의 경우 stdout에서 가공되지 않은 WANDB\_SERVICE 값을 캡처하세요:

```bash theme={null}
export WANDB_SERVICE="$(wandb beta core start)"
```

공유 서비스는 기본적으로 10분 동안 유휴 상태이면 종료됩니다.
start 명령에서 --idle-timeout으로 이 설정을 재정의하세요.

<div id="subcommands">
  ## 하위 명령어
</div>

| 명령어                     | 설명                               |
| ----------------------- | -------------------------------- |
| `wandb beta core start` | 분리되어 실행되는 wandb-core 서비스를 시작합니다. |
| `wandb beta core stop`  | 분리되어 실행되는 wandb-core 서비스를 중지합니다. |
