跳到正文
Hugging Face 社区博客·· 2025-05-14AI 评分58

Kaggle 上线 Hugging Face 模型集成

Improving Hugging Face Model Access for Kaggle Users

AI 导读

Kaggle 与 Hugging Face 宣布平台集成,用户可在 Hugging Face 模型页点击 Use this model 选择 Kaggle 打开预填代码的笔记本,运行引用 Hugging Face Hub 模型的 Kaggle 笔记本时会自动生成模型页,公开笔记本会显示在 Kaggle 模型页的 Code 标签下。

正文 · 原文

Image 1: Hugging Face's logoHugging Face


Back to Articles

Improving Hugging Face Model Access for Kaggle Users

Published May 14, 2025

Update on GitHub

- [x] Upvote 33

  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7
  • +27

Image 8: Vincent Roseberry's avatar

Vincent Roseberry roseberryv Follow

Image 9: Kaggle's avatarkaggle

Image 10: Meg Risdal's avatar

Meg Risdal megrisdal Follow

Image 11: Kaggle's avatarkaggle

Image 12: Julien Chaumond's avatar

Julien Chaumond julien-c Follow

Image 13: Pedro Cuenca's avatar

Pedro Cuenca pcuenq Follow

Image 14: Vaibhav Srivastav's avatar

Vaibhav Srivastav reach-vb Follow

Kaggle and Hugging Face users are part of one AI community. That’s why we’re excited to announce our plans to bring our platforms and communities closer to better serve AI developers everywhere. Beginning today, Kaggle is launching an integration that enhances visibility and discoverability for Hugging Face models directly on Kaggle.

How to get started

You can navigate from Hugging Face models to Kaggle and vice versa. Start by visiting a Hugging Face model page like Qwen/Qwen3-1.7B. To use it in a Kaggle Notebook, you can click on “Use this model” and select “Kaggle” to open up a Kaggle notebook with a pre-populated code snippet to load the model. You can do the same from a Hugging Face model page on Kaggle by clicking the “Code” button.

Image 15: Creating a new notebook using a Hugging Face model on Kaggle When you run a notebook on Kaggle that references a model hosted on Hugging Face Hub, we will automatically generate a Hugging Face model page if one doesn’t exist already. You don’t need to make any special changes to your code. Additionally, when you make your notebook public, it will automatically show on the “Code” tab of the Kaggle model page.

Discover Hugging Face models and explore all the community examples in public notebooks in one place on Kaggle at https://www.kaggle.com/models. As more Hugging Face models are used on Kaggle, the number of models and associated code examples you can explore for inspiration will grow.

Image 16: Browsing Hugging Face models on Kaggle When browsing Hugging Face models on Kaggle, we want to make it easy for you to navigate back to Hugging Face to explore additional details, metadata, community usage in Hugging Face Spaces, discussion, and more. Simply click “Open in Hugging Face” on the Kaggle model page.

How does this work with private and consent-gated Hugging Face models?

If you use a private Hugging Face model in your Kaggle notebook, authenticate via your Hugging Face account as normal (add your HF_TOKEN in the “Add-ons > Secrets” menu in the notebook editor). A Hugging Face model page won’t be generated on Kaggle.

If you want to access a consent-gated model in your Kaggle notebook, you’ll need to request access to it using a Hugging Face account and follow the prompts on your browser's Hugging Face model page as normal. Hugging Face has documentation to guide you through this process. Otherwise, the integration will work the same as for non-gated models.

What’s next

We’re actively working on a solution to seamlessly use Hugging Face models in Kaggle competitions that require offline notebook submissions. While this will take a few more months to complete, we believe the wait will be worth it.

You can read Kaggle’s position on “AI Competitions as the gold standard for empirical rigor for GenAI evaluation” to understand why it’s so important for us to get this part of the integration right! But tl;dr – Kaggle is highly sensitive to data leakage and its impact on model contamination. Our goal is to design this integration to preserve the integrity of our competitions and their vital role in the industry, while enabling seamless access for Kaggle competitors to build with the best models from Hugging Face!

We’d love to hear your feedback in the meantime - share your thoughts and ideas here!

Happy Kaggling!

Models mentioned in this article 1

Image 17 #### Qwen/Qwen3-1.7B Text Generation • 2B•Updated Jul 26, 2025• 3.14M• 562

Spaces mentioned in this article 1

Running #### Hf Integration Feedback 📚 Share feedback with Kaggle about integrations with HF

Papers mentioned in this article 1

Position: AI Competitions Provide the Gold Standard for Empirical Rigor in GenAI Evaluation Paper • 2505.00612 •Published May 1, 2025• 10

More Articles from our Blog

Image 18 audio speech leaderboard ## Introducing the FFASR Leaderboard: Benchmarking ASR in the Real World * Image 19 * Image 20 * Image 21 * Image 22 * +1 15 June 24, 2026 daniel-treble, et. al.

Image 23 announcement open-source community ## The Open Source Community is backing OpenEnv for Agentic RL * Image 24 * Image 25 * Image 26 * Image 27 * +16 120 June 8, 2026 burtenshaw, et. al.

Community

Image 28

julien-c

Article author May 14, 2025

YAY!

🔥

3

3

Reply

Image 29

ariG23498

May 14, 2025

This is very useful!

🤗

1

1

Reply

Image 30

philmod-h

Jun 5, 2025

Very cool, thanks!

  • Image 31
  • 1 reply

·

🤗

2

2

Image 32

megrisdal

Article author Jun 6, 2025

You're welcome :)

❤️

1

1

Edit Preview

Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.

Tap or paste here to upload images

Comment ·Sign up or log in to comment

- [x] Upvote 33

  • Image 33
  • Image 34
  • Image 35
  • Image 36
  • Image 37
  • Image 38
  • Image 39
  • Image 40
  • Image 41
  • Image 42
  • Image 43
  • Image 44
  • +21

Models mentioned in this article 1

Image 45 #### Qwen/Qwen3-1.7B Text Generation • 2B•Updated Jul 26, 2025• 3.14M• 562

Spaces mentioned in this article 1

Running #### Hf Integration Feedback 📚 Share feedback with Kaggle about integrations with HF

Papers mentioned in this article 1

Position: AI Competitions Provide the Gold Standard for Empirical Rigor in GenAI Evaluation Paper • 2505.00612 •Published May 1, 2025• 10

System theme

Company

TOSPrivacyAboutCareers

Website

ModelsDatasetsSpacesPricingDocs

来源:Hugging Face 社区博客 · huggingface.co