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

# Settings

export const GitHubLink = ({url, compact = false}) => <a href={url} target="_blank" rel="noopener noreferrer" className={compact ? "source-link" : "github-source-link"}>
    {compact ? "View source" : <>
    <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 source
      </>}
  </a>;

<GitHubLink compact url="https://github.com/wandb/wandb/blob/main/wandb/sdk/wandb_settings.py#L61" />

<h2 id="class-wandbsettings">
  <Badge color="yellow" size="lg" shape="rounded">クラス</Badge> wandb.Settings
</h2>

W\&B SDK の設定。

このクラスは W\&B SDK の設定を管理し、すべての設定の型安全性と検証を保証します。設定は属性としてアクセス可能で、プログラムから、環境変数 (`WANDB_ prefix`) および設定ファイルを通じて初期化できます。

設定は 3 つのカテゴリに分類されます。

1. Public settings: ユーザーが安全に変更して、特定のニーズに合わせて W\&B の動作をカスタマイズできるコア設定オプション。
2. Internal settings: 低レベルの SDK 動作を扱う「x\_」接頭辞付きの設定。これらの設定は主に内部使用およびデバッグ用です。変更は可能ですが、Public API の一部とは見なされず、今後のバージョンで予告なく変更される可能性があります。
3. Computed settings: 他の設定または環境から自動的に導出される読み取り専用設定。

設定は複数のソースから読み込まれます。同じ設定が複数のソースから提供された場合は、リストの後方にあるソースが優先されます。優先度の低い順に以下のとおりです。

1. この `Settings` モデルで定義されたデフォルト値。
2. 設定ファイル (`~/.config/wandb/settings`、または `WANDB_CONFIG_DIR` 環境変数で指定されたディレクトリ内の `settings` ファイル) 。
3. 環境変数 (`WANDB_` 接頭辞付きのもの。例: `WANDB_MODE`) 。
4. ホスト名、実行中のプログラム/スクリプトのパス、Python 実行ファイル、Docker イメージ、Jupyter ノートブックの詳細など、ランタイム環境から検出された値。
5. Amazon SageMaker 環境で実行している場合の SageMaker 設定。
6. `wandb.setup()` の `settings` パラメーター。
7. `wandb.init()` の `settings` パラメーター。
8. 一部の `wandb.init()` パラメーター (例: `mode=` は `mode` 設定を上書きします) 。

