---
title: "Introducing Skops"
description: "Skops is a Hugging Face library for hosting scikit-learn models on the Hugging Face Hub, generating model cards and sharing them with collaborators."
url: "https://swe.quest/articles/introducing-skops-ddba76d41440d3bf"
canonical: "https://huggingface.co/blog/skops"
source: "Hugging Face"
published: "2022-08-12"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["ml-platform","python","machine-learning","open-source"]
---

# Introducing Skops

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2022-08-12, 6 min read, How-to. Original: [https://huggingface.co/blog/skops](https://huggingface.co/blog/skops)

## Summary

Skops is a Hugging Face library for hosting scikit-learn models on the Hugging Face Hub, generating model cards and sharing them with collaborators. An end-to-end walkthrough trains a DecisionTreeClassifier, serializes it with pickle, and uses hub\_utils.init to build a local repo with a config file capturing requirements, task and example input. It then fills a model card via the Card class with metadata, metrics, plots and descriptions, pushes to the Hub (enabling the inference widget), and covers download and update\_env. The backend currently loads models with joblib, and the post does not cover secure serialization.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [ML platforms](https://swe.quest/tags/ml-platform.md) (AI & ML)
- [Python](https://swe.quest/tags/python.md) (Languages)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- scikit-learn basics
- Python ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))

## Keywords

Skops, scikit-learn, Hugging Face Hub, model cards, joblib, pickle

## Related posts

- [huggingface\_hub v1.0: Five Years of Building the Foundation of Open Machine Learning](https://swe.quest/articles/huggingface-hub-v1-0-five-years-of-building-the-foundation-of-open-machine-2c4a77895f6727a3.md): Hugging Face · 2025-10-27 · Easy · 9 min read · Python, ML platforms, Open source, Developer tools
  huggingface\_hub reaches v1.0 after five years, with breaking changes.
- [Deploy Hugging Face models easily with Amazon SageMaker](https://swe.quest/articles/deploy-hugging-face-models-easily-with-amazon-sagemaker-e09e9e34ef94ffa8.md): Hugging Face · 2021-07-08 · Medium · 9 min read · Inference & serving, Cloud platforms, ML platforms, Python
  Hugging Face Inference Deep Learning Containers and the SageMaker Hugging Face Inference Toolkit let Transformers models be deployed as SageMaker endpoints with a few lines of Python, using transformers pipelines for zero-code pre- and post-processing.
- [The 5 Most Under-Rated Tools on Hugging Face](https://swe.quest/articles/the-5-most-under-rated-tools-on-hugging-face-d4091b1b4c6dbb61.md): Hugging Face · 2024-08-22 · Medium · 16 min read · ML platforms, Search, Data pipelines, Python
  Five overlooked Hugging Face Hub features (ZeroGPU, multi-process Docker Spaces, the Gradio API client, Hub webhooks and Nomic Atlas) can be combined into a free, automatically updating semantic search pipeline, demonstrated over a subreddit data source.
- [Hosting your Models and Datasets on Hugging Face Spaces using Streamlit](https://swe.quest/articles/hosting-your-models-and-datasets-on-hugging-face-spaces-using-streamlit-a8983f0b0bfbdd51.md): Hugging Face · 2021-10-05 · Medium · 3 min read · Python, Machine learning, Deployment
  Streamlit apps can showcase Hugging Face models and datasets and be hosted on Hugging Face Spaces.
- [The Partnership: Amazon SageMaker and Hugging Face](https://swe.quest/articles/the-partnership-amazon-sagemaker-and-hugging-face-bdc6f1a55662e5fc.md): Hugging Face · 2021-03-23 · Medium · 14 min read · Model training, ML platforms, Cloud platforms, Python
  Hugging Face and AWS partner, making AWS Hugging Face's preferred cloud and introducing Hugging Face Deep Learning Containers plus a HuggingFace Estimator in the SageMaker Python SDK for training Transformers models.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
