mt5-small-mic / README.md
tarekziade's picture
tarekziade HF Staff
Publish MIC usage, slim fixture and reviewed Transformers expectations
8e45ea4 verified
|
Raw History Blame Contribute Delete
2.85 kB
metadata
tags:
  - mic
  - test-artifact
base_model: google/mt5-small

mt5-small-mic

Slim model weights, executable usage and framework expectations in one repository.

Contract

MT5 seq2seq

Runnable usage and the framework expectations directory are linked above.

Slim model

mt5-small-mic

Slim model weights, executable usage and framework expectations in one repository.

Contract

MT5 seq2seq

Runnable usage and the framework expectations directory are linked above.

Slim model

Slim fixture: mt5-small-mic

A 16.2M-parameter fixture for the MT5 MIC, covering google/mt5-small. It is a test artifact, not a usable model, tagged test-artifact to keep it out of candidate-model search.

  • Fixture key d4db27680832. It covers every checkpoint whose processor files are byte-identical and whose config matches after shrinking.
  • Same architecture, smaller config: MT5ForConditionalGeneration, shrunk by the generic rule in sweep.py (num_layers 2, num_decoder_layers 2).
  • Processor files copied byte for byte from google/mt5-small: generation_config.json, special_tokens_map.json, spiece.model, tokenizer_config.json.
  • Random weights (seed 17). They passed the input-sensitivity gate: every perturbation of the contract's inputs moved the logits by at least 0.001 (weakest: input_ids:reverse, 1.85), so no training was needed.
  • Same tensor names as the real checkpoint. The real checkpoint has every parameter, and so does the fixture.
  • Saved in float32, the dtype google/mt5-small loads in by default.
  • Finite in float32, bfloat16, and float16 (forward, loss, gradients).

Built by build_fixtures.py; build.json records the pinned sources, gate results, and file hashes. This repository includes the slim weights, usage and framework expectations; rebuild the other files with python example/build_fixtures.py --fixture mt5-small-mic.