> ## 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` 파일의 로컬 위치는 어떻게 지정하나요?

다음 환경 변수를 설정하거나, 명시된 경우 SDK에 해당하는 인수를 전달하면 `wandb`가 파일을 로컬에 저장하는 위치를 제어할 수 있습니다. 각 변수는 서로 다른 위치를 제어하며, 각각 자체 기본값이 있습니다.

* `WANDB_DIR=<path>` 또는 `wandb.init(dir=<path>)`: 트레이닝 스크립트용으로 생성되는 `wandb` 폴더의 위치를 설정합니다. 기본값은 `./wandb`입니다. 이 폴더에는 run 데이터와 로그가 저장됩니다.
* `WANDB_ARTIFACT_DIR=<path>` 또는 `wandb.Artifact().download(root="<path>")`: `wandb`가 아티팩트를 다운로드하는 위치를 설정합니다. 기본값은 `./artifacts`입니다.
* `WANDB_CACHE_DIR=<path>`: `wandb.Artifact`를 호출할 때 `wandb`가 아티팩트를 생성하고 저장하는 위치를 설정합니다. 기본값은 `~/.cache/wandb`입니다.
* `WANDB_CONFIG_DIR=<path>`: `wandb`가 설정 파일을 저장하는 위치를 설정합니다. 기본값은 `~/.config/wandb`입니다.
* `WANDB_DATA_DIR=<path>`: 업로드 중 아티팩트를 스테이징하는 데 사용하는 위치를 설정합니다. 기본값은 `~/.cache/wandb-data/`입니다.

***

<Badge stroke shape="pill" color="orange" size="md">[환경 변수](/ko/support/models/tags/environment-variables)</Badge><Badge stroke shape="pill" color="orange" size="md">[Experiments](/ko/support/models/tags/experiments)</Badge>
