Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐ŸŒ [i18n-KO] Translated guides/collections.md to Korean #2192

Merged
merged 11 commits into from
May 29, 2024
2 changes: 2 additions & 0 deletions docs/source/ko/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
title: ์ถ”๋ก  ์—”๋“œํฌ์ธํŠธ
- local: guides/community
title: ์ปค๋ฎค๋‹ˆํ‹ฐ
- local: guides/collections
title: Collections
- local: in_translation
title: (๋ฒˆ์—ญ ์ค‘) Cache
- local: guides/model-cards
Expand Down
228 changes: 228 additions & 0 deletions docs/source/ko/guides/collections.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
<!--โš ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# Collections[[collections]]

Collection์€ Hub(๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, Spaces, ๋…ผ๋ฌธ)์— ์žˆ๋Š” ๊ด€๋ จ ํ•ญ๋ชฉ๋“ค์˜ ๊ทธ๋ฃน์œผ๋กœ, ๊ฐ™์€ ํŽ˜์ด์ง€์— ํ•จ๊ป˜ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. Collections๋Š” ์ž์‹ ๋งŒ์˜ ํฌํŠธํด๋ฆฌ์˜ค๋ฅผ ๋งŒ๋“ค๊ฑฐ๋‚˜, ์นดํ…Œ๊ณ ๋ฆฌ๋ณ„๋กœ ์ฝ˜ํ…์ธ ๋ฅผ ๋ถ๋งˆํฌ ํ•˜๊ฑฐ๋‚˜, ๊ณต์œ ํ•˜๊ณ  ์‹ถ์€ item๋“ค์˜ ํ๋ ˆ์ดํŒ… ๋œ ๋ชฉ๋ก์„ ์ œ์‹œํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๊ธฐ [๊ฐ€์ด๋“œ](https://huggingface.co/docs/hub/collections)๋ฅผ ํ™•์ธํ•˜์—ฌ Collections๊ฐ€ ๋ฌด์—‡์ด๊ณ  Hub์—์„œ ์–ด๋–ป๊ฒŒ ๋ณด์ด๋Š”์ง€ ์ž์„ธํžˆ ์•Œ์•„๋ณด์„ธ์š”.

๋ธŒ๋ผ์šฐ์ €์—์„œ ์ง์ ‘ Collections๋ฅผ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ์ด ๊ฐ€์ด๋“œ์—์„œ๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋ฐฉ์‹์œผ๋กœ Collection์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐฉ๋ฒ•์— ์ดˆ์ ์„ ๋งž์ถ”๊ฒ ์Šต๋‹ˆ๋‹ค.

## Collection ๊ฐ€์ ธ์˜ค๊ธฐ[[fetch-a-collection]]

[`get_collection`]์„ ์‚ฌ์šฉํ•˜์—ฌ ์ž์‹ ์˜ Collections๋‚˜ ๊ณต๊ฐœ๋œ Collection์„ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Collection์„ ๊ฐ€์ ธ์˜ค๋ ค๋ฉด Collection์˜ *slug*๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. Slug๋Š” ์ œ๋ชฉ๊ณผ ๊ณ ์œ ํ•œ ID๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ Collection์˜ ์‹๋ณ„์ž์ž…๋‹ˆ๋‹ค. Collection ํŽ˜์ด์ง€์˜ URL์—์„œ slug๋ฅผ ์ฐพ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

<div class="flex justify-center">
<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hfh_collection_slug.png"/>
</div>

`"TheBloke/recent-models-64f9a55bb3115b4f513ec026"` Collection์„ ๊ฐ€์ ธ์™€ ๋ด…์‹œ๋‹ค:

```py
>>> from huggingface_hub import get_collection
>>> collection = get_collection("TheBloke/recent-models-64f9a55bb3115b4f513ec026")
>>> collection
Collection(
slug='TheBloke/recent-models-64f9a55bb3115b4f513ec026',
title='Recent models',
owner='TheBloke',
items=[...],
last_updated=datetime.datetime(2023, 10, 2, 22, 56, 48, 632000, tzinfo=datetime.timezone.utc),
position=1,
private=False,
theme='green',
upvotes=90,
description="Models I've recently quantized. Please note that currently this list has to be updated manually, and therefore is not guaranteed to be up-to-date."
)
>>> collection.items[0]
CollectionItem(
item_object_id='651446103cd773a050bf64c2',
item_id='TheBloke/U-Amethyst-20B-AWQ',
item_type='model',
position=88,
note=None
)
```

[`get_collection`]์— ์˜ํ•ด ๋ฐ˜ํ™˜๋œ [`Collection`] ๊ฐ์ฒด์—๋Š” ๋‹ค์Œ์ด ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค:
- ๋†’์€ ์ˆ˜์ค€์˜ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ: `slug`, `owner`, `title`, `description` ๋“ฑ
- [`CollectionItem`] ๊ฐ์ฒด์˜ ๋ชฉ๋ก; ๊ฐ ํ•ญ๋ชฉ์€ ๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, Space ๋˜๋Š” ๋…ผ๋ฌธ์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.

๋ชจ๋“  Collection ํ•ญ๋ชฉ์—๋Š” ๋‹ค์Œ์ด ๋ณด์žฅ๋ฉ๋‹ˆ๋‹ค:
- ๊ณ ์œ ํ•œ `item_object_id`: ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์—์„œ Collection ํ•ญ๋ชฉ์˜ id
- ๊ธฐ๋ณธ ํ•ญ๋ชฉ(๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, Space, ๋…ผ๋ฌธ)์˜ Hub์—์„œ์˜ `item_id`; ๊ณ ์œ ํ•˜์ง€ ์•Š์œผ๋ฉฐ, `item_id`/`item_type` ์Œ๋งŒ ๊ณ ์œ ํ•ฉ๋‹ˆ๋‹ค.
- `item_type`: ๋ชจ๋ธ, ๋ฐ์ดํ„ฐ์…‹, Space, ๋…ผ๋ฌธ
- Collection์—์„œ ํ•ญ๋ชฉ์˜ `position`์œผ๋กœ, ์ด๋ฅผ ์—…๋ฐ์ดํŠธํ•˜์—ฌ Collection์„ ์žฌ๊ตฌ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค(์•„๋ž˜์˜ [`update_collection_item`] ์ฐธ์กฐ)

๊ฐ ํ•ญ๋ชฉ์—๋Š” ์ถ”๊ฐ€ ์ •๋ณด(์ฝ”๋ฉ˜ํŠธ, ๋ธ”๋กœ๊ทธ ํฌ์ŠคํŠธ ๋งํฌ ๋“ฑ)๋ฅผ ์œ„ํ•œ `note`๋„ ์ฒจ๋ถ€๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ญ๋ชฉ์— note๊ฐ€ ์—†์œผ๋ฉด ํ•ด๋‹น ์†์„ฑ๊ฐ’์€ `None`์ด ๋ฉ๋‹ˆ๋‹ค.

์ด๋Ÿฌํ•œ ๊ธฐ๋ณธ ์†์„ฑ ์™ธ์—๋„, ๋ฐ˜ํ™˜๋œ ํ•ญ๋ชฉ์€ ์œ ํ˜•์— ๋”ฐ๋ผ ์ถ”๊ฐ€ ์†์„ฑ(`author`, `private`, `lastModified`, `gated`, `title`, `likes`, `upvotes` ๋“ฑ)์„ ๊ฐ€์งˆ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์ด๋Ÿฌํ•œ ์†์„ฑ์ด ๋ฐ˜ํ™˜๋œ๋‹ค๋Š” ๋ณด์žฅ์€ ์—†์Šต๋‹ˆ๋‹ค.

## Collections ๋‚˜์—ดํ•˜๊ธฐ[[fetch-a-collection]]

[`list_collections`]๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Collections๋ฅผ ๋‚˜์—ดํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. Collections๋Š” ๋ช‡ ๊ฐ€์ง€ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ•„ํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์ž [`teknium`](https://huggingface.co/teknium)์˜ ๋ชจ๋“  Collections๋ฅผ ๋‚˜์—ดํ•ด ๋ด…์‹œ๋‹ค.

```py
>>> from huggingface_hub import list_collections

>>> collections = list_collections(owner="teknium")
```

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด `Collection` ๊ฐ์ฒด์˜ ๋ฐ˜๋ณต ๊ฐ€๋Šฅํ•œ ๊ฐ์ฒด๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๊ฐ Collection์˜ upvotes ์ˆ˜๋ฅผ ์ถœ๋ ฅํ•˜๊ธฐ ์œ„ํ•ด ๋ฐ˜๋ณตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

```py
>>> for collection in collections:
... print("Number of upvotes:", collection.upvotes)
Number of upvotes: 1
Number of upvotes: 5
```

<Tip warning={true}>

Collections๋ฅผ ๋‚˜์—ดํ•  ๋•Œ, ๊ฐ Collection์˜ ํ•ญ๋ชฉ ๋ชฉ๋ก์€ ์ตœ๋Œ€ 4๊ฐœ ํ•ญ๋ชฉ์œผ๋กœ ์ž˜๋ฆฝ๋‹ˆ๋‹ค. Collection์˜ ๋ชจ๋“  ํ•ญ๋ชฉ์„ ๊ฐ€์ ธ์˜ค๋ ค๋ฉด [`get_collection`]์„ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

</Tip>

๊ณ ๊ธ‰ ํ•„ํ„ฐ๋ง์„ ์ˆ˜ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๋ชจ๋ธ [TheBloke/OpenHermes-2.5-Mistral-7B-GGUF](https://huggingface.co/TheBloke/OpenHermes-2.5-Mistral-7B-GGUF)๋ฅผ ํฌํ•จํ•˜๋Š” ํŠธ๋ Œ๋”ฉ ์ˆœ์œผ๋กœ ์ •๋ ฌ๋œ Collections๋ฅผ 5๊ฐœ๊นŒ์ง€๋งŒ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

```py
>>> collections = list_collections(item="models/TheBloke/OpenHermes-2.5-Mistral-7B-GGUF", sort="trending", limit=5):
>>> for collection in collections:
... print(collection.slug)
teknium/quantized-models-6544690bb978e0b0f7328748
AmeerH/function-calling-65560a2565d7a6ef568527af
PostArchitekt/7bz-65479bb8c194936469697d8c
gnomealone/need-to-test-652007226c6ce4cdacf9c233
Crataco/favorite-7b-models-651944072b4fffcb41f8b568
```

`sort` ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” `"last_modified"`, `"trending"` ๋˜๋Š” `"upvotes"` ์ค‘ ํ•˜๋‚˜์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค. `item` ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” ํŠน์ • ํ•ญ๋ชฉ์„ ๋ฐ›์Šต๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค:
* `"models/teknium/OpenHermes-2.5-Mistral-7B"`
* `"spaces/julien-c/open-gpt-rhyming-robot"`
* `"datasets/squad"`
* `"papers/2311.12983"`

์ž์„ธํ•œ ๋‚ด์šฉ์€ [`list_collections`] ์ฐธ์กฐ๋ฅผ ํ™•์ธํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

## ์ƒˆ Collection ๋งŒ๋“ค๊ธฐ[[fetch-a-collection]]

์ด์ œ [`Collection`]์„ ๊ฐ€์ ธ์˜ค๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ์•˜์œผ๋‹ˆ ์šฐ๋ฆฌ๋งŒ์˜ Collection์„ ๋งŒ๋“ค์–ด๋ด…์‹œ๋‹ค! ์ œ๋ชฉ๊ณผ ์„ค๋ช…์„ ์‚ฌ์šฉํ•˜์—ฌ [`create_collection`]์„ ํ˜ธ์ถœํ•ฉ๋‹ˆ๋‹ค. ์กฐ์ง ํŽ˜์ด์ง€์— Collection์„ ๋งŒ๋“ค๋ ค๋ฉด Collection ์ƒ์„ฑ ์‹œ `namespace="my-cool-org"`๋ฅผ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค. ๋งˆ์ง€๋ง‰์œผ๋กœ `private=True`๋ฅผ ์ „๋‹ฌํ•˜์—ฌ ๋น„๊ณต๊ฐœ Collection์„ ๋งŒ๋“ค ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

```py
>>> from huggingface_hub import create_collection

>>> collection = create_collection(
... title="ICCV 2023",
... description="Portfolio of models, papers and demos I presented at ICCV 2023",
... )
```

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด (์ œ๋ชฉ, ์„ค๋ช…, ์†Œ์œ ์ž ๋“ฑ์˜) ๋†’์€ ์ˆ˜์ค€์˜ ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ์™€ ๋นˆ ํ•ญ๋ชฉ ๋ชฉ๋ก์„ ๊ฐ€์ง„ [`Collection`] ๊ฐ์ฒด๊ฐ€ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค. ์ด์ œ `slug`๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ด Collection์„ ์ฐธ์กฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

```py
>>> collection.slug
'owner/iccv-2023-15e23b46cb98efca45'
>>> collection.title
"ICCV 2023"
>>> collection.owner
"username"
>>> collection.url
'https://huggingface.co/collections/owner/iccv-2023-15e23b46cb98efca45'
```

## Collection์˜ item ๊ด€๋ฆฌ[[manage-items-in-a-collection]]

์ด์ œ [`Collection`]์„ ๊ฐ€์ง€๊ณ  ์žˆ์œผ๋ฏ€๋กœ, ์—ฌ๊ธฐ์— item์„ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ตฌ์„ฑํ•ด๋ด…์‹œ๋‹ค.

### item ์ถ”๊ฐ€[[add-items]]

item์€ [`add_collection_item`]์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•˜๋‚˜์”ฉ ์ถ”๊ฐ€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. `collection_slug`, `item_id`, `item_type`๋งŒ ์•Œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ์„ ํƒ์ ์œผ๋กœ ํ•ญ๋ชฉ์— `note`๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค(์ตœ๋Œ€ 500์ž).

```py
>>> from huggingface_hub import create_collection, add_collection_item

>>> collection = create_collection(title="OS Week Highlights - Sept 18 - 24", namespace="osanseviero")
>>> collection.slug
"osanseviero/os-week-highlights-sept-18-24-650bfed7f795a59f491afb80"

>>> add_collection_item(collection.slug, item_id="coqui/xtts", item_type="space")
>>> add_collection_item(
... collection.slug,
... item_id="warp-ai/wuerstchen",
... item_type="model",
... note="Wรผrstchen is a new fast and efficient high resolution text-to-image architecture and model"
... )
>>> add_collection_item(collection.slug, item_id="lmsys/lmsys-chat-1m", item_type="dataset")
>>> add_collection_item(collection.slug, item_id="warp-ai/wuerstchen", item_type="space") # ๋™์ผํ•œ item_id, ๋‹ค๋ฅธ item_type
```

Collection์— item์ด ์ด๋ฏธ ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ(๋™์ผํ•œ `item_id`/`item_type` ์Œ), HTTP 409 ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. `exists_ok=True`๋ฅผ ์„ค์ •ํ•˜๋ฉด ์ด ์˜ค๋ฅ˜๋ฅผ ๋ฌด์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

### ๊ธฐ์กด item์— ๋ฉ”๋ชจ ์ถ”๊ฐ€[[add-a-note-to-an-existing-item]]

[`update_collection_item`]์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ธฐ์กด item์„ ์ˆ˜์ •ํ•˜์—ฌ ๋ฉ”๋ชจ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ๋ณ€๊ฒฝํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์œ„์˜ ์˜ˆ์‹œ๋ฅผ ๋‹ค์‹œ ์‚ฌ์šฉํ•ด ๋ด…์‹œ๋‹ค:

```py
>>> from huggingface_hub import get_collection, update_collection_item

# ์ƒˆ๋กœ ์ถ”๊ฐ€๋œ item๊ณผ ํ•จ๊ป˜ Collection ๊ฐ€์ ธ์˜ค๊ธฐ
>>> collection_slug = "osanseviero/os-week-highlights-sept-18-24-650bfed7f795a59f491afb80"
>>> collection = get_collection(collection_slug)

# `lmsys-chat-1m` ๋ฐ์ดํ„ฐ์…‹์— ๋ฉ”๋ชจ ์ถ”๊ฐ€
>>> update_collection_item(
... collection_slug=collection_slug,
... item_object_id=collection.items[2].item_object_id,
... note="This dataset contains one million real-world conversations with 25 state-of-the-art LLMs.",
... )
```

### item ์žฌ์ •๋ ฌ[[reorder-items]]

Collection์˜ item์€ ์ˆœ์„œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ์ˆœ์„œ๋Š” ๊ฐ item์˜ `position` ์†์„ฑ์— ์˜ํ•ด ๊ฒฐ์ •๋ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ item์€ Collection์˜ ๋์— ์ถ”๊ฐ€๋˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ˆœ์„œ๊ฐ€ ์ง€์ •๋ฉ๋‹ˆ๋‹ค. [`update_collection_item`]์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฉ”๋ชจ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์ˆœ์„œ๋ฅผ ์—…๋ฐ์ดํŠธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์œ„์˜ ์˜ˆ์‹œ๋ฅผ ๋‹ค์‹œ ์‚ฌ์šฉํ•ด ๋ด…์‹œ๋‹ค:

```py
>>> from huggingface_hub import get_collection, update_collection_item

# Collection ๊ฐ€์ ธ์˜ค๊ธฐ
>>> collection_slug = "osanseviero/os-week-highlights-sept-18-24-650bfed7f795a59f491afb80"
>>> collection = get_collection(collection_slug)

# ๋‘ ๊ฐœ์˜ `Wuerstchen` item์„ ํ•จ๊ป˜ ๋ฐฐ์น˜ํ•˜๋„๋ก ์žฌ์ •๋ ฌ
>>> update_collection_item(
... collection_slug=collection_slug,
... item_object_id=collection.items[3].item_object_id,
... position=2,
... )
```

### item ์ œ๊ฑฐ[[remove-items]]

๋งˆ์ง€๋ง‰์œผ๋กœ [`delete_collection_item`]์„ ์‚ฌ์šฉํ•˜์—ฌ item์„ ์ œ๊ฑฐํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

```py
>>> from huggingface_hub import get_collection, update_collection_item

# Collection ๊ฐ€์ ธ์˜ค๊ธฐ
>>> collection_slug = "osanseviero/os-week-highlights-sept-18-24-650bfed7f795a59f491afb80"
>>> collection = get_collection(collection_slug)

# ๋ชฉ๋ก์—์„œ `coqui/xtts` Space ์ œ๊ฑฐ
>>> delete_collection_item(collection_slug=collection_slug, item_object_id=collection.items[0].item_object_id)
```

## Collection ์‚ญ์ œ[[delete-collection]]

[`delete_collection`]์„ ์‚ฌ์šฉํ•˜์—ฌ Collection์„ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

<Tip warning={true}>

์ด ์ž‘์—…์€ ๋˜๋Œ๋ฆด ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ์‚ญ์ œ๋œ Collection์€ ๋ณต๊ตฌํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

</Tip>

```py
>>> from huggingface_hub import delete_collection
>>> collection = delete_collection("username/useless-collection-64f9a55bb3115b4f513ec026", missing_ok=True)
```
Loading