```python theme={"system"}
*,
allow_media_symlink: bool = False,
allow_offline_artifacts: bool = True,
allow_val_change: bool = False,
anonymous: object = object(),
api_key: str | None = None,
azure_account_url_to_access_key: dict[str, str] | None = None,
app_url_override: str | None = None,
base_url: str = 'https://api.wandb.ai',
code_dir: str | None = None,
config_paths: collections.abc.Sequence[str] | None = None,
console: Literal['auto', 'off', 'wrap', 'redirect', 'wrap_raw', 'wrap_emu'] = 'auto',
console_multipart: bool = False,
console_chunk_max_bytes: int = 0,
console_chunk_max_seconds: int = 0,
capture_loggers: dict[str, str] | None = None,
credentials_file: str = <factory>,
disable_code: bool = False,
disable_git: bool = False,
disable_git_fork_point: bool = True,
disable_job_creation: bool = True,
docker: str | None = None,
email: str | None = None,
entity: str | None = None,
organization: str | None = None,
force: bool = False,
fork_from: wandb.sdk.lib.run_moment.RunMoment | None = None,
git_commit: str | None = None,
git_remote: str = 'origin',
git_remote_url: str | None = None,
git_root: str | None = None,
heartbeat_seconds: int = 30,
host: str | None = None,
http_proxy: str | None = None,
https_proxy: str | None = None,
identity_token_file: str | None = None,
ignore_globs: collections.abc.Sequence[str] = (),
init_timeout: float = 90.0,
finish_timeout: float = 0.0,
finish_timeout_raises: bool = False,
insecure_disable_ssl: bool = False,
job_name: str | None = None,
job_source: Optional[Literal['repo', 'artifact', 'image']] = None,
label_disable: bool = False,
launch: bool = False,
launch_config_path: str | None = None,
login_timeout: float | None = None,
mode: Literal['online', 'offline', 'shared', 'disabled', 'dryrun', 'run'] = 'online',
notebook_name: str | None = None,
program: str | None = None,
program_abspath: str | None = None,
program_relpath: str | None = None,
project: str | None = None,
quiet: bool = False,
reinit: Union[Literal['default', 'return_previous', 'finish_previous', 'create_new'], bool] = 'default',
relogin: bool = False,
resume: Optional[Literal['allow', 'must', 'never', 'auto']] = None,
resume_from: wandb.sdk.lib.run_moment.RunMoment | None = None,
resumed: bool = False,
root_dir: str = <factory>,
run_group: str | None = None,
run_id: str | None = None,
run_job_type: str | None = None,
run_name: str | None = None,
run_notes: str | None = None,
run_tags: tuple[str, ...] | None = None,
sagemaker_disable: bool = False,
save_code: bool | None = None,
settings_system: str | None = None,
stop_fn: collections.abc.Callable[[], None] | None = None,
max_end_of_run_history_metrics: int = 10,
max_end_of_run_summary_metrics: int = 10,
show_colors: bool | None = None,
show_emoji: bool | None = None,
show_errors: bool = True,
show_info: bool = True,
show_warnings: bool = True,
silent: bool = False,
stop_on_fatal_error: bool = False,
strict: bool | None = None,
summary_timeout: int = 60,
summary_warnings: int = 5,
sweep_id: str | None = None,
sweep_param_path: str | None = None,
symlink: bool = <factory>,
sync_tensorboard: bool | None = None,
table_raise_on_max_row_limit_exceeded: bool = False,
use_dot_wandb: bool | None = None,
username: str | None = None,
x_cli_only_mode: bool = False,
x_disable_meta: bool = False,
x_disable_stats: bool = False,
x_disable_viewer: bool = False,
x_disable_machine_info: bool = False,
x_executable: str | None = None,
x_extra_http_headers: dict[str, str] | None = None,
x_file_stream_max_bytes: int | None = None,
x_file_stream_max_line_bytes: int | None = None,
x_file_stream_transmit_interval: float | None = None,
x_file_stream_no_gzip: bool = True,
x_file_stream_retry_max: int | None = None,
x_file_stream_retry_wait_min_seconds: float | None = None,
x_file_stream_retry_wait_max_seconds: float | None = None,
x_file_stream_timeout_seconds: float | None = None,
x_file_transfer_retry_max: int | None = None,
x_file_transfer_retry_wait_min_seconds: float | None = None,
x_file_transfer_retry_wait_max_seconds: float | None = None,
x_file_transfer_timeout_seconds: float | None = None,
x_files_dir: str | None = None,
x_flow_control_custom: bool | None = None,
x_flow_control_disabled: bool | None = None,
x_graphql_retry_max: int | None = None,
x_graphql_retry_wait_min_seconds: float | None = None,
x_graphql_retry_wait_max_seconds: float | None = None,
x_graphql_timeout_seconds: float | None = None,
x_internal_check_process: float = 8.0,
x_jupyter_name: str | None = None,
x_jupyter_path: str | None = None,
x_jupyter_root: str | None = None,
x_label: str | None = None,
x_live_policy_rate_limit: int | None = None,
x_live_policy_wait_time: int | None = None,
x_log_level: int = 20,
x_network_buffer: int | None = None,
x_primary: bool = True,
x_proxies: dict[str, str] | None = None,
x_runqueue_item_id: str | None = None,
x_save_requirements: bool = True,
x_server_side_derived_summary: bool = False,
x_server_side_expand_glob_metrics: bool = True,
x_service_transport: str | None = None,
x_service_wait: float = 30.0,
x_skip_transaction_log: bool = False,
x_start_time: float | None = None,
x_stats_pid: int = 55150,
x_stats_sampling_interval: float = 15.0,
x_stats_neuron_monitor_config_path: str | None = None,
x_stats_dcgm_exporter: str | None = None,
x_stats_open_metrics_endpoints: dict[str, str] | None = None,
x_stats_open_metrics_filters: dict[str, dict[str, str]] | collections.abc.Sequence[str] | None = None,
x_stats_open_metrics_http_headers: dict[str, str] | None = None,
x_stats_disk_paths: collections.abc.Sequence[str] | None = ('/',),
x_stats_cpu_count: int | None = None,
x_stats_cpu_logical_count: int | None = None,
x_stats_gpu_count: int | None = None,
x_stats_gpu_type: str | None = None,
x_stats_gpu_device_ids: collections.abc.Sequence[int] | None = None,
x_stats_buffer_size: int = 0,
x_stats_coreweave_metadata_base_url: str = 'http://169.254.169.254',
x_stats_coreweave_metadata_endpoint: str = '/api/v2/cloud-init/meta-data',
x_stats_track_process_tree: bool = False,
x_stats_no_cgroup: bool = False,
x_sync: bool = False,
x_sync_dir_suffix: str = '',
x_update_finish_state: bool = True
```

<h2 id="args">
  引数
</h2>

<ResponseField name="allow_media_symlink" type="bool">
  メディアファイルを run ディレクトリにシンボリックリンクするかどうかを指定します。

  true の場合、メディアファイルはコピーされず、run ディレクトリに
  シンボリックリンクまたはハードリンクされます。これにより、
  ログする速度が向上し、ディスク使用量が減る可能性があります。ただし、
  W\&B サーバーへのアップロード前に元のファイルを削除または変更すると、
  アップロードされるデータにその変更が
  反映されます。
