> ## 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.

# W&B는 `multiprocessing` 라이브러리를 사용하나요?

예, W\&B는 `multiprocessing` 라이브러리를 사용합니다. 따라서 W\&B를 직접 호출하는 스크립트는 하위 프로세스가 최상위 코드를 다시 실행하지 않도록 엔트리 포인트를 보호해야 합니다. 다음 오류 메시지는 이 문제를 나타냅니다:

```
An attempt has been made to start a new process before the current process 
has finished its bootstrapping phase.
```

이 오류를 해결하려면 `if __name__ == "__main__":`를 추가해 엔트리 포인트를 보호하세요. 이 보호 구문은 스크립트에서 W\&B를 직접 실행할 때 필요합니다. 이렇게 하면 `multiprocessing`로 생성된 워커 프로세스가 트레이닝 코드를 다시 실행하지 않도록 할 수 있습니다.

***

<Badge stroke shape="pill" color="orange" size="md">[Experiments](/ko/support/models/tags/experiments)</Badge>
