Jupyter X Hugging Face

釋出於 2023 年 3 月 23 日
在 GitHub 上更新

我們很高興地宣佈,Jupyter Notebook 在 Hugging Face Hub 上的支援得到了改進!

從作為重要的學習資源到作為模型開發的關鍵工具,Jupyter Notebook 已成為機器學習許多領域的關鍵組成部分。Notebook 的互動性和視覺化特性使您在開發模型、資料集和演示時能夠快速獲得反饋。對於許多人來說,他們第一次接觸機器學習模型訓練是透過 Jupyter Notebook,許多從業者將 Notebook 作為開發和交流其工作的關鍵工具。

Hugging Face 是一個協作式機器學習平臺,社群已在其中分享了超過 150,000 個模型、25,000 個數據集和 30,000 個機器學習應用程式。Hub 擁有模型和資料集版本控制工具,包括模型卡和客戶端庫以自動化版本控制過程。然而,僅僅包含帶有超引數的模型卡不足以提供最佳的可復現性;這就是 Notebook 可以提供幫助的地方。除了這些模型、資料集和演示,Hub 還託管了 7,000 多個 Notebook。這些 Notebook 通常記錄了模型或資料集的開發過程,並可以提供指導和教程,展示其他人如何使用這些資源。因此,我們很高興看到 Hub 對 Notebook 託管的支援得到了改進。

我們改變了什麼?

在底層,Jupyter Notebook 檔案(通常以 ipynb 副檔名共享)是 JSON 檔案。雖然可以直接檢視這些檔案,但這不是一種供人類閱讀的格式。我們現在已添加了對 Hub 上託管的 Notebook 的渲染支援。這意味著 Notebook 現在將以人類可讀的格式顯示。

A side-by-side comparison showing a screenshot of a notebook that hasn’t been rendered on the left and a rendered version on the right.  The non-rendered image shows part of a JSON file containing notebook cells that are difficult to read. The rendered version shows a notebook hosted on the Hugging Face hub showing the notebook rendered in a human-readable format. The screenshot shows some of the context of the Hugging Face Hub hosting, such as the branch and a window showing the rendered notebook. The rendered notebook has some example Markdown and code snippets showing the notebook output.
在 Hub 上託管的 Notebook 渲染前後對比。

為什麼我們很高興能在 Hub 上託管更多 Notebook?

  • Notebook 有助於記錄人們如何使用您的模型和資料集;在與您的模型和資料集相同的位置共享 Notebook,使其他人更容易使用您在 Hub 上建立和共享的資源。
  • 許多人使用 Hub 來開發機器學習作品集。您現在也可以使用 Jupyter Notebook 補充此作品集。
  • 支援在 Google Colab 中一鍵直接開啟 Hub 上託管的 Notebook,使 Hub 上的 Notebook 體驗更加強大。敬請期待未來的公告!

社群

註冊登入以評論

© . This site is unofficial and not affiliated with Hugging Face, Inc.