</ResponseField>

<ResponseField name="allow_offline_artifacts" type="bool">
  オフラインモードで表のアーティファクトを同期できるようにするフラグです。

  以前の動作に戻すには、False に設定します。
</ResponseField>

<ResponseField name="allow_val_change" type="bool">
  設定済みの `Config` 値を変更できるようにするフラグです。
</ResponseField>

<ResponseField name="anonymous" type="object">
  非推奨であり、削除される予定です。
</ResponseField>

<ResponseField name="api_key" type="str | None">
  W\&B APIキーです。
</ResponseField>

<ResponseField name="azure_account_url_to_access_key" type="dict[str, str] | None">
  Azure インテグレーション用の、Azure アカウント URL と対応するアクセスキーのマッピングです。
</ResponseField>

<ResponseField name="app_url_override" type="str | None">
  W\&B UI の 'app' URL を上書きする値です。

  `app_url` は通常 `base_url` に基づいて算出されますが、これを使用して
  明示的に設定できます。

  対応する環境変数は WANDB\_APP\_URL です。
</ResponseField>

<ResponseField name="base_url" type="str">
  データ同期用の W\&B バックエンドの URL です。
</ResponseField>

<ResponseField name="code_dir" type="str | None">
  W\&B で追跡するコードを含むディレクトリです。
</ResponseField>

<ResponseField name="config_paths" type="collections.abc.Sequence[str] | None">
  `Config` オブジェクトに設定を読み込むためのファイルのパスです。
</ResponseField>

<ResponseField name="console" type="Literal">
  適用するコンソール出力取得のタイプです。

  指定可能な値は次のとおりです。

  * "auto" - システム環境と設定に基づいて、コンソール出力の取得方法を
    自動的に選択します。
  * "off" - コンソール出力の取得を無効にします。
  * "redirect" - 出力を取得するために低レベルのファイル記述子をリダイレクトします。
  * "wrap" - sys.stdout/sys.stderr の書き込みメソッドを上書きします。システムの状態に
    基づいて "wrap\_raw" または "wrap\_emu" にマッピングされます。
  * "wrap\_raw" - "wrap" と同じですが、エミュレーターを介さずに生の出力を
    直接取得します。`wrap` 設定から導出されるため、手動で設定しないでください。
  * "wrap\_emu" - "wrap" と同じですが、エミュレーターを介して出力を取得します。
    `wrap` 設定から導出されるため、手動で設定しないでください。
</ResponseField>

<ResponseField name="console_multipart" type="bool">
  マルチパートでコンソール出力をログする機能を有効にします。

  True の場合、SDK はコンソール出力を単一の `output.log` ではなく、
  `logs/` ディレクトリ内のタイムスタンプ付きファイルに書き込みます。

  各パートは閉じられるとすぐにアップロードされるため、ユーザーは run の実行中に
  ログにリアルタイムでアクセスできます。ロールオーバーの頻度は
  `console_chunk_max_bytes` および/または `console_chunk_max_seconds` で制御します。
  両方の制限が `0` の場合、すべてのログは run の終了時に一度だけアップロードされます。

  注: アップロード済みのチャンクは不変です。以前の行を変更する端末制御シーケンス
  (キャリッジリターンを使用するプログレスバーなど) は、
  現在のチャンクにのみ影響します。
</ResponseField>

<ResponseField name="console_chunk_max_bytes" type="int">
  マルチパートのコンソールログの、サイズに基づくロールオーバーのしきい値です。単位はバイトです。

  現在のパートがこのサイズに達すると、新しいコンソールログファイルを
  開始します。`console_multipart` が `True` の場合にのみ有効です。
  `console_chunk_max_seconds` と組み合わせることができ、先に達した制限によって
  ロールオーバーが実行されます。値を `0` にすると、
  サイズに基づく制限が無効になります。
</ResponseField>

<ResponseField name="console_chunk_max_seconds" type="int">
  マルチパートのコンソールログの、時間に基づくロールオーバーのしきい値です。単位は秒です。

  現在のパートの開始から指定した秒数が経過すると、
  新しいコンソールログファイルを開始します。`console_multipart` が
  `True` である必要があります。  `console_chunk_max_bytes` と併用でき、先に制限に
  達するとパートが閉じられます。値を `0` にすると、時間に基づく
  制限が無効になります。
</ResponseField>

