transformers-mic 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. transformers_mic-0.1.0/CHANGELOG.md +36 -0
  2. transformers_mic-0.1.0/LICENSE +203 -0
  3. transformers_mic-0.1.0/MANIFEST.in +12 -0
  4. transformers_mic-0.1.0/PKG-INFO +101 -0
  5. transformers_mic-0.1.0/README.md +61 -0
  6. transformers_mic-0.1.0/docs/cli.md +746 -0
  7. transformers_mic-0.1.0/example/build_fixtures.py +877 -0
  8. transformers_mic-0.1.0/example/find_misses.py +101 -0
  9. transformers_mic-0.1.0/example/hub/BERT-integration/README.md +26 -0
  10. transformers_mic-0.1.0/example/hub/BERT-integration/integration.json +83 -0
  11. transformers_mic-0.1.0/example/hub/BERT-integration/integrations/transformers/usage.md +70 -0
  12. transformers_mic-0.1.0/example/hub/CLIP-integration/README.md +26 -0
  13. transformers_mic-0.1.0/example/hub/CLIP-integration/integration.json +90 -0
  14. transformers_mic-0.1.0/example/hub/CLIP-integration/integrations/transformers/usage.md +83 -0
  15. transformers_mic-0.1.0/example/hub/MusicgenMelody-integration/README.md +26 -0
  16. transformers_mic-0.1.0/example/hub/MusicgenMelody-integration/integration.json +98 -0
  17. transformers_mic-0.1.0/example/hub/MusicgenMelody-integration/integrations/transformers/usage.md +98 -0
  18. transformers_mic-0.1.0/example/hub/SmolLM-integration/README.md +29 -0
  19. transformers_mic-0.1.0/example/hub/SmolLM-integration/integration.json +152 -0
  20. transformers_mic-0.1.0/example/hub/SmolLM-integration/integrations/transformers/usage.md +79 -0
  21. transformers_mic-0.1.0/example/hub/SmolLM-integration/integrations/transformers.js/integration.js +63 -0
  22. transformers_mic-0.1.0/example/hub/SmolLM-integration/integrations/transformers.js/package-lock.json +969 -0
  23. transformers_mic-0.1.0/example/hub/SmolLM-integration/integrations/transformers.js/package.json +8 -0
  24. transformers_mic-0.1.0/example/hub/T5-integration/README.md +28 -0
  25. transformers_mic-0.1.0/example/hub/T5-integration/integration.json +103 -0
  26. transformers_mic-0.1.0/example/hub/T5-integration/integrations/transformers/usage.md +80 -0
  27. transformers_mic-0.1.0/example/hub/Wav2Vec2-integration/README.md +26 -0
  28. transformers_mic-0.1.0/example/hub/Wav2Vec2-integration/integration.json +89 -0
  29. transformers_mic-0.1.0/example/hub/Wav2Vec2-integration/integrations/transformers/usage.md +87 -0
  30. transformers_mic-0.1.0/example/hub/Whisper-integration/README.md +26 -0
  31. transformers_mic-0.1.0/example/hub/Whisper-integration/integration.json +104 -0
  32. transformers_mic-0.1.0/example/hub/Whisper-integration/integrations/transformers/usage.md +185 -0
  33. transformers_mic-0.1.0/example/hub/WhisperSpeech-integration/README.md +21 -0
  34. transformers_mic-0.1.0/example/hub/WhisperSpeech-integration/audio/1272-128104-0000.flac +0 -0
  35. transformers_mic-0.1.0/example/hub/WhisperSpeech-integration/audio/1272-128104-0000.json +14 -0
  36. transformers_mic-0.1.0/example/hub/WhisperSpeech-integration/integration.json +78 -0
  37. transformers_mic-0.1.0/example/hub/WhisperSpeech-integration/integrations/transformers/usage.md +74 -0
  38. transformers_mic-0.1.0/example/hub/mic-SmolLM-1.7B-slim/README.md +19 -0
  39. transformers_mic-0.1.0/example/hub/mic-SmolLM-1.7B-slim/build.json +53 -0
  40. transformers_mic-0.1.0/example/hub/mic-SmolLM-slim/README.md +20 -0
  41. transformers_mic-0.1.0/example/hub/mic-SmolLM-slim/build.json +150 -0
  42. transformers_mic-0.1.0/example/hub/mic-bert-base-uncased-slim/README.md +19 -0
  43. transformers_mic-0.1.0/example/hub/mic-bert-base-uncased-slim/build.json +124 -0
  44. transformers_mic-0.1.0/example/hub/mic-clip-vit-base-patch32-slim/README.md +19 -0
  45. transformers_mic-0.1.0/example/hub/mic-clip-vit-base-patch32-slim/build.json +213 -0
  46. transformers_mic-0.1.0/example/hub/mic-musicgen-melody-slim/README.md +20 -0
  47. transformers_mic-0.1.0/example/hub/mic-musicgen-melody-slim/build.json +346 -0
  48. transformers_mic-0.1.0/example/hub/mic-t5-small-slim/README.md +19 -0
  49. transformers_mic-0.1.0/example/hub/mic-t5-small-slim/build.json +154 -0
  50. transformers_mic-0.1.0/example/hub/mic-umt5-small-slim/README.md +19 -0
  51. transformers_mic-0.1.0/example/hub/mic-umt5-small-slim/build.json +127 -0
  52. transformers_mic-0.1.0/example/hub/mic-wav2vec2-base-960h-slim/README.md +19 -0
  53. transformers_mic-0.1.0/example/hub/mic-wav2vec2-base-960h-slim/build.json +209 -0
  54. transformers_mic-0.1.0/example/hub/mic-whisper-tiny-slim/README.md +19 -0
  55. transformers_mic-0.1.0/example/hub/mic-whisper-tiny-slim/build.json +275 -0
  56. transformers_mic-0.1.0/example/mic_card.py +51 -0
  57. transformers_mic-0.1.0/example/patches.py +121 -0
  58. transformers_mic-0.1.0/example/perturb.py +150 -0
  59. transformers_mic-0.1.0/example/publish_contracts.py +68 -0
  60. transformers_mic-0.1.0/example/publish_fixtures.py +54 -0
  61. transformers_mic-0.1.0/example/publish_mic.py +130 -0
  62. transformers_mic-0.1.0/example/replay.py +81 -0
  63. transformers_mic-0.1.0/example/report.py +96 -0
  64. transformers_mic-0.1.0/example/review_candidates.py +72 -0
  65. transformers_mic-0.1.0/example/run.py +824 -0
  66. transformers_mic-0.1.0/example/schemas/baseline.schema.json +83 -0
  67. transformers_mic-0.1.0/example/schemas/fixture-build.schema.json +219 -0
  68. transformers_mic-0.1.0/example/schemas/fleet-lock.schema.json +168 -0
  69. transformers_mic-0.1.0/example/schemas/integration.schema.json +371 -0
  70. transformers_mic-0.1.0/example/schemas/result.schema.json +152 -0
  71. transformers_mic-0.1.0/example/schemas/tolerances.schema.json +39 -0
  72. transformers_mic-0.1.0/example/select_contracts.py +95 -0
  73. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-arm64/bert-base-uncased.eager.json +73 -0
  74. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-arm64/bert-base-uncased.json +73 -0
  75. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-arm64/mic-bert-base-uncased-slim.eager.json +76 -0
  76. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-arm64/mic-bert-base-uncased-slim.json +76 -0
  77. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-x86_64/bert-base-uncased.eager.json +89 -0
  78. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-x86_64/bert-base-uncased.json +89 -0
  79. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-x86_64/mic-bert-base-uncased-slim.eager.json +89 -0
  80. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cpu-x86_64/mic-bert-base-uncased-slim.json +89 -0
  81. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/bert-base-uncased.bfloat16.json +89 -0
  82. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/bert-base-uncased.eager.json +89 -0
  83. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/bert-base-uncased.json +89 -0
  84. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/mic-bert-base-uncased-slim.bfloat16.json +89 -0
  85. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/mic-bert-base-uncased-slim.eager.json +89 -0
  86. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/BERT/cuda/mic-bert-base-uncased-slim.json +89 -0
  87. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-arm64/clip-vit-base-patch32.eager.json +141 -0
  88. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-arm64/clip-vit-base-patch32.json +141 -0
  89. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-arm64/mic-clip-vit-base-patch32-slim.eager.json +141 -0
  90. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-arm64/mic-clip-vit-base-patch32-slim.json +141 -0
  91. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-x86_64/clip-vit-base-patch32.eager.json +142 -0
  92. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-x86_64/clip-vit-base-patch32.json +142 -0
  93. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-x86_64/mic-clip-vit-base-patch32-slim.eager.json +142 -0
  94. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cpu-x86_64/mic-clip-vit-base-patch32-slim.json +142 -0
  95. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/clip-vit-base-patch32.bfloat16.json +142 -0
  96. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/clip-vit-base-patch32.eager.json +142 -0
  97. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/clip-vit-base-patch32.json +142 -0
  98. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/mic-clip-vit-base-patch32-slim.bfloat16.json +142 -0
  99. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/mic-clip-vit-base-patch32-slim.eager.json +142 -0
  100. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/CLIP/cuda/mic-clip-vit-base-patch32-slim.json +142 -0
  101. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/mic-musicgen-melody-slim.bfloat16.json +304 -0
  102. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/mic-musicgen-melody-slim.eager.json +304 -0
  103. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/mic-musicgen-melody-slim.json +304 -0
  104. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/musicgen-melody.bfloat16.json +304 -0
  105. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/musicgen-melody.eager.json +304 -0
  106. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-arm64/musicgen-melody.json +304 -0
  107. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-x86_64/mic-musicgen-melody-slim.eager.json +304 -0
  108. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-x86_64/mic-musicgen-melody-slim.json +304 -0
  109. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-x86_64/musicgen-melody.eager.json +304 -0
  110. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cpu-x86_64/musicgen-melody.json +304 -0
  111. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/mic-musicgen-melody-slim.bfloat16.json +308 -0
  112. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/mic-musicgen-melody-slim.eager.json +304 -0
  113. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/mic-musicgen-melody-slim.json +308 -0
  114. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/musicgen-melody.bfloat16.json +308 -0
  115. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/musicgen-melody.eager.json +304 -0
  116. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/MusicgenMelody/cuda/musicgen-melody.json +308 -0
  117. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-1.7B.eager.json +91 -0
  118. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-1.7B.json +91 -0
  119. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-135M.eager.json +91 -0
  120. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-135M.json +91 -0
  121. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-360M.eager.json +91 -0
  122. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/SmolLM-360M.json +91 -0
  123. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/mic-SmolLM-1.7B-slim.eager.json +83 -0
  124. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/mic-SmolLM-1.7B-slim.json +83 -0
  125. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/mic-SmolLM-slim.eager.json +109 -0
  126. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-arm64/mic-SmolLM-slim.json +109 -0
  127. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-1.7B.eager.json +108 -0
  128. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-1.7B.json +108 -0
  129. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-135M.eager.json +109 -0
  130. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-135M.json +109 -0
  131. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-360M.eager.json +109 -0
  132. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/SmolLM-360M.json +109 -0
  133. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/mic-SmolLM-1.7B-slim.eager.json +101 -0
  134. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/mic-SmolLM-1.7B-slim.json +101 -0
  135. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/mic-SmolLM-slim.eager.json +109 -0
  136. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64/mic-SmolLM-slim.json +109 -0
  137. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/SmolLM-135M.eager.json +109 -0
  138. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/SmolLM-135M.json +109 -0
  139. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/SmolLM-360M.eager.json +109 -0
  140. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/SmolLM-360M.json +109 -0
  141. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/mic-SmolLM-slim.eager.json +109 -0
  142. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cpu-x86_64-bf16/mic-SmolLM-slim.json +109 -0
  143. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-1.7B.bfloat16.json +109 -0
  144. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-1.7B.eager.json +109 -0
  145. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-1.7B.json +109 -0
  146. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-135M.bfloat16.json +109 -0
  147. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-135M.eager.json +109 -0
  148. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-135M.json +109 -0
  149. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-360M.bfloat16.json +109 -0
  150. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-360M.eager.json +109 -0
  151. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/SmolLM-360M.json +109 -0
  152. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-1.7B-slim.bfloat16.json +101 -0
  153. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-1.7B-slim.eager.json +101 -0
  154. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-1.7B-slim.json +101 -0
  155. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-slim.bfloat16.json +109 -0
  156. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-slim.eager.json +109 -0
  157. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/SmolLM/cuda/mic-SmolLM-slim.json +109 -0
  158. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/mic-t5-small-slim.eager.json +160 -0
  159. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/mic-t5-small-slim.json +160 -0
  160. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/mic-umt5-small-slim.eager.json +160 -0
  161. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/mic-umt5-small-slim.json +160 -0
  162. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/t5-small.eager.json +156 -0
  163. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-arm64/t5-small.json +156 -0
  164. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/mic-t5-small-slim.eager.json +161 -0
  165. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/mic-t5-small-slim.json +161 -0
  166. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/mic-umt5-small-slim.eager.json +161 -0
  167. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/mic-umt5-small-slim.json +161 -0
  168. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/t5-small.eager.json +157 -0
  169. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cpu-x86_64/t5-small.json +157 -0
  170. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-t5-small-slim.bfloat16.json +165 -0
  171. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-t5-small-slim.eager.json +161 -0
  172. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-t5-small-slim.json +165 -0
  173. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-umt5-small-slim.bfloat16.json +165 -0
  174. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-umt5-small-slim.eager.json +161 -0
  175. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/mic-umt5-small-slim.json +165 -0
  176. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/t5-small.bfloat16.json +161 -0
  177. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/t5-small.eager.json +157 -0
  178. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/T5/cuda/t5-small.json +161 -0
  179. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-arm64/mic-wav2vec2-base-960h-slim.eager.json +6944 -0
  180. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-arm64/mic-wav2vec2-base-960h-slim.json +6944 -0
  181. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-arm64/wav2vec2-base-960h.eager.json +6944 -0
  182. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-arm64/wav2vec2-base-960h.json +6944 -0
  183. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-x86_64/mic-wav2vec2-base-960h-slim.eager.json +6945 -0
  184. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-x86_64/mic-wav2vec2-base-960h-slim.json +6945 -0
  185. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-x86_64/wav2vec2-base-960h.eager.json +6945 -0
  186. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cpu-x86_64/wav2vec2-base-960h.json +6945 -0
  187. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/mic-wav2vec2-base-960h-slim.bfloat16.json +6945 -0
  188. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/mic-wav2vec2-base-960h-slim.eager.json +6945 -0
  189. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/mic-wav2vec2-base-960h-slim.json +6945 -0
  190. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/wav2vec2-base-960h.bfloat16.json +6945 -0
  191. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/wav2vec2-base-960h.eager.json +6945 -0
  192. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Wav2Vec2/cuda/wav2vec2-base-960h.json +6945 -0
  193. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-arm64/mic-whisper-tiny-slim.eager.json +228 -0
  194. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-arm64/mic-whisper-tiny-slim.json +228 -0
  195. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-arm64/whisper-tiny.eager.json +240 -0
  196. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-arm64/whisper-tiny.json +240 -0
  197. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-x86_64/mic-whisper-tiny-slim.eager.json +228 -0
  198. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-x86_64/mic-whisper-tiny-slim.json +228 -0
  199. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-x86_64/whisper-tiny.eager.json +240 -0
  200. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cpu-x86_64/whisper-tiny.json +240 -0
  201. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/mic-whisper-tiny-slim.bfloat16.json +228 -0
  202. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/mic-whisper-tiny-slim.eager.json +228 -0
  203. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/mic-whisper-tiny-slim.json +228 -0
  204. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/whisper-tiny.bfloat16.json +240 -0
  205. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/whisper-tiny.eager.json +240 -0
  206. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/Whisper/cuda/whisper-tiny.json +240 -0
  207. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cpu-arm64/whisper-tiny.eager.json +105 -0
  208. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cpu-arm64/whisper-tiny.json +105 -0
  209. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cpu-x86_64/whisper-tiny.eager.json +105 -0
  210. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cpu-x86_64/whisper-tiny.json +105 -0
  211. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cuda/whisper-tiny.bfloat16.json +105 -0
  212. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cuda/whisper-tiny.eager.json +105 -0
  213. transformers_mic-0.1.0/example/transformers/tests/contracts/expectations/WhisperSpeech/cuda/whisper-tiny.json +105 -0
  214. transformers_mic-0.1.0/example/transformers/tests/contracts/fleet.lock +185 -0
  215. transformers_mic-0.1.0/experiments/layer_patterns.py +236 -0
  216. transformers_mic-0.1.0/experiments/sweep.py +727 -0
  217. transformers_mic-0.1.0/pyproject.toml +49 -0
  218. transformers_mic-0.1.0/setup.cfg +4 -0
  219. transformers_mic-0.1.0/setup.py +50 -0
  220. transformers_mic-0.1.0/src/transformers_mic/__init__.py +6 -0
  221. transformers_mic-0.1.0/src/transformers_mic/__main__.py +3 -0
  222. transformers_mic-0.1.0/src/transformers_mic/_version.py +125 -0
  223. transformers_mic-0.1.0/src/transformers_mic/automation.py +974 -0
  224. transformers_mic-0.1.0/src/transformers_mic/backend.py +160 -0
  225. transformers_mic-0.1.0/src/transformers_mic/baseline_worker.py +520 -0
  226. transformers_mic-0.1.0/src/transformers_mic/baselines.py +625 -0
  227. transformers_mic-0.1.0/src/transformers_mic/batch.py +221 -0
  228. transformers_mic-0.1.0/src/transformers_mic/cli.py +637 -0
  229. transformers_mic-0.1.0/src/transformers_mic/cloud_inputs.py +48 -0
  230. transformers_mic-0.1.0/src/transformers_mic/cloud_progress.py +258 -0
  231. transformers_mic-0.1.0/src/transformers_mic/commands.py +1481 -0
  232. transformers_mic-0.1.0/src/transformers_mic/consolidation.json +1055 -0
  233. transformers_mic-0.1.0/src/transformers_mic/contract_repair.py +317 -0
  234. transformers_mic-0.1.0/src/transformers_mic/dashboard_auth.py +203 -0
  235. transformers_mic-0.1.0/src/transformers_mic/fleet.py +261 -0
  236. transformers_mic-0.1.0/src/transformers_mic/github_baselines.py +447 -0
  237. transformers_mic-0.1.0/src/transformers_mic/history.py +62 -0
  238. transformers_mic-0.1.0/src/transformers_mic/hub.py +106 -0
  239. transformers_mic-0.1.0/src/transformers_mic/inspection.py +317 -0
  240. transformers_mic-0.1.0/src/transformers_mic/interaction.py +212 -0
  241. transformers_mic-0.1.0/src/transformers_mic/model_baselines.py +274 -0
  242. transformers_mic-0.1.0/src/transformers_mic/planner.py +334 -0
  243. transformers_mic-0.1.0/src/transformers_mic/policy.py +46 -0
  244. transformers_mic-0.1.0/src/transformers_mic/references.py +106 -0
  245. transformers_mic-0.1.0/src/transformers_mic/resources.py +33 -0
  246. transformers_mic-0.1.0/src/transformers_mic/shrink_view.py +750 -0
  247. transformers_mic-0.1.0/src/transformers_mic/terminal.py +206 -0
  248. transformers_mic-0.1.0/src/transformers_mic/workspace.py +286 -0
  249. transformers_mic-0.1.0/src/transformers_mic.egg-info/PKG-INFO +101 -0
  250. transformers_mic-0.1.0/src/transformers_mic.egg-info/SOURCES.txt +269 -0
  251. transformers_mic-0.1.0/src/transformers_mic.egg-info/dependency_links.txt +1 -0
  252. transformers_mic-0.1.0/src/transformers_mic.egg-info/entry_points.txt +3 -0
  253. transformers_mic-0.1.0/src/transformers_mic.egg-info/requires.txt +19 -0
  254. transformers_mic-0.1.0/src/transformers_mic.egg-info/top_level.txt +1 -0
  255. transformers_mic-0.1.0/tests/test_automation.py +771 -0
  256. transformers_mic-0.1.0/tests/test_baselines.py +811 -0
  257. transformers_mic-0.1.0/tests/test_cloud_test_helper.py +133 -0
  258. transformers_mic-0.1.0/tests/test_contract_repair.py +212 -0
  259. transformers_mic-0.1.0/tests/test_dashboard_auth.py +160 -0
  260. transformers_mic-0.1.0/tests/test_fixture_assets.py +818 -0
  261. transformers_mic-0.1.0/tests/test_fleet_tables.py +171 -0
  262. transformers_mic-0.1.0/tests/test_hidden_artifacts.py +68 -0
  263. transformers_mic-0.1.0/tests/test_install_environment.py +44 -0
  264. transformers_mic-0.1.0/tests/test_interaction.py +151 -0
  265. transformers_mic-0.1.0/tests/test_live_progress.py +239 -0
  266. transformers_mic-0.1.0/tests/test_model_baselines.py +218 -0
  267. transformers_mic-0.1.0/tests/test_package.py +1721 -0
  268. transformers_mic-0.1.0/tests/test_shrink_view.py +79 -0
  269. transformers_mic-0.1.0/tests/test_target_renames.py +72 -0
  270. transformers_mic-0.1.0/tests/test_terminal.py +44 -0
  271. transformers_mic-0.1.0/tests/test_version.py +16 -0
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ All notable changes to `transformers-mic` will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project uses
6
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-11-02
9
+
10
+ First release on PyPI. `tmic` is alpha: generated contracts still need code review, and the cloud baseline and
11
+ publication paths are for maintainers of the `huggingface-mic` organization.
12
+
13
+ ### Added
14
+
15
+ - `tmic run`: one command from a real checkpoint to a validated MIC. It drafts or reuses a contract, builds the
16
+ slim fixture, records and reviews baselines, checks every declared variant and, for maintainers, publishes the
17
+ model and updates the fleet. `--local-only` measures on your machine and uploads nothing. Human mode asks in the
18
+ terminal; `--mode agent` speaks a JSON question/answer protocol. Runs resume from `.mic/automation.json`.
19
+ - Step-by-step commands: `create`, `update`, `build`, `record`, `review`, `check`, `status`, `replay`,
20
+ `publish`, `export`, `pin`, `retire` and `batch`.
21
+ - Contract drafting through Hugging Face Inference Providers (default `deepseek-ai/DeepSeek-V4.1-Flash-1017` on
22
+ Together), billed to the `huggingface` organization unless `--bill-to` says otherwise. Drafts that enable
23
+ `trust_remote_code`, import names Transformers does not export, or train on `no_grad` outputs are rejected.
24
+ Bounded contract repair proposes a fix for a failing draft and applies it only after approval.
25
+ - The fixture builder: shrinks the real config while keeping every layer kind the checkpoint builds, copies
26
+ processor files byte for byte, keeps the checkpoint's tensor names and file format, keeps sources of 20M
27
+ parameters or fewer whole, and refuses test checkpoints as sources. Weights are random when they pass the
28
+ input-sensitivity gate and overfit on the contract's batch otherwise.
29
+ - `tmic shrink`: a page comparing the fixture's layer stacks, parameters and config with its checkpoint.
30
+ - Baselines per platform (`cpu-arm64`, `cpu-x86_64`, `cpu-x86_64-bf16`, CUDA) and variant. `review --approve`
31
+ accepts only new and unchanged values; changed values need a person.
32
+ - The fleet as CSV tables in the `huggingface-mic/transformers-fleet` dataset, converted to and from the JSON
33
+ lock the runners read. Transformers pins a dataset commit in `tests/contracts.lock`.
34
+ - Cloud baseline collections on CPU and CUDA runners (`tmic baselines`), through the dashboard or directly
35
+ through GitHub Actions.
36
+ - `tmic auth` for the Transformers CI dashboard.
@@ -0,0 +1,203 @@
1
+ Copyright 2018- The Hugging Face team. All rights reserved.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "[]"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright [yyyy] [name of copyright owner]
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
@@ -0,0 +1,12 @@
1
+ include setup.py
2
+ include example/*.py
3
+ recursive-include example/schemas *.json
4
+ recursive-include example/hub integration.json usage.md README.md build.json *.flac *.js package.json package-lock.json
5
+ include example/hub/WhisperSpeech-integration/audio/*.json
6
+ include example/transformers/tests/contracts/fleet.lock
7
+ recursive-include example/transformers/tests/contracts/expectations *.json
8
+ include experiments/sweep.py experiments/layer_patterns.py
9
+ include docs/cli.md
10
+ prune example/hub/SmolLM-integration/integrations/transformers.js/node_modules
11
+ global-exclude *.candidate.json *.pyc
12
+ include CHANGELOG.md
@@ -0,0 +1,101 @@
1
+ Metadata-Version: 2.4
2
+ Name: transformers-mic
3
+ Version: 0.1.0
4
+ Summary: Build and validate model integration contracts and slim fixtures for Transformers
5
+ Author-email: The Hugging Face Team <transformers@huggingface.co>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/huggingface/transformers-mic
8
+ Project-URL: Repository, https://github.com/huggingface/transformers-mic
9
+ Project-URL: Changelog, https://github.com/huggingface/transformers-mic/blob/main/CHANGELOG.md
10
+ Keywords: transformers,huggingface,testing,ci,model-integration
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: huggingface-hub>=1.32
23
+ Requires-Dist: jsonschema>=4.23
24
+ Requires-Dist: filelock>=3
25
+ Provides-Extra: runtime
26
+ Requires-Dist: transformers>=5; extra == "runtime"
27
+ Requires-Dist: torch>=2.11; extra == "runtime"
28
+ Requires-Dist: numpy; extra == "runtime"
29
+ Requires-Dist: pillow; extra == "runtime"
30
+ Requires-Dist: soundfile; extra == "runtime"
31
+ Requires-Dist: librosa; extra == "runtime"
32
+ Requires-Dist: scipy; extra == "runtime"
33
+ Requires-Dist: safetensors; extra == "runtime"
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest>=8; extra == "dev"
36
+ Requires-Dist: build; extra == "dev"
37
+ Requires-Dist: twine; extra == "dev"
38
+ Requires-Dist: sentencepiece; extra == "dev"
39
+ Dynamic: license-file
40
+
41
+ # transformers-mic
42
+
43
+ ![logo](https://raw.githubusercontent.com/huggingface/transformers-mic/main/docs/mic-logo.png)
44
+
45
+ A **Model Integration Contract (MIC)** is a proposed standard: next to a Hub
46
+ model, an executable check that it works in a framework, run by that
47
+ framework's CI. Each MIC has three parts:
48
+
49
+ - a **fixture**: a shrunk model built from the real checkpoint's config, with its
50
+ tokenizer and processor files copied unchanged
51
+ - a **usage path**: runnable Markdown that does what users do, such as generating
52
+ text or running a training step
53
+ - **baselines**: the outputs that usage produced, reviewed by a human
54
+
55
+ Fixtures run on framework PRs (CPU, seconds); real checkpoints run after merge,
56
+ nightly and before release. **A slim pass is a fast regression signal, not a pass
57
+ for the real model.**
58
+
59
+ This repository holds the `tmic` CLI, the fixture builder and the runner. MICs are
60
+ published in [`huggingface-mic`](https://huggingface.co/huggingface-mic) and pinned
61
+ by the [fleet dataset](https://huggingface.co/datasets/huggingface-mic/transformers-fleet);
62
+ coverage is in the [coverage space](https://huggingface.co/spaces/huggingface-mic/mic-coverage).
63
+ In Transformers, the contracts job runs on PRs and reports failures without
64
+ blocking ([status](docs/evidence.md#transformers-ci-proof)).
65
+
66
+ ![A proposed link lets agents discover a model's MIC on the Hub. Transformers checks slim fixtures on PRs and real checkpoints in run-slow or nightly jobs; Transformers.js has its own contract entry point and baseline, with CI triggers still to define.](https://raw.githubusercontent.com/huggingface/transformers-mic/main/docs/assets/mic-overview.svg)
67
+
68
+ ## Try it locally
69
+
70
+ ```sh
71
+ pip install "transformers-mic[runtime] @ git+https://github.com/huggingface/transformers-mic.git" \
72
+ "hf-doc-builder @ git+https://github.com/huggingface/doc-builder.git"
73
+ hf auth login
74
+ tmic run org/model --local-only --fixtures-only --no-history --bill-to ''
75
+ ```
76
+
77
+ This drafts a contract for `org/model`, builds its fixture and records baselines
78
+ on your machine, asks you to review each step, and uploads nothing. See
79
+ [Try it locally](docs/cli.md#try-it-locally) for the flags. `tmic run --mode agent`
80
+ gives agents a JSON protocol for the same questions.
81
+
82
+ Cloud baselines and publication are for maintainers: [CLI guide](docs/cli.md),
83
+ [cloud baselines](docs/cloud-baselines.md) (dashboard activation is still pending).
84
+
85
+ ## Documents
86
+
87
+ Start with:
88
+
89
+ - [CLI guide](docs/cli.md): `tmic`, from a checkpoint to a published MIC.
90
+ - [The standard](docs/standard.md): why MICs, the repository layout, manifest, checks and pins.
91
+ - [Small fixtures](docs/fixtures.md): the shrink recipe and the weight experiments.
92
+ - [Evidence](docs/evidence.md): replays, backfills, stability and cost.
93
+ - [Pilot](docs/pilot.md): the proposed adoption pilot and the results so far.
94
+
95
+ Details: [full example](example/README.md), [technical design](docs/design.md),
96
+ [Hub layout](docs/hub-organization.md), [slim models in Transformers CI](docs/slim-models-in-transformers-ci.md),
97
+ [Transformers CI proof](docs/transformers-ci-proof.md), [improving contracts](docs/improving-contracts.md),
98
+ [smoke vs assertions](docs/smoke-vs-assertions.md), [problems and open questions](docs/problems-and-opened-questions.md),
99
+ [cloud baselines](docs/cloud-baselines.md), [end-to-end tests](docs/end-to-end-tests.md),
100
+ [agent walkthroughs](docs/agent-walkthrough/README.md), [maintainer slides](docs/slides/index.html),
101
+ [changelog](CHANGELOG.md), [releasing](docs/release.md).
@@ -0,0 +1,61 @@
1
+ # transformers-mic
2
+
3
+ ![logo](https://raw.githubusercontent.com/huggingface/transformers-mic/main/docs/mic-logo.png)
4
+
5
+ A **Model Integration Contract (MIC)** is a proposed standard: next to a Hub
6
+ model, an executable check that it works in a framework, run by that
7
+ framework's CI. Each MIC has three parts:
8
+
9
+ - a **fixture**: a shrunk model built from the real checkpoint's config, with its
10
+ tokenizer and processor files copied unchanged
11
+ - a **usage path**: runnable Markdown that does what users do, such as generating
12
+ text or running a training step
13
+ - **baselines**: the outputs that usage produced, reviewed by a human
14
+
15
+ Fixtures run on framework PRs (CPU, seconds); real checkpoints run after merge,
16
+ nightly and before release. **A slim pass is a fast regression signal, not a pass
17
+ for the real model.**
18
+
19
+ This repository holds the `tmic` CLI, the fixture builder and the runner. MICs are
20
+ published in [`huggingface-mic`](https://huggingface.co/huggingface-mic) and pinned
21
+ by the [fleet dataset](https://huggingface.co/datasets/huggingface-mic/transformers-fleet);
22
+ coverage is in the [coverage space](https://huggingface.co/spaces/huggingface-mic/mic-coverage).
23
+ In Transformers, the contracts job runs on PRs and reports failures without
24
+ blocking ([status](docs/evidence.md#transformers-ci-proof)).
25
+
26
+ ![A proposed link lets agents discover a model's MIC on the Hub. Transformers checks slim fixtures on PRs and real checkpoints in run-slow or nightly jobs; Transformers.js has its own contract entry point and baseline, with CI triggers still to define.](https://raw.githubusercontent.com/huggingface/transformers-mic/main/docs/assets/mic-overview.svg)
27
+
28
+ ## Try it locally
29
+
30
+ ```sh
31
+ pip install "transformers-mic[runtime] @ git+https://github.com/huggingface/transformers-mic.git" \
32
+ "hf-doc-builder @ git+https://github.com/huggingface/doc-builder.git"
33
+ hf auth login
34
+ tmic run org/model --local-only --fixtures-only --no-history --bill-to ''
35
+ ```
36
+
37
+ This drafts a contract for `org/model`, builds its fixture and records baselines
38
+ on your machine, asks you to review each step, and uploads nothing. See
39
+ [Try it locally](docs/cli.md#try-it-locally) for the flags. `tmic run --mode agent`
40
+ gives agents a JSON protocol for the same questions.
41
+
42
+ Cloud baselines and publication are for maintainers: [CLI guide](docs/cli.md),
43
+ [cloud baselines](docs/cloud-baselines.md) (dashboard activation is still pending).
44
+
45
+ ## Documents
46
+
47
+ Start with:
48
+
49
+ - [CLI guide](docs/cli.md): `tmic`, from a checkpoint to a published MIC.
50
+ - [The standard](docs/standard.md): why MICs, the repository layout, manifest, checks and pins.
51
+ - [Small fixtures](docs/fixtures.md): the shrink recipe and the weight experiments.
52
+ - [Evidence](docs/evidence.md): replays, backfills, stability and cost.
53
+ - [Pilot](docs/pilot.md): the proposed adoption pilot and the results so far.
54
+
55
+ Details: [full example](example/README.md), [technical design](docs/design.md),
56
+ [Hub layout](docs/hub-organization.md), [slim models in Transformers CI](docs/slim-models-in-transformers-ci.md),
57
+ [Transformers CI proof](docs/transformers-ci-proof.md), [improving contracts](docs/improving-contracts.md),
58
+ [smoke vs assertions](docs/smoke-vs-assertions.md), [problems and open questions](docs/problems-and-opened-questions.md),
59
+ [cloud baselines](docs/cloud-baselines.md), [end-to-end tests](docs/end-to-end-tests.md),
60
+ [agent walkthroughs](docs/agent-walkthrough/README.md), [maintainer slides](docs/slides/index.html),
61
+ [changelog](CHANGELOG.md), [releasing](docs/release.md).