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

# Runs

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/apis/public/runs.py#L188" />

<h2 id="class-wandbapispublicruns">
  <Badge color="yellow" size="lg" shape="rounded">클래스</Badge> wandb.apis.public.Runs
</h2>

프로젝트 및 선택 필터에 연결된 `Run` 객체를 지연(lazy) 방식으로 순회하는 이터레이터입니다.

run은 필요할 때마다 W\&B 서버에서 페이지 단위로 가져옵니다.

일반적으로 `Api.runs` namespace를 통해 간접적으로 사용합니다.

```python theme={"system"}
(service_api: 'ServiceApi',
entity: 'str',
project: 'str',
filters: 'dict[str, Any] | None' = None,
order: 'str' = '+created_at',
per_page: 'int' = 50,
include_sweeps: 'bool' = False,
lazy: 'bool' = True,
api_key: 'str | None' = None)
```

<h2 id="args">
  인수
</h2>

<ResponseField name="service_api" type="ServiceApi">
  요청에 사용할 서비스 API입니다.
</ResponseField>

<ResponseField name="entity" type="str">
  프로젝트를 소유한 entity(사용자 이름 또는 팀)입니다.
</ResponseField>

<ResponseField name="project" type="str">
  run을 가져올 프로젝트의 이름입니다.
</ResponseField>

<ResponseField name="filters" type="dict[str, Any] | None">
  run 쿼리에 적용할 필터입니다.
</ResponseField>

<ResponseField name="order" type="str">
  order에는 `created_at`, `heartbeat_at`, `config.*.value` 또는 `summary_metrics.*`를 지정할 수 있습니다. order 앞에 +를 붙이면 오름차순(기본값), -를 붙이면 내림차순으로 정렬됩니다. 기본 order는 run.created\_at 기준으로 가장 오래된 것부터 최신 순입니다.
</ResponseField>

<ResponseField name="per_page" type="int">
  요청당 가져올 run의 수입니다(기본값은 50).
</ResponseField>

<ResponseField name="include_sweeps" type="bool">
  run에 스윕 정보를 포함할지 여부입니다. 기본값은 True입니다.
</ResponseField>

<ResponseField name="lazy" type="bool">
  용량이 큰 필드(config, summaryMetrics, systemMetrics)의 로딩을 실제로 액세스할 때까지 지연할지 여부입니다. 기본값은 True입니다.
</ResponseField>

<ResponseField name="api_key" type="str | None">
  설명이 제공되지 않았습니다.
</ResponseField>

<h2 id="methods">
  메서드
</h2>

<h3 id="method-runshistories">
  <Badge color="blue" size="lg" shape="rounded">방법</Badge> Runs.histories()
</h3>

```python theme={"system"}
self,
samples: 'int' = 500,
keys: 'list[str] | None' = None,
x_axis: 'str' = '_step',
format: "Literal['default', 'pandas', 'polars']" = 'default',
stream: "Literal['default', 'system']" = 'default'
```

필터 조건에 맞는 모든 run의 샘플링된 이력 메트릭을 반환합니다.

<h5 id="arguments">
  인수
</h5>

<ResponseField name="samples" type="int">
  각 run당 반환할 샘플 수
</ResponseField>

<ResponseField name="keys" type="list[str] | None">
  특정 키에 대한 메트릭만 반환
</ResponseField>

<ResponseField name="x_axis" type="str">
  이 메트릭을 xAxis로 사용하며 기본값은 \_step
</ResponseField>

<ResponseField name="format" type="Literal['default', 'pandas', 'polars']">
  데이터를 반환할 형식입니다. 옵션은 "default", "pandas", "polars"입니다
</ResponseField>

<ResponseField name="stream" type="Literal['default', 'system']">
  "default"는 메트릭, "system"은 머신 메트릭
</ResponseField>

<h3 id="method-paginatornext">
  <Badge color="blue" size="lg" shape="rounded">방법</Badge> Paginator.**next**()
</h3>

```python theme={"system"}
self
```

이터레이터의 다음 항목을 반환합니다. 모든 항목을 소진하면 StopIteration을 발생시킵니다.

<h3 id="method-paginatorupdate_variables">
  <Badge color="blue" size="lg" shape="rounded">방법</Badge> Paginator.update\_variables()
</h3>

```python theme={"system"}
self
```

다음 페이지 가져오기를 위한 쿼리 변수를 업데이트합니다.

<h3 id="method-runsupgrade_to_full">
  <Badge color="blue" size="lg" shape="rounded">방법</Badge> Runs.upgrade\_to\_full()
</h3>

```python theme={"system"}
self
```

이 Runs 컬렉션을 lazy 모드에서 전체 모드로 업그레이드합니다.

이렇게 하면 전체 run 데이터를 가져오도록 전환되며,
이미 로드된 Run 객체를 전체 데이터로 업그레이드합니다.
여러 run을 업그레이드할 때 병렬 로딩을 사용하여 더 나은 성능을 제공합니다.


## Related topics

- [run](/ko/products/wandb/ref/query-panel/run.md)