<ResponseField name="capture_loggers" type="dict[str, str] | None">
  Python ロガーの名前で、run の Logs タブに取得するもの。

  ロガー名から最小ログレベルへのマッピング。設定すると、wandb は各指定ロガーに logging.Handler をインストールし、run が終了すると削除します。これらのロガーから出力されたログレコードは、stdout/stderr の取得と同様に、run へのコンソール出力としてパブリッシュされます。

  ログレコードは `logging.basicConfig()` と同じ形式でフォーマットされ、`INFO:my_module:Some message.` のようになります。これは現在カスタマイズできません。

  すべてのログを取得するには、ルートロガーの名前「root」を渡します。

  これは `console` 設定とは独立しています。両方を同時に有効にできます。

  例:

  ```python theme={"system"}
  wandb.init(
      settings=wandb.Settings(
          console="off",
          capture_loggers={
              "my_app": "INFO",
              "my_app.training": "ERROR",
          },
      ),
  )
  ```
</ResponseField>

<ResponseField name="credentials_file" type="str">
  一時的なアクセストークンを書き込むファイルへのパス。
</ResponseField>

<ResponseField name="disable_code" type="bool">
  コードの取得を無効にするかどうか。
</ResponseField>

<ResponseField name="disable_git" type="bool">
  git 状態の取得を無効にするかどうか。
</ResponseField>

<ResponseField name="disable_git_fork_point" type="bool">
  リモートブランチからフォークポイントを推測するのを無効にするかどうか

  True に設定すると、SDK は上流ブランチが設定されている場合、その最新コミットを使用します。それ以外の場合は差分パッチの生成をスキップします。

  False に設定すると、SDK は上流ブランチが設定されている場合、その最新コミットを使用しようとします。
  それ以外の場合は、すべてのリモートブランチから最も近いコミットを検索します。
  これにより、上流ブランチが多いリポジトリのパフォーマンスに影響する可能性があります。
</ResponseField>

<ResponseField name="disable_job_creation" type="bool">
  W\&B Launch 用のジョブアーティファクト作成を無効にするかどうか。
</ResponseField>

<ResponseField name="docker" type="str | None">
  スクリプトの実行に使用する Docker イメージ。
</ResponseField>

<ResponseField name="email" type="str | None">
  ユーザーのメールアドレス。
</ResponseField>

<ResponseField name="entity" type="str | None">
  ユーザーやチームなどの W\&B entity。
</ResponseField>

<ResponseField name="organization" type="str | None">
  W\&B 組織。
</ResponseField>

<ResponseField name="force" type="bool">
  `force` フラグを `wandb.login()` に渡すかどうか。
</ResponseField>

<ResponseField name="fork_from" type="wandb.sdk.lib.run_moment.RunMoment | None">
  フォークする前の run 実行のポイントを指定します。

  ポイントは run ID、メトリクス、およびその値で定義されます。
  現在はメトリクス '\_step' のみがサポートされています。
</ResponseField>

<ResponseField name="git_commit" type="str | None">
  run に関連付ける git コミットハッシュ。
</ResponseField>

<ResponseField name="git_remote" type="str">
  run に関連付ける git リモート。
</ResponseField>

<ResponseField name="git_remote_url" type="str | None">
  Git リモートリポジトリの URL。
</ResponseField>

<ResponseField name="git_root" type="str | None">
  Git リポジトリのルートディレクトリ。
</ResponseField>

<ResponseField name="host" type="str | None">
  スクリプトを実行しているマシンのホスト名。
</ResponseField>

<ResponseField name="http_proxy" type="str | None">
  W\&B への http リクエスト用のカスタムプロキシサーバー。
</ResponseField>

<ResponseField name="https_proxy" type="str | None">
  W\&B への https リクエスト用のカスタムプロキシサーバー。
</ResponseField>

<ResponseField name="identity_token_file" type="str | None">
  認証用のアイデンティティトークン (JWT) を含むファイルへのパス。
</ResponseField>

<ResponseField name="ignore_globs" type="Sequence">
  `files_dir` からの相対的な Unix glob パターンで、アップロードから除外するファイルを指定します。
</ResponseField>

<ResponseField name="init_timeout" type="float">
  `wandb.init` 呼び出しがタイムアウトするまでに完了するのを待つ時間 (秒)。
</ResponseField>

<ResponseField name="finish_timeout" type="float">
  run の終了時にデータをアップロードするまで待機する時間 (秒単位) 。

  これを設定すると、run の終了時に W\&B へのアップロードが遅いことによるコストを制限できますが、run がクラッシュしたとマークされ、一部のデータが欠落する可能性があります。デフォルトでは、`run.finish()` はすべてのデータのアップロードが完了するまでブロックします。

  これを 0 より大きい数値に設定すると、W\&B は run の終了時にこの秒数経過後に run のデータのアップロードを諦め、スクリプトのブロックを解除します。しばらくすると、run は UI 上で Crashed または Failed になります。アップロードされなかったデータはディスク上に保存されたままなので、`wandb sync` でアップロードできます。

  `finish_timeout_raises` 設定を使用すると、警告メッセージの表示に加えてエラーを送出できます。

  `wandb.teardown()` (スクリプトの終了時に atexit フックで自動的に実行される) によってシャットダウンされる run もこの設定を尊重します。
