Introducing Skops
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.
Related posts
- huggingface_hub v1.0: Five Years of Building the Foundation of Open Machine Learning
Hugging Face easyNovicehuggingface_hub reaches v1.0 after five years, with breaking changes. It replaces requests with httpx for HTTP/2, thread-safe connection reuse and a unified sync/async API. It also makes hf_xet the default transfer backend, ships a redesigned Typer-based `hf` CLI that replaces huggingface-cli, and removes legacy pieces like the Git-based Repository class, HfFolder, InferenceApi and hf_transfer. Most libraries work with both v0.x and v1.x, except transformers (v4 needs v0.x, v5 needs v1.x). v0.x will receive only security fixes. The history covers the 2022 shift from Git to the HTTP Commit API with a shared deduplicated cache, and Xet's chunk-level (64KB) deduplication, now used by 77PB+ across 6M+ repositories.
- Deploy Hugging Face models easily with Amazon SageMaker
Hugging Face mediumAdeptHugging 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. Models can be deployed straight after a SageMaker training job via the Estimator, from a model.tar.gz in S3 via HuggingFaceModel's model_data, or directly from the Model Hub by setting the HF_MODEL_ID and HF_TASK environment variables. Requests use an `inputs` key plus optional pipeline `parameters`, and custom inference code can override the defaults when needed.
- The 5 Most Under-Rated Tools on Hugging Face
Hugging Face mediumAdeptFive 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. A scheduled Space pulls Reddit posts into a dataset, a webhook triggers a processing Space, and that Space calls a ZeroGPU-hosted nomic-embed-text-v1.5 model through gradio_client to add embeddings and build an Atlas map. Practical details include the @spaces.GPU decorator, supervisord config for running a worker and a log viewer in one container, and webhook handling: respond within 30s using background tasks, and filter by repo scope, main branch and changed files.
- Hosting your Models and Datasets on Hugging Face Spaces using Streamlit
Hugging Face mediumAdeptStreamlit apps can showcase Hugging Face models and datasets and be hosted on Hugging Face Spaces. The walkthrough recreates "Write with Transformer" using Streamlit widgets such as text_area, sidebar sliders and number_input to collect generation hyperparameters like temperature, top-k and top-p. It then visualizes a poetry dataset, loaded with 🤗 Datasets streaming, using st.dataframe, st.bar_chart and st.pyplot for seaborn/matplotlib plots. Deployment means dragging files into a Space, listing dependencies in requirements.txt, and matching the Streamlit version.
- The Partnership: Amazon SageMaker and Hugging Face
Hugging Face mediumAdeptHugging 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. An end-to-end walkthrough fine-tunes DistilBERT on IMDB binary sentiment classification: setting up a SageMaker session and IAM role, writing a Trainer-based train.py that reads SageMaker environment variables, tokenizing and uploading datasets to S3, and launching a training job with estimator.fit(). The containers also support SageMaker's data-parallel and model-parallel distributed training libraries through a distribution parameter, along with automatic hyperparameter tuning.