### Kaggle and Hugging Face: A New Era of AI Collaboration
The world of artificial intelligence (AI) is continuously evolving, and the integration of platforms is crucial for developers looking to enhance their projects. Kaggle and Hugging Face, two prominent players in the AI community, are joining forces to create a more seamless experience for AI developers. This integration aims to enhance the visibility and discoverability of Hugging Face models directly within Kaggle, making it easier for users to access and utilize these powerful tools.
### How to Get Started with Kaggle and Hugging Face Integration
If you’re eager to dive into this new integration, getting started is a breeze! You can easily navigate between Hugging Face models and Kaggle. Simply visit a Hugging Face model page, such as [Qwen/Qwen3-1.7B](https://huggingface.co/models), and click on the “Use this model” button. From there, select “Kaggle” to open a new Kaggle notebook that comes pre-populated with a code snippet to load the model.
Conversely, if you’re browsing on Kaggle and come across a Hugging Face model, you can click the “Code” button to access the relevant code snippet directly. This streamlined process allows developers to quickly leverage Hugging Face’s extensive model library within their Kaggle notebooks.

### Automatic Model Page Generation
One of the standout features of this integration is the automatic generation of Hugging Face model pages on Kaggle. If you run a notebook that references a model hosted on the Hugging Face Hub, a model page will be created if it doesn’t already exist, without requiring any special modifications to your code. This means that when you publish your notebook, it will automatically appear on the “Code” tab of the corresponding Kaggle model page, enhancing discoverability and collaboration.
For those looking to explore Hugging Face models, a dedicated space on Kaggle is now available at [Kaggle Models](https://www.kaggle.com/models). Here, you can find a plethora of models and community examples in public notebooks, providing a rich source of inspiration as you work on your AI projects.

### Navigating Between Platforms
As you explore Hugging Face models on Kaggle, the integration is designed to facilitate easy navigation back to Hugging Face for further details. Whether you want to check out additional metadata, community usage in Hugging Face Spaces, or engage in discussions, you can simply click the “Open in Hugging Face” button on the Kaggle model page. This feature ensures that you have access to comprehensive information as you build and experiment with AI models.
### Private and Consent-Gated Models
For users working with private Hugging Face models in Kaggle notebooks, the integration remains straightforward. You can authenticate using your Hugging Face account by adding your HF_TOKEN in the “Add-ons > Secrets” menu within the notebook editor. It’s important to note that a Hugging Face model page will not be generated for private models.
If you’re interested in using a consent-gated model, you’ll need to request access via your Hugging Face account and follow the prompts on the Hugging Face model page. Hugging Face provides detailed documentation to assist you through this process, ensuring a smooth experience when integrating gated models into your Kaggle notebooks.
### Future Developments in Integration
Looking ahead, the teams at Kaggle and Hugging Face are actively working on a solution that will enable the use of Hugging Face models in Kaggle competitions, particularly for those that require offline notebook submissions. While this feature is still in development and may take a few months to finalize, it is a significant step toward enhancing the functionality of the integration.
Kaggle understands the critical importance of maintaining data integrity and preventing model contamination during competitions. Their commitment to creating a robust integration reflects their dedication to preserving the standards essential for AI competitions.
In the meantime, feedback is encouraged! The community’s insights are invaluable as both platforms strive to enhance user experience and functionality.
Happy Kaggling!
Inspired by: Source