</ResponseField>

<ResponseField name="finish_timeout_raises" type="bool">
  finish\_timeout が期限切れになった場合に TimeoutError を送出するかどうか。

  これを `finish_timeout` 設定と併用すると、`run.finish()` はタイムアウト後にメッセージを表示するだけでなく TimeoutError を送出します。

  `run.finish()` は Run をコンテキストマネージャーとして使用する際に暗黙的に呼び出される点に注意してください。

  with wandb.init() as run:
  ...  # run.finish() は `with` ブロックの終了時に実行されます

  これは `wandb.teardown()` がエラーを送出する原因にはなりません (スクリプトの終了時に実行されるため) 。
</ResponseField>

<ResponseField name="insecure_disable_ssl" type="bool">
  SSL 検証を安全ではない方法で無効にするかどうか。
</ResponseField>

<ResponseField name="job_name" type="str | None">
  スクリプトを実行している Launch job の名。
</ResponseField>

<ResponseField name="job_source" type="Optional">
  Launch のソースタイプ。
</ResponseField>

<ResponseField name="label_disable" type="bool">
  自動ラベル付け機能を無効にするかどうか。
</ResponseField>

<ResponseField name="launch_config_path" type="str | None">
  Launch 設定ファイルへのパス。
</ResponseField>

<ResponseField name="login_timeout" type="float | None">
  ログイン操作がタイムアウトするまで待機する時間 (秒単位) 。
</ResponseField>

<ResponseField name="mode" type="Literal">
  W\&B ロギングと同期の動作モード。
</ResponseField>

<ResponseField name="notebook_name" type="str | None">
  Jupyter 類似環境で実行している場合のノートブック名。
</ResponseField>

<ResponseField name="program" type="str | None">
  利用可能な場合、run を作成したスクリプトへのパス。
</ResponseField>

<ResponseField name="program_abspath" type="str | None">
  run を作成したスクリプトへのリポジトリルートディレクトリからの絶対パス。

  リポジトリルートディレクトリは、存在する場合は .git ディレクトリを含むディレクトリとして定義されます。それ以外の場合は現在の作業ディレクトリです。
</ResponseField>

<ResponseField name="program_relpath" type="str | None">
  run を作成したスクリプトへの相対パス。
</ResponseField>

<ResponseField name="project" type="str | None">
  W\&B プロジェクト ID。
</ResponseField>

<ResponseField name="quiet" type="bool">
  必須ではない出力を抑制するフラグ。
</ResponseField>

<ResponseField name="reinit" type="Union">
  run が実行中の状態で `wandb.init()` が呼び出された場合の動作。

  オプション:

  * "default": ノートブックでは "finish\_previous"、それ以外では "return\_previous" を使用します。
  * "return\_previous": まだ終了していない最も最近作成された run を返します。これにより `wandb.run` は更新されません。"create\_new" オプションを参照してください。
  * "finish\_previous": すべての実行中の run を終了してから新しい run を返します。
  * "create\_new": 他の実行中の run を変更せずに新しい run を作成します。`wandb.run` や `wandb.log` などのトップレベル関数は更新されません。そのため、グローバル run に依存する古いインテグレーションの一部は動作しません。

  ブール値も指定できますが、これは非推奨です。False は "return\_previous" と同じで、True は "finish\_previous" と同じです。
</ResponseField>

<ResponseField name="relogin" type="bool">
  新しいログイン試行を強制するフラグ。
</ResponseField>

<ResponseField name="resume" type="Optional">
  run の再開時の動作を指定します。

  オプション:

  * "must": 同じ ID の既存の run から再開します。該当する run が存在しない場合は、
    失敗します。
  * "allow": 同じ ID の既存の run からの再開を試みます。見つからない場合は、
    新しい run が作成されます。
  * "never": 常に新しい run を開始します。同じ ID の run がすでに存在する場合は、
    失敗します。
  * "auto": 同じマシンで直近に失敗した run から自動的に
    再開します。
</ResponseField>

<ResponseField name="resume_from" type="wandb.sdk.lib.run_moment.RunMoment | None">
  run の過去の実行における再開ポイントを指定します。

  ポイントは run ID、メトリクス、およびその値で定義されます。
  現在、メトリクス '\_step' のみがサポートされています。
</ResponseField>

<ResponseField name="root_dir" type="str">
  run 関連のすべてのパスの基準として使用するルートディレクトリです。

  具体的には、wandb ディレクトリと run ディレクトリのパスを導出するために使用します。
</ResponseField>

