Spaces:
Running

README / README.md
tarekziade's picture
tarekziade HF Staff
Add the MIC logo to the org card
702b589 verified
|
Raw History Blame Contribute Delete
1.96 kB
metadata
title: README
emoji: 🧪
colorFrom: yellow
colorTo: red
sdk: static
pinned: false
MIC logo

Model Integration Contracts (MIC)

huggingface-mic hosts the tiny models and contracts that let 🤗 Transformers run fast, meaningful integration tests on every pull request.

For each model architecture, we build a slim fixture, a very small version of a real checkpoint, together with an executable contract (the usage code for the model, plus the outputs it must produce). Baselines are measured on CPU and CUDA and reviewed by a human before they are accepted. They are never fitted to make a test pass.

Add a model

pip install -U "transformers-mic @ git+https://github.com/huggingface/transformers-mic.git@main"
hf auth login     # write token
tmic auth login   # GitHub login
tmic run Qwen/Qwen3-0.6B

tmic run drafts the contract, builds the slim fixture and measures baselines in the cloud, so you don't need a GPU. Before anything is published, it asks you to review the contract and any changed values. Model experts are especially welcome: a shrinking recipe can leave a tiny model useless, like a weather model that forecasts sunshine forever and passes every test.

For now, contributing is restricted to members of the huggingface organization on the Hub.