<ResponseField name="run_group" type="str | None">
  関連する run のグループ識別子です。

  UI で run をグループ化するために使用します。
</ResponseField>

<ResponseField name="run_id" type="str | None">
  run の ID です。
</ResponseField>

<ResponseField name="run_job_type" type="str | None">
  実行するジョブのタイプです (例: トレーニング、評価) 。
</ResponseField>

<ResponseField name="run_name" type="str | None">
  人が読みやすい run 名です。
</ResponseField>

<ResponseField name="run_notes" type="str | None">
  run の追加のメモまたは説明です。
</ResponseField>

<ResponseField name="run_tags" type="tuple[str, ...] | None">
  整理とフィルタリングのために run に関連付けるタグです。
</ResponseField>

<ResponseField name="sagemaker_disable" type="bool">
  SageMaker 固有の機能を無効にするフラグです。
</ResponseField>

<ResponseField name="save_code" type="bool | None">
  run に関連付けられたコードを保存するかどうかを指定します。
</ResponseField>

<ResponseField name="settings_system" type="str | None">
  システム全体の設定ファイルへのパスです。
</ResponseField>

<ResponseField name="stop_fn" type="collections.abc.Callable[[], None] | None">
  run を停止するために実行するコールバックです。

  run は Web UI から停止できるほか、致命的なエラーの発生後にも停止できます
  (設定で有効にしている場合) 。

  デフォルトでは、run を停止する際に W\&B はメインスレッドに SIGINT を送信します。
  別のシグナルを使用したい場合や、中断前に別の action を実行したい場合など、
  この動作を上書きするには、このコールバックを設定します。

  コールバックは別のスレッドで実行されます。停止がリクエストされてから
  間もなく実行されますが、即座には実行されません。
</ResponseField>

<ResponseField name="max_end_of_run_history_metrics" type="int">
  run の終了時に表示する履歴のスパークラインの最大数です。
</ResponseField>

<ResponseField name="max_end_of_run_summary_metrics" type="int">
  run の終了時に表示するサマリー メトリクスの最大数です。
</ResponseField>

<ResponseField name="show_errors" type="bool">
  エラーメッセージを表示するかどうかを指定します。
</ResponseField>

<ResponseField name="show_info" type="bool">
  情報メッセージを表示するかどうかを指定します。
</ResponseField>

<ResponseField name="show_warnings" type="bool">
  警告メッセージを表示するかどうかを指定します。
</ResponseField>

<ResponseField name="silent" type="bool">
  すべての出力を抑制するフラグです。
</ResponseField>

<ResponseField name="stop_on_fatal_error" type="bool">
  致命的なエラーの発生後に run を停止するかどうかを指定します。

  データのアップロード中に回復不能なエラーが発生すると、W\&B は
  メッセージを出力してアップロードを停止しますが、データのログは引き続き可能です。
  通常はこれが望ましい動作です。トレーニングのメトリクスはディスクに保存されるため、
  アップロードされていなくても `wandb sync` を使用して復元できます。

  ただし、トレーニング後にファイルが削除される場合、この動作は役に立ちません。
  その場合は、これを True に設定すると、致命的なエラーの発生後に、
  Web UI で停止ボタンを押したときと同様に run が停止します。
</ResponseField>

<ResponseField name="strict" type="bool | None">
  検証とエラーチェックの厳格モードを有効にするかどうかを指定します。
</ResponseField>

<ResponseField name="summary_timeout" type="int">
  サマリー操作がタイムアウトするまでの待機時間 (秒) です。
</ResponseField>

<ResponseField name="sweep_id" type="str | None">
  この run が属する sweep の識別子です。
</ResponseField>

<ResponseField name="sweep_param_path" type="str | None">
  sweep のパラメーター設定へのパスです。
</ResponseField>

<ResponseField name="symlink" type="bool">
  シンボリックリンクを使用するかどうかを指定します (Windows 以外ではデフォルトで True) 。
</ResponseField>

<ResponseField name="sync_tensorboard" type="bool | None">
  TensorBoard ログを W\&B と同期するかどうか。
</ResponseField>

<ResponseField name="table_raise_on_max_row_limit_exceeded" type="bool">
  表の行数制限を超えた場合に例外を送出するかどうか。
</ResponseField>

<ResponseField name="use_dot_wandb" type="bool | None">
  run データ用に非表示の `.wandb` ディレクトリまたは表示される `wandb` ディレクトリを使用するかどうか。

  True の場合、SDK は `.wandb` を使用します。False の場合、`wandb` を使用します。
  設定されていない場合、`.wandb` がすでに存在すれば `.wandb` を使用し、それ以外の場合は `wandb` を使用します。
</ResponseField>

<ResponseField name="username" type="str | None">
  ユーザー名。
</ResponseField>

<ResponseField name="x_disable_meta" type="bool">
  システムメタデータの収集を無効にするフラグ。
</ResponseField>

<ResponseField name="x_disable_stats" type="bool">
  システムメトリクスの収集を無効にするフラグ。
</ResponseField>

<ResponseField name="x_extra_http_headers" type="dict[str, str] | None">
  すべての送信 HTTP リクエストに追加するヘッダー。
</ResponseField>

<ResponseField name="x_label" type="str | None">
  run 用に収集したシステムメトリクスおよびコンソールログに割り当てるラベル。

  このラベルはフロントエンドでデータをグループ化する際に使用され、分散トレーニング ジョブで異なるプロセスからのデータを区別するのに利用できます。
</ResponseField>

<ResponseField name="x_primary" type="bool">
  内部 wandb ファイルおよびメタデータを保存するかどうかを決定します。

  分散環境で、プライマリ プロセスがメインのログをする役割を担い、それ以外のプロセスではシステムメトリクスとログのみが必要な場合に、セカンダリ プロセスによるファイルの上書きを防ぐのに役立ちます。
</ResponseField>

<ResponseField name="x_save_requirements" type="bool">
  requirements ファイルを保存するフラグ。
</ResponseField>

<ResponseField name="x_server_side_derived_summary" type="bool">
  履歴からサマリーを自動計算する処理をサーバーに委譲するフラグ。

  ユーザーによるサマリーの更新は無効になりません。
</ResponseField>

<ResponseField name="x_service_wait" type="float">
  wandb-core 内部サービスの起動を待機する時間 (秒単位)。
</ResponseField>

<ResponseField name="x_skip_transaction_log" type="bool">
  run イベントのトランザクション ログへの保存をスキップするかどうか。

  これはオンライン run にのみ該当します。ディスクに書き込まれるデータ量を削減するために使用できます。

  復旧可能性の保証が失われるため、注意して使用してください。
</ResponseField>

<ResponseField name="x_stats_sampling_interval" type="float">
  システムモニターのサンプリング間隔 (秒単位)。
</ResponseField>

<ResponseField name="x_stats_open_metrics_endpoints" type="dict[str, str] | None">
  システムメトリクスを取得するために監視する OpenMetrics `/metrics` エンドポイント。
</ResponseField>

<ResponseField name="x_stats_open_metrics_filters" type="dict[str, dict[str, str]] | collections.abc.Sequence[str] | None">
  OpenMetrics `/metrics` エンドポイントから収集したメトリクスに適用するフィルター。

  次の 2 つの形式をサポートします。

  * `{"metric regex pattern, including endpoint name as prefix": {"label": "label value regex pattern"}}`
  * `("metric regex pattern 1", "metric regex pattern 2", ...)`
</ResponseField>

<ResponseField name="x_stats_open_metrics_http_headers" type="dict[str, str] | None">
  OpenMetrics リクエストに追加する HTTP ヘッダー。
</ResponseField>

<ResponseField name="x_stats_disk_paths" type="collections.abc.Sequence[str] | None">
  ディスク使用量を監視するシステム パス。
</ResponseField>

<ResponseField name="x_stats_cpu_count" type="int | None">
  システム CPU 数。

  設定した場合、run メタデータ内の自動検出値を上書きします。
</ResponseField>

<ResponseField name="x_stats_cpu_logical_count" type="int | None">
  論理 CPU 数。

  設定した場合、run メタデータ内の自動検出値を上書きします。
</ResponseField>

<ResponseField name="x_stats_gpu_count" type="int | None">
  GPU デバイス数。

  設定した場合、run メタデータ内の自動検出値を上書きします。
</ResponseField>

<ResponseField name="x_stats_gpu_type" type="str | None">
  GPU デバイスのタイプ。

  設定した場合、run メタデータ内の自動検出値を上書きします。
</ResponseField>

<ResponseField name="x_stats_gpu_device_ids" type="collections.abc.Sequence[int] | None">
  監視する GPU デバイスのインデックス。

  設定しない場合、システムモニターはすべての GPU のメトリクスを取得します。
  CUDA/ROCm のデバイス列挙順に対応する 0 始まりのインデックスを前提とします。
</ResponseField>

<ResponseField name="x_stats_track_process_tree" type="bool">
  `x_stats_pid` を起点として、プロセスツリー全体のリソース使用状況を監視します。

  `True` の場合、システムモニターは PID `x_stats_pid` のプロセスとそのすべての子孫プロセスから、RSS、CPU%、スレッド数を集計します。
  これによりパフォーマンスのオーバーヘッドが発生する可能性があるため、デフォルトで無効になっています。
</ResponseField>

<ResponseField name="x_stats_no_cgroup" type="bool">
  システムメトリクスのパーセンテージ算出において、cgroup v2 の CPU およびメモリ制限を無効にします。
</ResponseField>

<ResponseField name="x_sync_dir_suffix" type="str">
  run のディレクトリ名 (sync\_dir) に追加する接尾辞です。

  名前の競合を避けるため、wandb.init() で設定されます。
  設定されている場合、デフォルト名にダッシュで連結されます。
</ResponseField>

<ResponseField name="x_update_finish_state" type="bool">
  このプロセスがサーバー上の run の最終状態を更新できるかどうかを示すフラグです。

  分散トレーニングで、メインプロセスのみが最終状態を決定するようにしたい場合は False に設定します。
</ResponseField>

<h2 id="properties">
  プロパティ
</h2>

<ResponseField name="app_url" type="str">
  W\&B UI の URL で、通常は [https://wandb.ai](https://wandb.ai) です。

  これは `base_url` ([https://api.wandb.ai](https://api.wandb.ai) など) とは異なり、W\&B API にプログラムでアクセスするために使用されます。
</ResponseField>

<ResponseField name="colab_url" type="str | None">
  Colab で実行している場合、Colab ノートブックの URL です。
</ResponseField>

<ResponseField name="deployment" type="Literal['local', 'cloud']">
  説明は提供されていません。
</ResponseField>

<ResponseField name="files_dir" type="str">
  run のファイルが保存されるローカルディレクトリの絶対パスです。
</ResponseField>

<ResponseField name="is_local" type="bool">
  説明は提供されていません。
</ResponseField>

<ResponseField name="log_dir" type="str">
  ログファイルを保存するディレクトリです。
</ResponseField>

<ResponseField name="log_internal" type="str">
  内部ログに使用するファイルへのパスです。
</ResponseField>

<ResponseField name="log_symlink_internal" type="str">
  最新の run の内部ログファイルへのシンボリックリンクへのパスです。
</ResponseField>

<ResponseField name="log_symlink_user" type="str">
  最新の run のユーザープロセスログファイルへのシンボリックリンクへのパスです。
</ResponseField>

<ResponseField name="log_user" type="str">
  ユーザープロセスログに使用するファイルへのパスです。
</ResponseField>

<ResponseField name="project_url" type="str">
  project を表示できる W\&B の URL です。
</ResponseField>

<ResponseField name="resume_fname" type="str">
  再開ファイルへのパスです。
</ResponseField>

<ResponseField name="run_mode" type="Literal['run', 'offline-run']">
  run のモードです。"run" または "offline-run" のいずれかです。
</ResponseField>

<ResponseField name="run_url" type="str">
  run を表示できる W\&B の URL です。
</ResponseField>

<ResponseField name="settings_workspace" type="str">
  ワークスペース設定ファイルへのパスです。
</ResponseField>

<ResponseField name="sweep_url" type="str">
  sweep を表示できる W\&B の URL です。
</ResponseField>

<ResponseField name="sync_dir" type="str">
  run のファイルを保存するディレクトリです。
</ResponseField>

<ResponseField name="sync_file" type="str">
  追記専用のバイナリトランザクションログファイルへのパスです。
</ResponseField>

<ResponseField name="sync_symlink_latest" type="str">
  最新の run のトランザクションログファイルへのシンボリックリンクへのパスです。
</ResponseField>

<ResponseField name="timespec" type="str">
  run の時間指定です。
</ResponseField>

<ResponseField name="wandb_dir" type="str">
  wandb ディレクトリへのフルパスです。
</ResponseField>

<h2 id="methods">
  メソッド
</h2>

<h3 id="method-settingsvalidate_anonymous">
  <Badge color="blue" size="lg" shape="rounded">メソッド</Badge> Settings.validate\_anonymous()
</h3>

```python theme={"system"}
value: 'object'
```

<h5 id="arguments">
  引数
</h5>

<ResponseField name="value" type="object">
  説明はありません。
</ResponseField>

<h3 id="method-settingsvalidate_x_extra_http_headers">
  <Badge color="blue" size="lg" shape="rounded">メソッド</Badge> Settings.validate\_x\_extra\_http\_headers()
</h3>

```python theme={"system"}
(value)
```

<h5 id="arguments-2">
  引数
</h5>

<ResponseField name="value" type="_empty">
  説明はありません。
</ResponseField>

<h3 id="method-settingsvalidate_x_stats_coreweave_metadata_base_url">
  <Badge color="blue" size="lg" shape="rounded">メソッド</Badge> Settings.validate\_x\_stats\_coreweave\_metadata\_base\_url()
</h3>

```python theme={"system"}
(value)
```

<h5 id="arguments-3">
  引数
</h5>

<ResponseField name="value" type="_empty">
  説明はありません。
</ResponseField>


## Related topics

- [Settings](/ja/products/wandb/weave/reference/typescript-sdk/type-aliases/settings.md)
