Consolidate MIC usage, slim weights and reviewed framework expectations
Browse files- .gitattributes +2 -2
- .mic-repo.json +17 -0
- README.md +9 -13
- docs/source-cards/fixture.md +19 -0
- docs/source-cards/integration.md +28 -0
- integration.json +103 -0
- integrations/transformers/expectations/cpu-arm64/mic-t5-small-slim.eager.json +160 -0
- integrations/transformers/expectations/cpu-arm64/mic-t5-small-slim.json +160 -0
- integrations/transformers/expectations/cpu-arm64/mic-umt5-small-slim.eager.json +160 -0
- integrations/transformers/expectations/cpu-arm64/mic-umt5-small-slim.json +160 -0
- integrations/transformers/expectations/cpu-arm64/t5-small.eager.json +156 -0
- integrations/transformers/expectations/cpu-arm64/t5-small.json +156 -0
- integrations/transformers/expectations/cpu-x86_64/mic-t5-small-slim.eager.json +161 -0
- integrations/transformers/expectations/cpu-x86_64/mic-t5-small-slim.json +161 -0
- integrations/transformers/expectations/cpu-x86_64/mic-umt5-small-slim.eager.json +161 -0
- integrations/transformers/expectations/cpu-x86_64/mic-umt5-small-slim.json +161 -0
- integrations/transformers/expectations/cpu-x86_64/t5-small.eager.json +157 -0
- integrations/transformers/expectations/cpu-x86_64/t5-small.json +157 -0
- integrations/transformers/expectations/cuda/mic-t5-small-slim.bfloat16.json +165 -0
- integrations/transformers/expectations/cuda/mic-t5-small-slim.eager.json +161 -0
- integrations/transformers/expectations/cuda/mic-t5-small-slim.json +165 -0
- integrations/transformers/expectations/cuda/mic-umt5-small-slim.bfloat16.json +165 -0
- integrations/transformers/expectations/cuda/mic-umt5-small-slim.eager.json +161 -0
- integrations/transformers/expectations/cuda/mic-umt5-small-slim.json +165 -0
- integrations/transformers/expectations/cuda/t5-small.bfloat16.json +161 -0
- integrations/transformers/expectations/cuda/t5-small.eager.json +157 -0
- integrations/transformers/expectations/cuda/t5-small.json +161 -0
- integrations/transformers/usage.md +80 -0
.gitattributes
CHANGED
|
@@ -23,9 +23,8 @@
|
|
| 23 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 29 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.wasm filter=lfs diff=lfs merge=lfs -text
|
|
@@ -33,4 +32,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 23 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 26 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 29 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.wasm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
.mic-repo.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format": "mic-umbrella-v1",
|
| 3 |
+
"contract_files": [
|
| 4 |
+
"integration.json",
|
| 5 |
+
"integrations/transformers/usage.md"
|
| 6 |
+
],
|
| 7 |
+
"sources": {
|
| 8 |
+
"integration": {
|
| 9 |
+
"repo": "hf-internal-testing/T5-integration",
|
| 10 |
+
"revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf"
|
| 11 |
+
},
|
| 12 |
+
"fixture": {
|
| 13 |
+
"repo": "huggingface-mic/mic-umt5-small-slim",
|
| 14 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3"
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
README.md
CHANGED
|
@@ -1,19 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
tags:
|
| 3 |
-
|
| 4 |
-
- test-artifact
|
| 5 |
-
base_model: google/umt5-small
|
| 6 |
---
|
| 7 |
|
| 8 |
-
#
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
- **Same tensor names as the real checkpoint.** The real checkpoint has every parameter, and so does the fixture.
|
| 17 |
-
- **Finite in float32, bfloat16, and float16** (forward, loss, gradients).
|
| 18 |
|
| 19 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
tags: [mic, test-artifact]
|
| 3 |
+
base_model: google-t5/t5-small
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
+
# umt5-small-mic
|
| 7 |
|
| 8 |
+
Slim model weights and their Model Integration Contract in one repository.
|
| 9 |
|
| 10 |
+
- [Contract manifest](integration.json)
|
| 11 |
+
- [Transformers usage](integrations/transformers/usage.md)
|
| 12 |
+
- [Transformers expectations](integrations/transformers/expectations)
|
| 13 |
+
- [Fixture provenance](build.json)
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
Reviewed expectations retain their original values and provenance. This slim model is a test artifact.
|
docs/source-cards/fixture.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- mic
|
| 4 |
+
- test-artifact
|
| 5 |
+
base_model: google/umt5-small
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Slim fixture: proto-umt5-small-slim
|
| 9 |
+
|
| 10 |
+
A 16.6M-parameter fixture for the [T5 MIC](https://huggingface.co/hf-internal-testing/T5-integration), covering [`google/umt5-small`](https://huggingface.co/google/umt5-small). It is a test artifact, not a usable model, tagged `test-artifact` to keep it out of candidate-model search.
|
| 11 |
+
|
| 12 |
+
- **Fixture key `d2f1e2c7f664`.** It covers every checkpoint whose processor files are byte-identical and whose config matches after shrinking.
|
| 13 |
+
- **Same architecture, smaller config:** `UMT5ForConditionalGeneration`, shrunk by the generic rule in [`sweep.py`](https://github.com/huggingface/model-integration-contracts/blob/main/experiments/sweep.py) (num_layers 2, num_decoder_layers 2).
|
| 14 |
+
- **Processor files copied byte for byte** from `google/umt5-small`: `generation_config.json`, `special_tokens_map.json`, `spiece.model`, `tokenizer.json`, `tokenizer_config.json`.
|
| 15 |
+
- **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: `attention_mask:all_ones`, 3.09), so no training was needed.
|
| 16 |
+
- **Same tensor names as the real checkpoint.** The real checkpoint has every parameter, and so does the fixture.
|
| 17 |
+
- **Finite in float32, bfloat16, and float16** (forward, loss, gradients).
|
| 18 |
+
|
| 19 |
+
Built by [`build_fixtures.py`](https://github.com/huggingface/model-integration-contracts/blob/main/example/build_fixtures.py); [`build.json`](build.json) records the pinned sources, gate results, and file hashes. The source repository commits only `README.md` and `build.json`; rebuild the other files with `python example/build_fixtures.py --fixture proto-umt5-small-slim`.
|
docs/source-cards/integration.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- mic
|
| 4 |
+
- test-artifact
|
| 5 |
+
base_model:
|
| 6 |
+
- google-t5/t5-small
|
| 7 |
+
- google/umt5-small
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# MIC: T5 text-to-text generation
|
| 11 |
+
|
| 12 |
+
Model integration contract (MIC) for one usage path, across the checkpoints that share it. This repository holds the contract code and the manifest; each framework keeps its own expected results and pins this repository by revision. The model repositories are unchanged. It is a test artifact, not a model: exclude it from model search.
|
| 13 |
+
|
| 14 |
+
Usage path: AutoTokenizer + AutoModelForSeq2SeqLM.generate, batched.
|
| 15 |
+
|
| 16 |
+
| File | What it is |
|
| 17 |
+
| --- | --- |
|
| 18 |
+
| [`integration.json`](integration.json) | Manifest: checkpoints, which fixture covers each, frameworks, entry points, variants, unsupported targets, comparison rules |
|
| 19 |
+
| [`integrations/transformers/usage.md`](integrations/transformers/usage.md) | Transformers contract, written as doc-builder runnable markdown: the same blocks are documentation and test |
|
| 20 |
+
|
| 21 |
+
| Checkpoint | Slim fixture (every framework PR) |
|
| 22 |
+
| --- | --- |
|
| 23 |
+
| [`google-t5/t5-small`](https://huggingface.co/google-t5/t5-small) | [`hf-internal-testing/mic-t5-small-slim`](https://huggingface.co/hf-internal-testing/mic-t5-small-slim) |
|
| 24 |
+
| [`google/umt5-small`](https://huggingface.co/google/umt5-small) | [`hf-internal-testing/mic-umt5-small-slim`](https://huggingface.co/hf-internal-testing/mic-umt5-small-slim) (real checkpoint unsupported: config.json has no model_type, so AutoModelForSeq2SeqLM cannot load it; the fixture (saved with model_type umt5) covers the UMT5 code path) |
|
| 25 |
+
|
| 26 |
+
Checked outputs: `generated_tokens`, `generated_text`, `label_logprobs`, `decoded_roundtrip`, `training.loss`, `training.gradients`, `training.updated`.
|
| 27 |
+
|
| 28 |
+
A fixture pass and a real-checkpoint pass have different scopes; either establishes agreement on fixed inputs and a recorded runtime, not correctness on arbitrary inputs.
|
integration.json
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mic": "0.3",
|
| 3 |
+
"name": "T5 text-to-text generation",
|
| 4 |
+
"usage": "AutoTokenizer + AutoModelForSeq2SeqLM.generate, batched",
|
| 5 |
+
"architecture": "T5ForConditionalGeneration, UMT5ForConditionalGeneration",
|
| 6 |
+
"checkpoints": {
|
| 7 |
+
"google-t5/t5-small": {
|
| 8 |
+
"fixture": "huggingface-mic/t5-small-mic"
|
| 9 |
+
},
|
| 10 |
+
"google/umt5-small": {
|
| 11 |
+
"fixture": "huggingface-mic/umt5-small-mic"
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
"fixtures": {
|
| 15 |
+
"huggingface-mic/t5-small-mic": {
|
| 16 |
+
"built_from": "google-t5/t5-small",
|
| 17 |
+
"covers": [
|
| 18 |
+
"google-t5/t5-small"
|
| 19 |
+
],
|
| 20 |
+
"build": {
|
| 21 |
+
"seed": 17
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
"huggingface-mic/umt5-small-mic": {
|
| 25 |
+
"built_from": "google/umt5-small",
|
| 26 |
+
"covers": [
|
| 27 |
+
"google/umt5-small"
|
| 28 |
+
],
|
| 29 |
+
"build": {
|
| 30 |
+
"seed": 17,
|
| 31 |
+
"model_class": "UMT5ForConditionalGeneration"
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
},
|
| 35 |
+
"integrations": {
|
| 36 |
+
"transformers": {
|
| 37 |
+
"entry_point": "integrations/transformers/usage.md",
|
| 38 |
+
"format": "runnable-markdown",
|
| 39 |
+
"requires": [
|
| 40 |
+
"transformers>=5",
|
| 41 |
+
"torch",
|
| 42 |
+
"sentencepiece"
|
| 43 |
+
],
|
| 44 |
+
"targets": [
|
| 45 |
+
"fixtures",
|
| 46 |
+
"checkpoints"
|
| 47 |
+
],
|
| 48 |
+
"unsupported": {
|
| 49 |
+
"google/umt5-small": "config.json has no model_type, so AutoModelForSeq2SeqLM cannot load it; the fixture (saved with model_type umt5) covers the UMT5 code path"
|
| 50 |
+
},
|
| 51 |
+
"variants": {
|
| 52 |
+
"default": {},
|
| 53 |
+
"eager": {
|
| 54 |
+
"attn_implementation": "eager"
|
| 55 |
+
},
|
| 56 |
+
"bfloat16": {
|
| 57 |
+
"dtype": "bfloat16"
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
"training": true,
|
| 61 |
+
"resources": {
|
| 62 |
+
"fixture": {
|
| 63 |
+
"memory_gb": 1,
|
| 64 |
+
"download_mb": 150
|
| 65 |
+
},
|
| 66 |
+
"google-t5/t5-small": {
|
| 67 |
+
"memory_gb": 1,
|
| 68 |
+
"download_mb": 242
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"outputs": {
|
| 74 |
+
"runtime": {
|
| 75 |
+
"compare": "exact"
|
| 76 |
+
},
|
| 77 |
+
"generated_tokens": {
|
| 78 |
+
"compare": "exact"
|
| 79 |
+
},
|
| 80 |
+
"generated_text": {
|
| 81 |
+
"compare": "exact"
|
| 82 |
+
},
|
| 83 |
+
"label_logprobs": {
|
| 84 |
+
"compare": "allclose",
|
| 85 |
+
"atol": 0.0001,
|
| 86 |
+
"rtol": 0.0001
|
| 87 |
+
},
|
| 88 |
+
"decoded_roundtrip": {
|
| 89 |
+
"compare": "exact"
|
| 90 |
+
},
|
| 91 |
+
"training.loss": {
|
| 92 |
+
"compare": "allclose",
|
| 93 |
+
"atol": 0.0001,
|
| 94 |
+
"rtol": 0.0001
|
| 95 |
+
},
|
| 96 |
+
"training.gradients": {
|
| 97 |
+
"compare": "all_true"
|
| 98 |
+
},
|
| 99 |
+
"training.updated": {
|
| 100 |
+
"compare": "true"
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
}
|
integrations/transformers/expectations/cpu-arm64/mic-t5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-t5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "0a9ae9de5891182e5bce5afef05dbf4bdb8e7bae",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.19,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "eager"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
23952,
|
| 45 |
+
23952,
|
| 46 |
+
23952,
|
| 47 |
+
23952,
|
| 48 |
+
23952,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
18473,
|
| 60 |
+
18473,
|
| 61 |
+
18473,
|
| 62 |
+
18473,
|
| 63 |
+
18473,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
0,
|
| 74 |
+
23952,
|
| 75 |
+
23952,
|
| 76 |
+
23952,
|
| 77 |
+
23952,
|
| 78 |
+
23952,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
0,
|
| 89 |
+
23952,
|
| 90 |
+
23952,
|
| 91 |
+
23952,
|
| 92 |
+
23952,
|
| 93 |
+
23952,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"generated_text": [
|
| 104 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 105 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 106 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 107 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 108 |
+
],
|
| 109 |
+
"label_logprobs": [
|
| 110 |
+
[
|
| 111 |
+
-10.141915321350098,
|
| 112 |
+
-9.734257698059082,
|
| 113 |
+
-12.010519027709961,
|
| 114 |
+
-10.778444290161133,
|
| 115 |
+
-11.155024528503418,
|
| 116 |
+
-11.17411994934082,
|
| 117 |
+
0.0
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
-10.168418884277344,
|
| 121 |
+
-11.666159629821777,
|
| 122 |
+
-11.404787063598633,
|
| 123 |
+
-9.37137508392334,
|
| 124 |
+
-11.850147247314453,
|
| 125 |
+
-11.123132705688477,
|
| 126 |
+
-11.6961669921875
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
-10.990325927734375,
|
| 130 |
+
-10.651445388793945,
|
| 131 |
+
-11.902166366577148,
|
| 132 |
+
-11.009994506835938,
|
| 133 |
+
-10.287400245666504,
|
| 134 |
+
-10.048741340637207,
|
| 135 |
+
0.0
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
-10.572176933288574,
|
| 139 |
+
-10.656261444091797,
|
| 140 |
+
-10.012959480285645,
|
| 141 |
+
0.0,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0
|
| 145 |
+
]
|
| 146 |
+
],
|
| 147 |
+
"decoded_roundtrip": [
|
| 148 |
+
"Yes, it is.",
|
| 149 |
+
"Hello, world! How are you?"
|
| 150 |
+
],
|
| 151 |
+
"training": {
|
| 152 |
+
"loss": 10.951408386230469,
|
| 153 |
+
"gradients": {
|
| 154 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 155 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 156 |
+
},
|
| 157 |
+
"updated": true
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
}
|
integrations/transformers/expectations/cpu-arm64/mic-t5-small-slim.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "mic-t5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "0a9ae9de5891182e5bce5afef05dbf4bdb8e7bae",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.19,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "sdpa"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
23952,
|
| 45 |
+
23952,
|
| 46 |
+
23952,
|
| 47 |
+
23952,
|
| 48 |
+
23952,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
18473,
|
| 60 |
+
18473,
|
| 61 |
+
18473,
|
| 62 |
+
18473,
|
| 63 |
+
18473,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
0,
|
| 74 |
+
23952,
|
| 75 |
+
23952,
|
| 76 |
+
23952,
|
| 77 |
+
23952,
|
| 78 |
+
23952,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
0,
|
| 89 |
+
23952,
|
| 90 |
+
23952,
|
| 91 |
+
23952,
|
| 92 |
+
23952,
|
| 93 |
+
23952,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"generated_text": [
|
| 104 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 105 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 106 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 107 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 108 |
+
],
|
| 109 |
+
"label_logprobs": [
|
| 110 |
+
[
|
| 111 |
+
-10.141914367675781,
|
| 112 |
+
-9.734256744384766,
|
| 113 |
+
-12.010519027709961,
|
| 114 |
+
-10.778444290161133,
|
| 115 |
+
-11.155023574829102,
|
| 116 |
+
-11.17411994934082,
|
| 117 |
+
0.0
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
-10.168418884277344,
|
| 121 |
+
-11.666159629821777,
|
| 122 |
+
-11.404787063598633,
|
| 123 |
+
-9.37137508392334,
|
| 124 |
+
-11.85014820098877,
|
| 125 |
+
-11.12313175201416,
|
| 126 |
+
-11.696166038513184
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
-10.990325927734375,
|
| 130 |
+
-10.651445388793945,
|
| 131 |
+
-11.902166366577148,
|
| 132 |
+
-11.009994506835938,
|
| 133 |
+
-10.28740119934082,
|
| 134 |
+
-10.048741340637207,
|
| 135 |
+
0.0
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
-10.57217788696289,
|
| 139 |
+
-10.656261444091797,
|
| 140 |
+
-10.012958526611328,
|
| 141 |
+
0.0,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0
|
| 145 |
+
]
|
| 146 |
+
],
|
| 147 |
+
"decoded_roundtrip": [
|
| 148 |
+
"Yes, it is.",
|
| 149 |
+
"Hello, world! How are you?"
|
| 150 |
+
],
|
| 151 |
+
"training": {
|
| 152 |
+
"loss": 10.951408386230469,
|
| 153 |
+
"gradients": {
|
| 154 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 155 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 156 |
+
},
|
| 157 |
+
"updated": true
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
}
|
integrations/transformers/expectations/cpu-arm64/mic-umt5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-umt5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "bcf49ff61123021fec581f72120001f396cb0b59",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.73,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "eager"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
51767,
|
| 45 |
+
51767,
|
| 46 |
+
51767,
|
| 47 |
+
51767,
|
| 48 |
+
51767,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
51767,
|
| 60 |
+
51767,
|
| 61 |
+
51767,
|
| 62 |
+
51767,
|
| 63 |
+
51767,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
0,
|
| 74 |
+
175990,
|
| 75 |
+
175990,
|
| 76 |
+
175990,
|
| 77 |
+
175990,
|
| 78 |
+
175990,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
0,
|
| 89 |
+
159310,
|
| 90 |
+
159310,
|
| 91 |
+
159310,
|
| 92 |
+
159310,
|
| 93 |
+
159310,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"generated_text": [
|
| 104 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 105 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 106 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 107 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 108 |
+
],
|
| 109 |
+
"label_logprobs": [
|
| 110 |
+
[
|
| 111 |
+
-13.114486694335938,
|
| 112 |
+
-12.09228801727295,
|
| 113 |
+
-13.726058959960938,
|
| 114 |
+
-12.221920013427734,
|
| 115 |
+
-12.133298873901367,
|
| 116 |
+
-11.019336700439453,
|
| 117 |
+
0.0
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
-12.420158386230469,
|
| 121 |
+
-12.82443904876709,
|
| 122 |
+
-13.64756965637207,
|
| 123 |
+
-13.477910041809082,
|
| 124 |
+
-12.971185684204102,
|
| 125 |
+
-9.5980224609375,
|
| 126 |
+
-12.954093933105469
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
-12.416688919067383,
|
| 130 |
+
-14.566019058227539,
|
| 131 |
+
-14.671009063720703,
|
| 132 |
+
-12.052459716796875,
|
| 133 |
+
-13.04535961151123,
|
| 134 |
+
-12.434401512145996,
|
| 135 |
+
0.0
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
-12.310737609863281,
|
| 139 |
+
-13.982267379760742,
|
| 140 |
+
-11.187504768371582,
|
| 141 |
+
0.0,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0
|
| 145 |
+
]
|
| 146 |
+
],
|
| 147 |
+
"decoded_roundtrip": [
|
| 148 |
+
"Yes, it is.",
|
| 149 |
+
"Hello, world! How are you?"
|
| 150 |
+
],
|
| 151 |
+
"training": {
|
| 152 |
+
"loss": 12.861258506774902,
|
| 153 |
+
"gradients": {
|
| 154 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 155 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 156 |
+
},
|
| 157 |
+
"updated": true
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
}
|
integrations/transformers/expectations/cpu-arm64/mic-umt5-small-slim.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "mic-umt5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "bcf49ff61123021fec581f72120001f396cb0b59",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.76,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "sdpa"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
51767,
|
| 45 |
+
51767,
|
| 46 |
+
51767,
|
| 47 |
+
51767,
|
| 48 |
+
51767,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
51767,
|
| 60 |
+
51767,
|
| 61 |
+
51767,
|
| 62 |
+
51767,
|
| 63 |
+
51767,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
0,
|
| 74 |
+
175990,
|
| 75 |
+
175990,
|
| 76 |
+
175990,
|
| 77 |
+
175990,
|
| 78 |
+
175990,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990
|
| 86 |
+
],
|
| 87 |
+
[
|
| 88 |
+
0,
|
| 89 |
+
159310,
|
| 90 |
+
159310,
|
| 91 |
+
159310,
|
| 92 |
+
159310,
|
| 93 |
+
159310,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310
|
| 101 |
+
]
|
| 102 |
+
],
|
| 103 |
+
"generated_text": [
|
| 104 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 105 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 106 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 107 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 108 |
+
],
|
| 109 |
+
"label_logprobs": [
|
| 110 |
+
[
|
| 111 |
+
-13.114486694335938,
|
| 112 |
+
-12.09228801727295,
|
| 113 |
+
-13.72606086730957,
|
| 114 |
+
-12.221919059753418,
|
| 115 |
+
-12.13330078125,
|
| 116 |
+
-11.019336700439453,
|
| 117 |
+
0.0
|
| 118 |
+
],
|
| 119 |
+
[
|
| 120 |
+
-12.420158386230469,
|
| 121 |
+
-12.82443904876709,
|
| 122 |
+
-13.647567749023438,
|
| 123 |
+
-13.477910995483398,
|
| 124 |
+
-12.971185684204102,
|
| 125 |
+
-9.5980224609375,
|
| 126 |
+
-12.954094886779785
|
| 127 |
+
],
|
| 128 |
+
[
|
| 129 |
+
-12.416688919067383,
|
| 130 |
+
-14.566019058227539,
|
| 131 |
+
-14.67101001739502,
|
| 132 |
+
-12.052458763122559,
|
| 133 |
+
-13.04535961151123,
|
| 134 |
+
-12.434401512145996,
|
| 135 |
+
0.0
|
| 136 |
+
],
|
| 137 |
+
[
|
| 138 |
+
-12.310737609863281,
|
| 139 |
+
-13.982267379760742,
|
| 140 |
+
-11.187503814697266,
|
| 141 |
+
0.0,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0
|
| 145 |
+
]
|
| 146 |
+
],
|
| 147 |
+
"decoded_roundtrip": [
|
| 148 |
+
"Yes, it is.",
|
| 149 |
+
"Hello, world! How are you?"
|
| 150 |
+
],
|
| 151 |
+
"training": {
|
| 152 |
+
"loss": 12.861258506774902,
|
| 153 |
+
"gradients": {
|
| 154 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 155 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 156 |
+
},
|
| 157 |
+
"updated": true
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
}
|
integrations/transformers/expectations/cpu-arm64/t5-small.eager.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "t5-small",
|
| 8 |
+
"kind": "checkpoint",
|
| 9 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.61,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "eager"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
644,
|
| 45 |
+
4598,
|
| 46 |
+
229,
|
| 47 |
+
19250,
|
| 48 |
+
5,
|
| 49 |
+
1,
|
| 50 |
+
0,
|
| 51 |
+
0,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
0
|
| 55 |
+
],
|
| 56 |
+
[
|
| 57 |
+
0,
|
| 58 |
+
1674,
|
| 59 |
+
3,
|
| 60 |
+
13147,
|
| 61 |
+
15,
|
| 62 |
+
5462,
|
| 63 |
+
19219,
|
| 64 |
+
170,
|
| 65 |
+
110,
|
| 66 |
+
35,
|
| 67 |
+
5,
|
| 68 |
+
1
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
0,
|
| 72 |
+
3488,
|
| 73 |
+
229,
|
| 74 |
+
74,
|
| 75 |
+
26989,
|
| 76 |
+
58,
|
| 77 |
+
1,
|
| 78 |
+
0,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
0,
|
| 82 |
+
0
|
| 83 |
+
],
|
| 84 |
+
[
|
| 85 |
+
0,
|
| 86 |
+
3,
|
| 87 |
+
26114,
|
| 88 |
+
9458,
|
| 89 |
+
55,
|
| 90 |
+
1,
|
| 91 |
+
0,
|
| 92 |
+
0,
|
| 93 |
+
0,
|
| 94 |
+
0,
|
| 95 |
+
0,
|
| 96 |
+
0
|
| 97 |
+
]
|
| 98 |
+
],
|
| 99 |
+
"generated_text": [
|
| 100 |
+
"Das Haus ist wunderbar.",
|
| 101 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 102 |
+
"Wo ist der Bahnhof?",
|
| 103 |
+
"Vielen Dank!"
|
| 104 |
+
],
|
| 105 |
+
"label_logprobs": [
|
| 106 |
+
[
|
| 107 |
+
-0.6655603051185608,
|
| 108 |
+
-0.15085330605506897,
|
| 109 |
+
-0.05506419390439987,
|
| 110 |
+
-0.5601729154586792,
|
| 111 |
+
-0.07579557597637177,
|
| 112 |
+
-0.01796041429042816,
|
| 113 |
+
0.0
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
-0.28016555309295654,
|
| 117 |
+
-2.1064538955688477,
|
| 118 |
+
-0.005221657920628786,
|
| 119 |
+
-0.721506655216217,
|
| 120 |
+
-0.03395659476518631,
|
| 121 |
+
-0.027777034789323807,
|
| 122 |
+
-0.0026439016219228506
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-0.15831904113292694,
|
| 126 |
+
-0.6513417959213257,
|
| 127 |
+
-0.052600838243961334,
|
| 128 |
+
-0.07451363652944565,
|
| 129 |
+
-0.020199192687869072,
|
| 130 |
+
-0.0027004939038306475,
|
| 131 |
+
0.0
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-1.9390535354614258,
|
| 135 |
+
-0.053518570959568024,
|
| 136 |
+
-0.0027209424879401922,
|
| 137 |
+
0.0,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0
|
| 141 |
+
]
|
| 142 |
+
],
|
| 143 |
+
"decoded_roundtrip": [
|
| 144 |
+
"Yes, it is.",
|
| 145 |
+
"Hello, world! How are you?"
|
| 146 |
+
],
|
| 147 |
+
"training": {
|
| 148 |
+
"loss": 0.44009360671043396,
|
| 149 |
+
"gradients": {
|
| 150 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 151 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 152 |
+
},
|
| 153 |
+
"updated": true
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
}
|
integrations/transformers/expectations/cpu-arm64/t5-small.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "unpublished",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "t5-small",
|
| 8 |
+
"kind": "checkpoint",
|
| 9 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.19",
|
| 12 |
+
"transformers": "5.16.0.dev0",
|
| 13 |
+
"torch": "2.11.0",
|
| 14 |
+
"torchvision": "0.26.0",
|
| 15 |
+
"torchaudio": "2.11.0",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"masked-spec-embed-init",
|
| 29 |
+
"whisper-decode-tensor-batch"
|
| 30 |
+
]
|
| 31 |
+
},
|
| 32 |
+
"seconds": 0.53,
|
| 33 |
+
"platform": "cpu-arm64"
|
| 34 |
+
},
|
| 35 |
+
"outputs": {
|
| 36 |
+
"runtime": {
|
| 37 |
+
"device": "cpu",
|
| 38 |
+
"dtype": "float32",
|
| 39 |
+
"attn_implementation": "sdpa"
|
| 40 |
+
},
|
| 41 |
+
"generated_tokens": [
|
| 42 |
+
[
|
| 43 |
+
0,
|
| 44 |
+
644,
|
| 45 |
+
4598,
|
| 46 |
+
229,
|
| 47 |
+
19250,
|
| 48 |
+
5,
|
| 49 |
+
1,
|
| 50 |
+
0,
|
| 51 |
+
0,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
0
|
| 55 |
+
],
|
| 56 |
+
[
|
| 57 |
+
0,
|
| 58 |
+
1674,
|
| 59 |
+
3,
|
| 60 |
+
13147,
|
| 61 |
+
15,
|
| 62 |
+
5462,
|
| 63 |
+
19219,
|
| 64 |
+
170,
|
| 65 |
+
110,
|
| 66 |
+
35,
|
| 67 |
+
5,
|
| 68 |
+
1
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
0,
|
| 72 |
+
3488,
|
| 73 |
+
229,
|
| 74 |
+
74,
|
| 75 |
+
26989,
|
| 76 |
+
58,
|
| 77 |
+
1,
|
| 78 |
+
0,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
0,
|
| 82 |
+
0
|
| 83 |
+
],
|
| 84 |
+
[
|
| 85 |
+
0,
|
| 86 |
+
3,
|
| 87 |
+
26114,
|
| 88 |
+
9458,
|
| 89 |
+
55,
|
| 90 |
+
1,
|
| 91 |
+
0,
|
| 92 |
+
0,
|
| 93 |
+
0,
|
| 94 |
+
0,
|
| 95 |
+
0,
|
| 96 |
+
0
|
| 97 |
+
]
|
| 98 |
+
],
|
| 99 |
+
"generated_text": [
|
| 100 |
+
"Das Haus ist wunderbar.",
|
| 101 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 102 |
+
"Wo ist der Bahnhof?",
|
| 103 |
+
"Vielen Dank!"
|
| 104 |
+
],
|
| 105 |
+
"label_logprobs": [
|
| 106 |
+
[
|
| 107 |
+
-0.6655597686767578,
|
| 108 |
+
-0.15085309743881226,
|
| 109 |
+
-0.055064305663108826,
|
| 110 |
+
-0.5601738095283508,
|
| 111 |
+
-0.07579568028450012,
|
| 112 |
+
-0.01796041429042816,
|
| 113 |
+
0.0
|
| 114 |
+
],
|
| 115 |
+
[
|
| 116 |
+
-0.2801651060581207,
|
| 117 |
+
-2.106451988220215,
|
| 118 |
+
-0.005221657920628786,
|
| 119 |
+
-0.7215071320533752,
|
| 120 |
+
-0.03395647928118706,
|
| 121 |
+
-0.027777034789323807,
|
| 122 |
+
-0.0026439016219228506
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-0.15831893682479858,
|
| 126 |
+
-0.6513417363166809,
|
| 127 |
+
-0.052600838243961334,
|
| 128 |
+
-0.0745137482881546,
|
| 129 |
+
-0.020199310034513474,
|
| 130 |
+
-0.0027004939038306475,
|
| 131 |
+
0.0
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-1.9390537738800049,
|
| 135 |
+
-0.053518570959568024,
|
| 136 |
+
-0.0027209424879401922,
|
| 137 |
+
0.0,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0
|
| 141 |
+
]
|
| 142 |
+
],
|
| 143 |
+
"decoded_roundtrip": [
|
| 144 |
+
"Yes, it is.",
|
| 145 |
+
"Hello, world! How are you?"
|
| 146 |
+
],
|
| 147 |
+
"training": {
|
| 148 |
+
"loss": 0.44009360671043396,
|
| 149 |
+
"gradients": {
|
| 150 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 151 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 152 |
+
},
|
| 153 |
+
"updated": true
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/mic-t5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-t5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "4f4d0ca0db8f1823e53ac0cbcba28bd982b6e8f4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 3.73,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
23952,
|
| 46 |
+
23952,
|
| 47 |
+
23952,
|
| 48 |
+
23952,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952,
|
| 56 |
+
23952
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
18473,
|
| 61 |
+
18473,
|
| 62 |
+
18473,
|
| 63 |
+
18473,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473,
|
| 71 |
+
18473
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
23952,
|
| 76 |
+
23952,
|
| 77 |
+
23952,
|
| 78 |
+
23952,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952,
|
| 86 |
+
23952
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
23952,
|
| 91 |
+
23952,
|
| 92 |
+
23952,
|
| 93 |
+
23952,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952,
|
| 101 |
+
23952
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 106 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 107 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 108 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-10.141915321350098,
|
| 113 |
+
-9.734258651733398,
|
| 114 |
+
-12.010519027709961,
|
| 115 |
+
-10.778444290161133,
|
| 116 |
+
-11.155023574829102,
|
| 117 |
+
-11.17411994934082,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-10.16841983795166,
|
| 122 |
+
-11.666159629821777,
|
| 123 |
+
-11.404788970947266,
|
| 124 |
+
-9.371376037597656,
|
| 125 |
+
-11.850149154663086,
|
| 126 |
+
-11.123132705688477,
|
| 127 |
+
-11.6961669921875
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-10.990324020385742,
|
| 131 |
+
-10.651445388793945,
|
| 132 |
+
-11.902168273925781,
|
| 133 |
+
-11.009994506835938,
|
| 134 |
+
-10.28740119934082,
|
| 135 |
+
-10.04874038696289,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-10.57217788696289,
|
| 140 |
+
-10.656261444091797,
|
| 141 |
+
-10.012958526611328,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 10.951407432556152,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/mic-t5-small-slim.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "mic-t5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "4f4d0ca0db8f1823e53ac0cbcba28bd982b6e8f4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 4.17,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "sdpa"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
23952,
|
| 46 |
+
23952,
|
| 47 |
+
23952,
|
| 48 |
+
23952,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952,
|
| 56 |
+
23952
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
18473,
|
| 61 |
+
18473,
|
| 62 |
+
18473,
|
| 63 |
+
18473,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473,
|
| 71 |
+
18473
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
23952,
|
| 76 |
+
23952,
|
| 77 |
+
23952,
|
| 78 |
+
23952,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952,
|
| 86 |
+
23952
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
23952,
|
| 91 |
+
23952,
|
| 92 |
+
23952,
|
| 93 |
+
23952,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952,
|
| 101 |
+
23952
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 106 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 107 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 108 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-10.141916275024414,
|
| 113 |
+
-9.734258651733398,
|
| 114 |
+
-12.010519027709961,
|
| 115 |
+
-10.778444290161133,
|
| 116 |
+
-11.155023574829102,
|
| 117 |
+
-11.17411994934082,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-10.16841983795166,
|
| 122 |
+
-11.666160583496094,
|
| 123 |
+
-11.40478801727295,
|
| 124 |
+
-9.371376037597656,
|
| 125 |
+
-11.850149154663086,
|
| 126 |
+
-11.123132705688477,
|
| 127 |
+
-11.696166038513184
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-10.990324020385742,
|
| 131 |
+
-10.651444435119629,
|
| 132 |
+
-11.902166366577148,
|
| 133 |
+
-11.009994506835938,
|
| 134 |
+
-10.28740119934082,
|
| 135 |
+
-10.04874038696289,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-10.57217788696289,
|
| 140 |
+
-10.656261444091797,
|
| 141 |
+
-10.012958526611328,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 10.951407432556152,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/mic-umt5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-umt5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 5.16,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
51767,
|
| 46 |
+
51767,
|
| 47 |
+
51767,
|
| 48 |
+
51767,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767,
|
| 56 |
+
51767
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
51767,
|
| 61 |
+
51767,
|
| 62 |
+
51767,
|
| 63 |
+
51767,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767,
|
| 71 |
+
51767
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
175990,
|
| 76 |
+
175990,
|
| 77 |
+
175990,
|
| 78 |
+
175990,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990,
|
| 86 |
+
175990
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
159310,
|
| 91 |
+
159310,
|
| 92 |
+
159310,
|
| 93 |
+
159310,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310,
|
| 101 |
+
159310
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 106 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 107 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 108 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-13.114484786987305,
|
| 113 |
+
-12.09228801727295,
|
| 114 |
+
-13.726058006286621,
|
| 115 |
+
-12.221920013427734,
|
| 116 |
+
-12.133296966552734,
|
| 117 |
+
-11.019335746765137,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-12.420160293579102,
|
| 122 |
+
-12.824440956115723,
|
| 123 |
+
-13.647568702697754,
|
| 124 |
+
-13.477912902832031,
|
| 125 |
+
-12.971185684204102,
|
| 126 |
+
-9.598020553588867,
|
| 127 |
+
-12.954093933105469
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-12.4166898727417,
|
| 131 |
+
-14.566017150878906,
|
| 132 |
+
-14.67100715637207,
|
| 133 |
+
-12.052459716796875,
|
| 134 |
+
-13.045360565185547,
|
| 135 |
+
-12.43440055847168,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-12.31074047088623,
|
| 140 |
+
-13.982269287109375,
|
| 141 |
+
-11.187505722045898,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 12.861258506774902,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/mic-umt5-small-slim.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "mic-umt5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 5.64,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "sdpa"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
51767,
|
| 46 |
+
51767,
|
| 47 |
+
51767,
|
| 48 |
+
51767,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767,
|
| 56 |
+
51767
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
51767,
|
| 61 |
+
51767,
|
| 62 |
+
51767,
|
| 63 |
+
51767,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767,
|
| 71 |
+
51767
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
175990,
|
| 76 |
+
175990,
|
| 77 |
+
175990,
|
| 78 |
+
175990,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990,
|
| 86 |
+
175990
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
159310,
|
| 91 |
+
159310,
|
| 92 |
+
159310,
|
| 93 |
+
159310,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310,
|
| 101 |
+
159310
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 106 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 107 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 108 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-13.114484786987305,
|
| 113 |
+
-12.092288970947266,
|
| 114 |
+
-13.726057052612305,
|
| 115 |
+
-12.221920013427734,
|
| 116 |
+
-12.13329792022705,
|
| 117 |
+
-11.019335746765137,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-12.420158386230469,
|
| 122 |
+
-12.824440956115723,
|
| 123 |
+
-13.647567749023438,
|
| 124 |
+
-13.477912902832031,
|
| 125 |
+
-12.971185684204102,
|
| 126 |
+
-9.598020553588867,
|
| 127 |
+
-12.954093933105469
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-12.4166898727417,
|
| 131 |
+
-14.56601619720459,
|
| 132 |
+
-14.67100715637207,
|
| 133 |
+
-12.052457809448242,
|
| 134 |
+
-13.045361518859863,
|
| 135 |
+
-12.43440055847168,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-12.310741424560547,
|
| 140 |
+
-13.982269287109375,
|
| 141 |
+
-11.187505722045898,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 12.861258506774902,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/t5-small.eager.json
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "t5-small",
|
| 8 |
+
"kind": "checkpoint",
|
| 9 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 4.88,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
644,
|
| 46 |
+
4598,
|
| 47 |
+
229,
|
| 48 |
+
19250,
|
| 49 |
+
5,
|
| 50 |
+
1,
|
| 51 |
+
0,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
0,
|
| 55 |
+
0
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
1674,
|
| 60 |
+
3,
|
| 61 |
+
13147,
|
| 62 |
+
15,
|
| 63 |
+
5462,
|
| 64 |
+
19219,
|
| 65 |
+
170,
|
| 66 |
+
110,
|
| 67 |
+
35,
|
| 68 |
+
5,
|
| 69 |
+
1
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
0,
|
| 73 |
+
3488,
|
| 74 |
+
229,
|
| 75 |
+
74,
|
| 76 |
+
26989,
|
| 77 |
+
58,
|
| 78 |
+
1,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
0,
|
| 82 |
+
0,
|
| 83 |
+
0
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
0,
|
| 87 |
+
3,
|
| 88 |
+
26114,
|
| 89 |
+
9458,
|
| 90 |
+
55,
|
| 91 |
+
1,
|
| 92 |
+
0,
|
| 93 |
+
0,
|
| 94 |
+
0,
|
| 95 |
+
0,
|
| 96 |
+
0,
|
| 97 |
+
0
|
| 98 |
+
]
|
| 99 |
+
],
|
| 100 |
+
"generated_text": [
|
| 101 |
+
"Das Haus ist wunderbar.",
|
| 102 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 103 |
+
"Wo ist der Bahnhof?",
|
| 104 |
+
"Vielen Dank!"
|
| 105 |
+
],
|
| 106 |
+
"label_logprobs": [
|
| 107 |
+
[
|
| 108 |
+
-0.6655794978141785,
|
| 109 |
+
-0.15086662769317627,
|
| 110 |
+
-0.055083371698856354,
|
| 111 |
+
-0.5601829886436462,
|
| 112 |
+
-0.07580883055925369,
|
| 113 |
+
-0.01797575317323208,
|
| 114 |
+
0.0
|
| 115 |
+
],
|
| 116 |
+
[
|
| 117 |
+
-0.28017953038215637,
|
| 118 |
+
-2.1064677238464355,
|
| 119 |
+
-0.0052243852987885475,
|
| 120 |
+
-0.7215145230293274,
|
| 121 |
+
-0.033959243446588516,
|
| 122 |
+
-0.027786310762166977,
|
| 123 |
+
-0.0026556721422821283
|
| 124 |
+
],
|
| 125 |
+
[
|
| 126 |
+
-0.15832941234111786,
|
| 127 |
+
-0.6513540744781494,
|
| 128 |
+
-0.05261124297976494,
|
| 129 |
+
-0.07451441138982773,
|
| 130 |
+
-0.02021099254488945,
|
| 131 |
+
-0.0027123827021569014,
|
| 132 |
+
0.0
|
| 133 |
+
],
|
| 134 |
+
[
|
| 135 |
+
-1.9390671253204346,
|
| 136 |
+
-0.05353099852800369,
|
| 137 |
+
-0.002730690874159336,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0,
|
| 141 |
+
0.0
|
| 142 |
+
]
|
| 143 |
+
],
|
| 144 |
+
"decoded_roundtrip": [
|
| 145 |
+
"Yes, it is.",
|
| 146 |
+
"Hello, world! How are you?"
|
| 147 |
+
],
|
| 148 |
+
"training": {
|
| 149 |
+
"loss": 0.4401061236858368,
|
| 150 |
+
"gradients": {
|
| 151 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 152 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 153 |
+
},
|
| 154 |
+
"updated": true
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
}
|
integrations/transformers/expectations/cpu-x86_64/t5-small.json
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "default",
|
| 7 |
+
"target": "t5-small",
|
| 8 |
+
"kind": "checkpoint",
|
| 9 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.22",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cpu",
|
| 14 |
+
"torchvision": "0.26.0+cpu",
|
| 15 |
+
"torchaudio": "2.11.0+cpu",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 4.95,
|
| 34 |
+
"platform": "cpu-x86_64"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cpu",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "sdpa"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
644,
|
| 46 |
+
4598,
|
| 47 |
+
229,
|
| 48 |
+
19250,
|
| 49 |
+
5,
|
| 50 |
+
1,
|
| 51 |
+
0,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
0,
|
| 55 |
+
0
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
1674,
|
| 60 |
+
3,
|
| 61 |
+
13147,
|
| 62 |
+
15,
|
| 63 |
+
5462,
|
| 64 |
+
19219,
|
| 65 |
+
170,
|
| 66 |
+
110,
|
| 67 |
+
35,
|
| 68 |
+
5,
|
| 69 |
+
1
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
0,
|
| 73 |
+
3488,
|
| 74 |
+
229,
|
| 75 |
+
74,
|
| 76 |
+
26989,
|
| 77 |
+
58,
|
| 78 |
+
1,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
0,
|
| 82 |
+
0,
|
| 83 |
+
0
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
0,
|
| 87 |
+
3,
|
| 88 |
+
26114,
|
| 89 |
+
9458,
|
| 90 |
+
55,
|
| 91 |
+
1,
|
| 92 |
+
0,
|
| 93 |
+
0,
|
| 94 |
+
0,
|
| 95 |
+
0,
|
| 96 |
+
0,
|
| 97 |
+
0
|
| 98 |
+
]
|
| 99 |
+
],
|
| 100 |
+
"generated_text": [
|
| 101 |
+
"Das Haus ist wunderbar.",
|
| 102 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 103 |
+
"Wo ist der Bahnhof?",
|
| 104 |
+
"Vielen Dank!"
|
| 105 |
+
],
|
| 106 |
+
"label_logprobs": [
|
| 107 |
+
[
|
| 108 |
+
-0.6655799746513367,
|
| 109 |
+
-0.1508663147687912,
|
| 110 |
+
-0.055083371698856354,
|
| 111 |
+
-0.5601828098297119,
|
| 112 |
+
-0.07580883055925369,
|
| 113 |
+
-0.01797575317323208,
|
| 114 |
+
0.0
|
| 115 |
+
],
|
| 116 |
+
[
|
| 117 |
+
-0.2801792323589325,
|
| 118 |
+
-2.1064677238464355,
|
| 119 |
+
-0.0052243852987885475,
|
| 120 |
+
-0.721514880657196,
|
| 121 |
+
-0.033959243446588516,
|
| 122 |
+
-0.027786310762166977,
|
| 123 |
+
-0.0026556721422821283
|
| 124 |
+
],
|
| 125 |
+
[
|
| 126 |
+
-0.15832951664924622,
|
| 127 |
+
-0.651354193687439,
|
| 128 |
+
-0.05261124297976494,
|
| 129 |
+
-0.07451452314853668,
|
| 130 |
+
-0.02021099254488945,
|
| 131 |
+
-0.0027123827021569014,
|
| 132 |
+
0.0
|
| 133 |
+
],
|
| 134 |
+
[
|
| 135 |
+
-1.93906831741333,
|
| 136 |
+
-0.05353088676929474,
|
| 137 |
+
-0.002730690874159336,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0,
|
| 141 |
+
0.0
|
| 142 |
+
]
|
| 143 |
+
],
|
| 144 |
+
"decoded_roundtrip": [
|
| 145 |
+
"Yes, it is.",
|
| 146 |
+
"Hello, world! How are you?"
|
| 147 |
+
],
|
| 148 |
+
"training": {
|
| 149 |
+
"loss": 0.4401061236858368,
|
| 150 |
+
"gradients": {
|
| 151 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 152 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 153 |
+
},
|
| 154 |
+
"updated": true
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
}
|
integrations/transformers/expectations/cuda/mic-t5-small-slim.bfloat16.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "bfloat16",
|
| 8 |
+
"target": "mic-t5-small-slim",
|
| 9 |
+
"kind": "fixture",
|
| 10 |
+
"revision": "4f4d0ca0db8f1823e53ac0cbcba28bd982b6e8f4",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 7.96,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "bfloat16",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952,
|
| 56 |
+
23952,
|
| 57 |
+
23952,
|
| 58 |
+
23952,
|
| 59 |
+
23952,
|
| 60 |
+
23952
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
0,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473,
|
| 71 |
+
18473,
|
| 72 |
+
18473,
|
| 73 |
+
18473,
|
| 74 |
+
18473,
|
| 75 |
+
18473
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
0,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952,
|
| 86 |
+
23952,
|
| 87 |
+
23952,
|
| 88 |
+
23952,
|
| 89 |
+
23952,
|
| 90 |
+
23952
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
0,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952,
|
| 101 |
+
23952,
|
| 102 |
+
23952,
|
| 103 |
+
23952,
|
| 104 |
+
23952,
|
| 105 |
+
23952
|
| 106 |
+
]
|
| 107 |
+
],
|
| 108 |
+
"generated_text": [
|
| 109 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 110 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 111 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 112 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 113 |
+
],
|
| 114 |
+
"label_logprobs": [
|
| 115 |
+
[
|
| 116 |
+
-10.151729583740234,
|
| 117 |
+
-9.734195709228516,
|
| 118 |
+
-11.995878219604492,
|
| 119 |
+
-10.775430679321289,
|
| 120 |
+
-11.145637512207031,
|
| 121 |
+
-11.185211181640625,
|
| 122 |
+
0.0
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-10.175729751586914,
|
| 126 |
+
-11.674559593200684,
|
| 127 |
+
-11.41996955871582,
|
| 128 |
+
-9.367717742919922,
|
| 129 |
+
-11.86098861694336,
|
| 130 |
+
-11.11890983581543,
|
| 131 |
+
-11.700752258300781
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-11.000611305236816,
|
| 135 |
+
-10.638504028320312,
|
| 136 |
+
-11.90809440612793,
|
| 137 |
+
-11.007780075073242,
|
| 138 |
+
-10.293903350830078,
|
| 139 |
+
-10.055356979370117,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
-10.55982780456543,
|
| 144 |
+
-10.654664993286133,
|
| 145 |
+
-10.018046379089355,
|
| 146 |
+
0.0,
|
| 147 |
+
0.0,
|
| 148 |
+
0.0,
|
| 149 |
+
0.0
|
| 150 |
+
]
|
| 151 |
+
],
|
| 152 |
+
"decoded_roundtrip": [
|
| 153 |
+
"Yes, it is.",
|
| 154 |
+
"Hello, world! How are you?"
|
| 155 |
+
],
|
| 156 |
+
"training": {
|
| 157 |
+
"loss": 11.0625,
|
| 158 |
+
"gradients": {
|
| 159 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 160 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 161 |
+
},
|
| 162 |
+
"updated": true
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
}
|
integrations/transformers/expectations/cuda/mic-t5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-t5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "4f4d0ca0db8f1823e53ac0cbcba28bd982b6e8f4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.12",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cu128",
|
| 14 |
+
"torchvision": "0.26.0+cu128",
|
| 15 |
+
"torchaudio": "2.11.0+cu128",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 7.27,
|
| 34 |
+
"platform": "cuda"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cuda",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
23952,
|
| 46 |
+
23952,
|
| 47 |
+
23952,
|
| 48 |
+
23952,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952,
|
| 56 |
+
23952
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
18473,
|
| 61 |
+
18473,
|
| 62 |
+
18473,
|
| 63 |
+
18473,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473,
|
| 71 |
+
18473
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
23952,
|
| 76 |
+
23952,
|
| 77 |
+
23952,
|
| 78 |
+
23952,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952,
|
| 86 |
+
23952
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
23952,
|
| 91 |
+
23952,
|
| 92 |
+
23952,
|
| 93 |
+
23952,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952,
|
| 101 |
+
23952
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 106 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 107 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 108 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-10.141915321350098,
|
| 113 |
+
-9.734258651733398,
|
| 114 |
+
-12.010519027709961,
|
| 115 |
+
-10.778444290161133,
|
| 116 |
+
-11.155022621154785,
|
| 117 |
+
-11.174120903015137,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-10.168418884277344,
|
| 122 |
+
-11.666160583496094,
|
| 123 |
+
-11.404787063598633,
|
| 124 |
+
-9.37137508392334,
|
| 125 |
+
-11.850149154663086,
|
| 126 |
+
-11.123132705688477,
|
| 127 |
+
-11.6961669921875
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-10.990324020385742,
|
| 131 |
+
-10.651445388793945,
|
| 132 |
+
-11.902166366577148,
|
| 133 |
+
-11.009994506835938,
|
| 134 |
+
-10.28740119934082,
|
| 135 |
+
-10.04874038696289,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-10.57217788696289,
|
| 140 |
+
-10.656261444091797,
|
| 141 |
+
-10.012958526611328,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 10.876840591430664,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cuda/mic-t5-small-slim.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "default",
|
| 8 |
+
"target": "mic-t5-small-slim",
|
| 9 |
+
"kind": "fixture",
|
| 10 |
+
"revision": "4f4d0ca0db8f1823e53ac0cbcba28bd982b6e8f4",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 7.66,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "float32",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
23952,
|
| 50 |
+
23952,
|
| 51 |
+
23952,
|
| 52 |
+
23952,
|
| 53 |
+
23952,
|
| 54 |
+
23952,
|
| 55 |
+
23952,
|
| 56 |
+
23952,
|
| 57 |
+
23952,
|
| 58 |
+
23952,
|
| 59 |
+
23952,
|
| 60 |
+
23952
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
0,
|
| 64 |
+
18473,
|
| 65 |
+
18473,
|
| 66 |
+
18473,
|
| 67 |
+
18473,
|
| 68 |
+
18473,
|
| 69 |
+
18473,
|
| 70 |
+
18473,
|
| 71 |
+
18473,
|
| 72 |
+
18473,
|
| 73 |
+
18473,
|
| 74 |
+
18473,
|
| 75 |
+
18473
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
0,
|
| 79 |
+
23952,
|
| 80 |
+
23952,
|
| 81 |
+
23952,
|
| 82 |
+
23952,
|
| 83 |
+
23952,
|
| 84 |
+
23952,
|
| 85 |
+
23952,
|
| 86 |
+
23952,
|
| 87 |
+
23952,
|
| 88 |
+
23952,
|
| 89 |
+
23952,
|
| 90 |
+
23952
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
0,
|
| 94 |
+
23952,
|
| 95 |
+
23952,
|
| 96 |
+
23952,
|
| 97 |
+
23952,
|
| 98 |
+
23952,
|
| 99 |
+
23952,
|
| 100 |
+
23952,
|
| 101 |
+
23952,
|
| 102 |
+
23952,
|
| 103 |
+
23952,
|
| 104 |
+
23952,
|
| 105 |
+
23952
|
| 106 |
+
]
|
| 107 |
+
],
|
| 108 |
+
"generated_text": [
|
| 109 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 110 |
+
"celule celule celule celule celule celule celule celule celule celule celule celule",
|
| 111 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate",
|
| 112 |
+
"recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate recreate"
|
| 113 |
+
],
|
| 114 |
+
"label_logprobs": [
|
| 115 |
+
[
|
| 116 |
+
-10.141914367675781,
|
| 117 |
+
-9.734258651733398,
|
| 118 |
+
-12.010519027709961,
|
| 119 |
+
-10.778443336486816,
|
| 120 |
+
-11.155022621154785,
|
| 121 |
+
-11.17411994934082,
|
| 122 |
+
0.0
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-10.16841983795166,
|
| 126 |
+
-11.666158676147461,
|
| 127 |
+
-11.40478801727295,
|
| 128 |
+
-9.371376037597656,
|
| 129 |
+
-11.850149154663086,
|
| 130 |
+
-11.123132705688477,
|
| 131 |
+
-11.696166038513184
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-10.990324020385742,
|
| 135 |
+
-10.651445388793945,
|
| 136 |
+
-11.902167320251465,
|
| 137 |
+
-11.009994506835938,
|
| 138 |
+
-10.28740119934082,
|
| 139 |
+
-10.04874038696289,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
-10.57217788696289,
|
| 144 |
+
-10.656261444091797,
|
| 145 |
+
-10.012958526611328,
|
| 146 |
+
0.0,
|
| 147 |
+
0.0,
|
| 148 |
+
0.0,
|
| 149 |
+
0.0
|
| 150 |
+
]
|
| 151 |
+
],
|
| 152 |
+
"decoded_roundtrip": [
|
| 153 |
+
"Yes, it is.",
|
| 154 |
+
"Hello, world! How are you?"
|
| 155 |
+
],
|
| 156 |
+
"training": {
|
| 157 |
+
"loss": 10.870068550109863,
|
| 158 |
+
"gradients": {
|
| 159 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 160 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 161 |
+
},
|
| 162 |
+
"updated": true
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
}
|
integrations/transformers/expectations/cuda/mic-umt5-small-slim.bfloat16.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "bfloat16",
|
| 8 |
+
"target": "mic-umt5-small-slim",
|
| 9 |
+
"kind": "fixture",
|
| 10 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 10.07,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "bfloat16",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767,
|
| 56 |
+
51767,
|
| 57 |
+
51767,
|
| 58 |
+
51767,
|
| 59 |
+
51767,
|
| 60 |
+
51767
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
0,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767,
|
| 71 |
+
51767,
|
| 72 |
+
51767,
|
| 73 |
+
51767,
|
| 74 |
+
51767,
|
| 75 |
+
51767
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
0,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990,
|
| 86 |
+
175990,
|
| 87 |
+
175990,
|
| 88 |
+
175990,
|
| 89 |
+
175990,
|
| 90 |
+
175990
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
0,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310,
|
| 101 |
+
159310,
|
| 102 |
+
159310,
|
| 103 |
+
159310,
|
| 104 |
+
159310,
|
| 105 |
+
159310
|
| 106 |
+
]
|
| 107 |
+
],
|
| 108 |
+
"generated_text": [
|
| 109 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 110 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 111 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 112 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 113 |
+
],
|
| 114 |
+
"label_logprobs": [
|
| 115 |
+
[
|
| 116 |
+
-13.110553741455078,
|
| 117 |
+
-12.087394714355469,
|
| 118 |
+
-13.719255447387695,
|
| 119 |
+
-12.21999740600586,
|
| 120 |
+
-12.128756523132324,
|
| 121 |
+
-11.021055221557617,
|
| 122 |
+
0.0
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-12.413763999938965,
|
| 126 |
+
-12.80594539642334,
|
| 127 |
+
-13.645350456237793,
|
| 128 |
+
-13.481921195983887,
|
| 129 |
+
-12.956086158752441,
|
| 130 |
+
-9.592491149902344,
|
| 131 |
+
-12.956466674804688
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-12.419609069824219,
|
| 135 |
+
-14.570387840270996,
|
| 136 |
+
-14.66579818725586,
|
| 137 |
+
-12.047677993774414,
|
| 138 |
+
-13.043304443359375,
|
| 139 |
+
-12.431309700012207,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
-12.303339004516602,
|
| 144 |
+
-13.98660659790039,
|
| 145 |
+
-11.178277969360352,
|
| 146 |
+
0.0,
|
| 147 |
+
0.0,
|
| 148 |
+
0.0,
|
| 149 |
+
0.0
|
| 150 |
+
]
|
| 151 |
+
],
|
| 152 |
+
"decoded_roundtrip": [
|
| 153 |
+
"Yes, it is.",
|
| 154 |
+
"Hello, world! How are you?"
|
| 155 |
+
],
|
| 156 |
+
"training": {
|
| 157 |
+
"loss": 12.6875,
|
| 158 |
+
"gradients": {
|
| 159 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 160 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 161 |
+
},
|
| 162 |
+
"updated": true
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
}
|
integrations/transformers/expectations/cuda/mic-umt5-small-slim.eager.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "mic-umt5-small-slim",
|
| 8 |
+
"kind": "fixture",
|
| 9 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.12",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cu128",
|
| 14 |
+
"torchvision": "0.26.0+cu128",
|
| 15 |
+
"torchaudio": "2.11.0+cu128",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 9.22,
|
| 34 |
+
"platform": "cuda"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cuda",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
51767,
|
| 46 |
+
51767,
|
| 47 |
+
51767,
|
| 48 |
+
51767,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767,
|
| 56 |
+
51767
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
0,
|
| 60 |
+
51767,
|
| 61 |
+
51767,
|
| 62 |
+
51767,
|
| 63 |
+
51767,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767,
|
| 71 |
+
51767
|
| 72 |
+
],
|
| 73 |
+
[
|
| 74 |
+
0,
|
| 75 |
+
175990,
|
| 76 |
+
175990,
|
| 77 |
+
175990,
|
| 78 |
+
175990,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990,
|
| 86 |
+
175990
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
0,
|
| 90 |
+
159310,
|
| 91 |
+
159310,
|
| 92 |
+
159310,
|
| 93 |
+
159310,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310,
|
| 101 |
+
159310
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 106 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 107 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 108 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-13.114485740661621,
|
| 113 |
+
-12.092288970947266,
|
| 114 |
+
-13.726058006286621,
|
| 115 |
+
-12.221920013427734,
|
| 116 |
+
-12.133296966552734,
|
| 117 |
+
-11.019335746765137,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-12.420158386230469,
|
| 122 |
+
-12.824440002441406,
|
| 123 |
+
-13.64756965637207,
|
| 124 |
+
-13.477912902832031,
|
| 125 |
+
-12.971185684204102,
|
| 126 |
+
-9.598020553588867,
|
| 127 |
+
-12.954093933105469
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-12.416690826416016,
|
| 131 |
+
-14.56601619720459,
|
| 132 |
+
-14.671009063720703,
|
| 133 |
+
-12.052459716796875,
|
| 134 |
+
-13.045361518859863,
|
| 135 |
+
-12.43440055847168,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-12.310741424560547,
|
| 140 |
+
-13.982268333435059,
|
| 141 |
+
-11.187505722045898,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 13.048639297485352,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cuda/mic-umt5-small-slim.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "default",
|
| 8 |
+
"target": "mic-umt5-small-slim",
|
| 9 |
+
"kind": "fixture",
|
| 10 |
+
"revision": "5c2db1c75f56bce8b4c200734810eb07f29bfcc3",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 9.71,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "float32",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
51767,
|
| 50 |
+
51767,
|
| 51 |
+
51767,
|
| 52 |
+
51767,
|
| 53 |
+
51767,
|
| 54 |
+
51767,
|
| 55 |
+
51767,
|
| 56 |
+
51767,
|
| 57 |
+
51767,
|
| 58 |
+
51767,
|
| 59 |
+
51767,
|
| 60 |
+
51767
|
| 61 |
+
],
|
| 62 |
+
[
|
| 63 |
+
0,
|
| 64 |
+
51767,
|
| 65 |
+
51767,
|
| 66 |
+
51767,
|
| 67 |
+
51767,
|
| 68 |
+
51767,
|
| 69 |
+
51767,
|
| 70 |
+
51767,
|
| 71 |
+
51767,
|
| 72 |
+
51767,
|
| 73 |
+
51767,
|
| 74 |
+
51767,
|
| 75 |
+
51767
|
| 76 |
+
],
|
| 77 |
+
[
|
| 78 |
+
0,
|
| 79 |
+
175990,
|
| 80 |
+
175990,
|
| 81 |
+
175990,
|
| 82 |
+
175990,
|
| 83 |
+
175990,
|
| 84 |
+
175990,
|
| 85 |
+
175990,
|
| 86 |
+
175990,
|
| 87 |
+
175990,
|
| 88 |
+
175990,
|
| 89 |
+
175990,
|
| 90 |
+
175990
|
| 91 |
+
],
|
| 92 |
+
[
|
| 93 |
+
0,
|
| 94 |
+
159310,
|
| 95 |
+
159310,
|
| 96 |
+
159310,
|
| 97 |
+
159310,
|
| 98 |
+
159310,
|
| 99 |
+
159310,
|
| 100 |
+
159310,
|
| 101 |
+
159310,
|
| 102 |
+
159310,
|
| 103 |
+
159310,
|
| 104 |
+
159310,
|
| 105 |
+
159310
|
| 106 |
+
]
|
| 107 |
+
],
|
| 108 |
+
"generated_text": [
|
| 109 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 110 |
+
"\u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430 \u0441\u0435\u043b\u0430",
|
| 111 |
+
"adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug adaug",
|
| 112 |
+
"vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern vintern"
|
| 113 |
+
],
|
| 114 |
+
"label_logprobs": [
|
| 115 |
+
[
|
| 116 |
+
-13.114484786987305,
|
| 117 |
+
-12.092288970947266,
|
| 118 |
+
-13.726058959960938,
|
| 119 |
+
-12.221920013427734,
|
| 120 |
+
-12.133296966552734,
|
| 121 |
+
-11.019335746765137,
|
| 122 |
+
0.0
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-12.420159339904785,
|
| 126 |
+
-12.824440956115723,
|
| 127 |
+
-13.64756965637207,
|
| 128 |
+
-13.477911949157715,
|
| 129 |
+
-12.971185684204102,
|
| 130 |
+
-9.598020553588867,
|
| 131 |
+
-12.954092979431152
|
| 132 |
+
],
|
| 133 |
+
[
|
| 134 |
+
-12.416690826416016,
|
| 135 |
+
-14.56601619720459,
|
| 136 |
+
-14.671009063720703,
|
| 137 |
+
-12.052459716796875,
|
| 138 |
+
-13.045360565185547,
|
| 139 |
+
-12.43440055847168,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
-12.310741424560547,
|
| 144 |
+
-13.982269287109375,
|
| 145 |
+
-11.187505722045898,
|
| 146 |
+
0.0,
|
| 147 |
+
0.0,
|
| 148 |
+
0.0,
|
| 149 |
+
0.0
|
| 150 |
+
]
|
| 151 |
+
],
|
| 152 |
+
"decoded_roundtrip": [
|
| 153 |
+
"Yes, it is.",
|
| 154 |
+
"Hello, world! How are you?"
|
| 155 |
+
],
|
| 156 |
+
"training": {
|
| 157 |
+
"loss": 12.49087905883789,
|
| 158 |
+
"gradients": {
|
| 159 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 160 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 161 |
+
},
|
| 162 |
+
"updated": true
|
| 163 |
+
}
|
| 164 |
+
}
|
| 165 |
+
}
|
integrations/transformers/expectations/cuda/t5-small.bfloat16.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "bfloat16",
|
| 8 |
+
"target": "t5-small",
|
| 9 |
+
"kind": "checkpoint",
|
| 10 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 8.93,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "bfloat16",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
644,
|
| 50 |
+
4598,
|
| 51 |
+
229,
|
| 52 |
+
19250,
|
| 53 |
+
5,
|
| 54 |
+
1,
|
| 55 |
+
0,
|
| 56 |
+
0,
|
| 57 |
+
0,
|
| 58 |
+
0,
|
| 59 |
+
0
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
0,
|
| 63 |
+
1674,
|
| 64 |
+
3,
|
| 65 |
+
13147,
|
| 66 |
+
15,
|
| 67 |
+
5462,
|
| 68 |
+
19219,
|
| 69 |
+
170,
|
| 70 |
+
110,
|
| 71 |
+
35,
|
| 72 |
+
5,
|
| 73 |
+
1
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
0,
|
| 77 |
+
3488,
|
| 78 |
+
229,
|
| 79 |
+
74,
|
| 80 |
+
26989,
|
| 81 |
+
58,
|
| 82 |
+
1,
|
| 83 |
+
0,
|
| 84 |
+
0,
|
| 85 |
+
0,
|
| 86 |
+
0,
|
| 87 |
+
0
|
| 88 |
+
],
|
| 89 |
+
[
|
| 90 |
+
0,
|
| 91 |
+
3,
|
| 92 |
+
26114,
|
| 93 |
+
9458,
|
| 94 |
+
55,
|
| 95 |
+
1,
|
| 96 |
+
0,
|
| 97 |
+
0,
|
| 98 |
+
0,
|
| 99 |
+
0,
|
| 100 |
+
0,
|
| 101 |
+
0
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"Das Haus ist wunderbar.",
|
| 106 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 107 |
+
"Wo ist der Bahnhof?",
|
| 108 |
+
"Vielen Dank!"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-0.6660985946655273,
|
| 113 |
+
-0.15231986343860626,
|
| 114 |
+
-0.05538918077945709,
|
| 115 |
+
-0.5616389513015747,
|
| 116 |
+
-0.07666996866464615,
|
| 117 |
+
-0.018436027690768242,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-0.27791938185691833,
|
| 122 |
+
-2.1038262844085693,
|
| 123 |
+
-0.005204818211495876,
|
| 124 |
+
-0.7221668362617493,
|
| 125 |
+
-0.034153614193201065,
|
| 126 |
+
-0.027701320126652718,
|
| 127 |
+
-0.002612394280731678
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-0.1600540727376938,
|
| 131 |
+
-0.6512784957885742,
|
| 132 |
+
-0.053067948669195175,
|
| 133 |
+
-0.0752311646938324,
|
| 134 |
+
-0.020853085443377495,
|
| 135 |
+
-0.002681709360331297,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-1.9124475717544556,
|
| 140 |
+
-0.05420513078570366,
|
| 141 |
+
-0.0027775303460657597,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 0.5234375,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/expectations/cuda/t5-small.eager.json
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_revision": "f3f9d6fc9c219baae452736af8a928c091095c02",
|
| 5 |
+
"framework": "transformers",
|
| 6 |
+
"variant": "eager",
|
| 7 |
+
"target": "t5-small",
|
| 8 |
+
"kind": "checkpoint",
|
| 9 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 10 |
+
"environment": {
|
| 11 |
+
"python": "3.10.12",
|
| 12 |
+
"transformers": "5.19.0.dev0",
|
| 13 |
+
"torch": "2.11.0+cu128",
|
| 14 |
+
"torchvision": "0.26.0+cu128",
|
| 15 |
+
"torchaudio": "2.11.0+cu128",
|
| 16 |
+
"tokenizers": "0.23.1",
|
| 17 |
+
"numpy": "1.26.4",
|
| 18 |
+
"pillow": "12.2.0",
|
| 19 |
+
"accelerate": "1.13.0",
|
| 20 |
+
"safetensors": "0.8.0",
|
| 21 |
+
"huggingface-hub": "1.32.0",
|
| 22 |
+
"sentencepiece": "0.2.1",
|
| 23 |
+
"protobuf": "6.33.6",
|
| 24 |
+
"librosa": "0.11.0",
|
| 25 |
+
"soundfile": "0.13.1",
|
| 26 |
+
"scipy": "1.15.3",
|
| 27 |
+
"local_patches": [
|
| 28 |
+
"config-field-generation-params",
|
| 29 |
+
"masked-spec-embed-init",
|
| 30 |
+
"whisper-decode-tensor-batch"
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
"seconds": 8.13,
|
| 34 |
+
"platform": "cuda"
|
| 35 |
+
},
|
| 36 |
+
"outputs": {
|
| 37 |
+
"runtime": {
|
| 38 |
+
"device": "cuda",
|
| 39 |
+
"dtype": "float32",
|
| 40 |
+
"attn_implementation": "eager"
|
| 41 |
+
},
|
| 42 |
+
"generated_tokens": [
|
| 43 |
+
[
|
| 44 |
+
0,
|
| 45 |
+
644,
|
| 46 |
+
4598,
|
| 47 |
+
229,
|
| 48 |
+
19250,
|
| 49 |
+
5,
|
| 50 |
+
1,
|
| 51 |
+
0,
|
| 52 |
+
0,
|
| 53 |
+
0,
|
| 54 |
+
0,
|
| 55 |
+
0
|
| 56 |
+
],
|
| 57 |
+
[
|
| 58 |
+
0,
|
| 59 |
+
1674,
|
| 60 |
+
3,
|
| 61 |
+
13147,
|
| 62 |
+
15,
|
| 63 |
+
5462,
|
| 64 |
+
19219,
|
| 65 |
+
170,
|
| 66 |
+
110,
|
| 67 |
+
35,
|
| 68 |
+
5,
|
| 69 |
+
1
|
| 70 |
+
],
|
| 71 |
+
[
|
| 72 |
+
0,
|
| 73 |
+
3488,
|
| 74 |
+
229,
|
| 75 |
+
74,
|
| 76 |
+
26989,
|
| 77 |
+
58,
|
| 78 |
+
1,
|
| 79 |
+
0,
|
| 80 |
+
0,
|
| 81 |
+
0,
|
| 82 |
+
0,
|
| 83 |
+
0
|
| 84 |
+
],
|
| 85 |
+
[
|
| 86 |
+
0,
|
| 87 |
+
3,
|
| 88 |
+
26114,
|
| 89 |
+
9458,
|
| 90 |
+
55,
|
| 91 |
+
1,
|
| 92 |
+
0,
|
| 93 |
+
0,
|
| 94 |
+
0,
|
| 95 |
+
0,
|
| 96 |
+
0,
|
| 97 |
+
0
|
| 98 |
+
]
|
| 99 |
+
],
|
| 100 |
+
"generated_text": [
|
| 101 |
+
"Das Haus ist wunderbar.",
|
| 102 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 103 |
+
"Wo ist der Bahnhof?",
|
| 104 |
+
"Vielen Dank!"
|
| 105 |
+
],
|
| 106 |
+
"label_logprobs": [
|
| 107 |
+
[
|
| 108 |
+
-0.6655856370925903,
|
| 109 |
+
-0.15087217092514038,
|
| 110 |
+
-0.05508923903107643,
|
| 111 |
+
-0.5601856708526611,
|
| 112 |
+
-0.07581435889005661,
|
| 113 |
+
-0.01798067055642605,
|
| 114 |
+
0.0
|
| 115 |
+
],
|
| 116 |
+
[
|
| 117 |
+
-0.2801832854747772,
|
| 118 |
+
-2.1064717769622803,
|
| 119 |
+
-0.005225215572863817,
|
| 120 |
+
-0.7215183973312378,
|
| 121 |
+
-0.03396051004528999,
|
| 122 |
+
-0.02778967283666134,
|
| 123 |
+
-0.0026595955714583397
|
| 124 |
+
],
|
| 125 |
+
[
|
| 126 |
+
-0.15833419561386108,
|
| 127 |
+
-0.6513597369194031,
|
| 128 |
+
-0.052614975720644,
|
| 129 |
+
-0.07451485097408295,
|
| 130 |
+
-0.02021624892950058,
|
| 131 |
+
-0.0027169003151357174,
|
| 132 |
+
0.0
|
| 133 |
+
],
|
| 134 |
+
[
|
| 135 |
+
-1.9390723705291748,
|
| 136 |
+
-0.0535346157848835,
|
| 137 |
+
-0.0027341386303305626,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0,
|
| 141 |
+
0.0
|
| 142 |
+
]
|
| 143 |
+
],
|
| 144 |
+
"decoded_roundtrip": [
|
| 145 |
+
"Yes, it is.",
|
| 146 |
+
"Hello, world! How are you?"
|
| 147 |
+
],
|
| 148 |
+
"training": {
|
| 149 |
+
"loss": 0.6102843880653381,
|
| 150 |
+
"gradients": {
|
| 151 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 152 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 153 |
+
},
|
| 154 |
+
"updated": true
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
}
|
integrations/transformers/expectations/cuda/t5-small.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"recorded_with": {
|
| 3 |
+
"contract": "hf-internal-testing/T5-integration",
|
| 4 |
+
"contract_name": "T5",
|
| 5 |
+
"contract_revision": "2fe60bcd6fbdf615d93cd1599a5776459e7646bf",
|
| 6 |
+
"framework": "transformers",
|
| 7 |
+
"variant": "default",
|
| 8 |
+
"target": "t5-small",
|
| 9 |
+
"kind": "checkpoint",
|
| 10 |
+
"revision": "df1b051c49625cf57a3d0d8d3863ed4d13564fe4",
|
| 11 |
+
"environment": {
|
| 12 |
+
"python": "3.11.17",
|
| 13 |
+
"transformers": "5.19.0.dev0",
|
| 14 |
+
"torch": "2.11.0+cu128",
|
| 15 |
+
"torchvision": "0.26.0+cu128",
|
| 16 |
+
"torchaudio": "2.11.0+cu128",
|
| 17 |
+
"tokenizers": "0.23.1",
|
| 18 |
+
"numpy": "1.26.4",
|
| 19 |
+
"pillow": "12.2.0",
|
| 20 |
+
"accelerate": "1.13.0",
|
| 21 |
+
"safetensors": "0.8.0",
|
| 22 |
+
"huggingface-hub": "1.32.0",
|
| 23 |
+
"sentencepiece": "0.2.1",
|
| 24 |
+
"protobuf": "6.33.6",
|
| 25 |
+
"librosa": "0.11.0",
|
| 26 |
+
"soundfile": "0.13.1",
|
| 27 |
+
"scipy": "1.15.3",
|
| 28 |
+
"local_patches": [
|
| 29 |
+
"config-field-generation-params",
|
| 30 |
+
"masked-spec-embed-init",
|
| 31 |
+
"whisper-decode-tensor-batch"
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"seconds": 9.69,
|
| 35 |
+
"environment_differs": {
|
| 36 |
+
"python": "3.11.17 (pinned 3.10)"
|
| 37 |
+
},
|
| 38 |
+
"platform": "cuda"
|
| 39 |
+
},
|
| 40 |
+
"outputs": {
|
| 41 |
+
"runtime": {
|
| 42 |
+
"device": "cuda",
|
| 43 |
+
"dtype": "float32",
|
| 44 |
+
"attn_implementation": "sdpa"
|
| 45 |
+
},
|
| 46 |
+
"generated_tokens": [
|
| 47 |
+
[
|
| 48 |
+
0,
|
| 49 |
+
644,
|
| 50 |
+
4598,
|
| 51 |
+
229,
|
| 52 |
+
19250,
|
| 53 |
+
5,
|
| 54 |
+
1,
|
| 55 |
+
0,
|
| 56 |
+
0,
|
| 57 |
+
0,
|
| 58 |
+
0,
|
| 59 |
+
0
|
| 60 |
+
],
|
| 61 |
+
[
|
| 62 |
+
0,
|
| 63 |
+
1674,
|
| 64 |
+
3,
|
| 65 |
+
13147,
|
| 66 |
+
15,
|
| 67 |
+
5462,
|
| 68 |
+
19219,
|
| 69 |
+
170,
|
| 70 |
+
110,
|
| 71 |
+
35,
|
| 72 |
+
5,
|
| 73 |
+
1
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
0,
|
| 77 |
+
3488,
|
| 78 |
+
229,
|
| 79 |
+
74,
|
| 80 |
+
26989,
|
| 81 |
+
58,
|
| 82 |
+
1,
|
| 83 |
+
0,
|
| 84 |
+
0,
|
| 85 |
+
0,
|
| 86 |
+
0,
|
| 87 |
+
0
|
| 88 |
+
],
|
| 89 |
+
[
|
| 90 |
+
0,
|
| 91 |
+
3,
|
| 92 |
+
26114,
|
| 93 |
+
9458,
|
| 94 |
+
55,
|
| 95 |
+
1,
|
| 96 |
+
0,
|
| 97 |
+
0,
|
| 98 |
+
0,
|
| 99 |
+
0,
|
| 100 |
+
0,
|
| 101 |
+
0
|
| 102 |
+
]
|
| 103 |
+
],
|
| 104 |
+
"generated_text": [
|
| 105 |
+
"Das Haus ist wunderbar.",
|
| 106 |
+
"Ich nehme gerne B\u00fccher zu lesen.",
|
| 107 |
+
"Wo ist der Bahnhof?",
|
| 108 |
+
"Vielen Dank!"
|
| 109 |
+
],
|
| 110 |
+
"label_logprobs": [
|
| 111 |
+
[
|
| 112 |
+
-0.6655857563018799,
|
| 113 |
+
-0.1508723646402359,
|
| 114 |
+
-0.05508923903107643,
|
| 115 |
+
-0.5601853132247925,
|
| 116 |
+
-0.07581435889005661,
|
| 117 |
+
-0.01798067055642605,
|
| 118 |
+
0.0
|
| 119 |
+
],
|
| 120 |
+
[
|
| 121 |
+
-0.28018349409103394,
|
| 122 |
+
-2.106473207473755,
|
| 123 |
+
-0.005225215572863817,
|
| 124 |
+
-0.7215180397033691,
|
| 125 |
+
-0.03396051004528999,
|
| 126 |
+
-0.027789555490016937,
|
| 127 |
+
-0.0026595955714583397
|
| 128 |
+
],
|
| 129 |
+
[
|
| 130 |
+
-0.15833419561386108,
|
| 131 |
+
-0.651360273361206,
|
| 132 |
+
-0.05261486396193504,
|
| 133 |
+
-0.07451473921537399,
|
| 134 |
+
-0.02021624892950058,
|
| 135 |
+
-0.0027169003151357174,
|
| 136 |
+
0.0
|
| 137 |
+
],
|
| 138 |
+
[
|
| 139 |
+
-1.9390714168548584,
|
| 140 |
+
-0.05353472754359245,
|
| 141 |
+
-0.0027341386303305626,
|
| 142 |
+
0.0,
|
| 143 |
+
0.0,
|
| 144 |
+
0.0,
|
| 145 |
+
0.0
|
| 146 |
+
]
|
| 147 |
+
],
|
| 148 |
+
"decoded_roundtrip": [
|
| 149 |
+
"Yes, it is.",
|
| 150 |
+
"Hello, world! How are you?"
|
| 151 |
+
],
|
| 152 |
+
"training": {
|
| 153 |
+
"loss": 0.5836107730865479,
|
| 154 |
+
"gradients": {
|
| 155 |
+
"encoder.block.0.layer.0.SelfAttention.q.weight": true,
|
| 156 |
+
"decoder.block.0.layer.1.EncDecAttention.q.weight": true
|
| 157 |
+
},
|
| 158 |
+
"updated": true
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
}
|
integrations/transformers/usage.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# T5: text-to-text generation with Transformers
|
| 2 |
+
|
| 3 |
+
This page is the Transformers contract of the T5 MIC and also a usage example. [doc-builder](https://github.com/huggingface/doc-builder/blob/main/docs/runnable-code-blocks.md) renders the `runnable` blocks below as documentation, and its pytest plugin runs them as written against `google-t5/t5-small`. The MIC runner runs the same blocks against each slim fixture and each checkpoint in [`integration.json`](../../integration.json), including the UMT5 fixture: the usage path is the same, only the checkpoint changes. Lines marked `# doc-builder: hide` only matter there: they swap in the pinned checkpoint or variant and print the result record.
|
| 4 |
+
|
| 5 |
+
## Translate a batch
|
| 6 |
+
|
| 7 |
+
```py runnable:translate
|
| 8 |
+
import torch
|
| 9 |
+
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer, set_seed
|
| 10 |
+
import json # doc-builder: hide
|
| 11 |
+
import os # doc-builder: hide
|
| 12 |
+
|
| 13 |
+
model_id = "google-t5/t5-small"
|
| 14 |
+
model_id = os.environ.get("MIC_MODEL", model_id) # doc-builder: hide
|
| 15 |
+
variant = json.loads(os.environ.get("MIC_MODEL_KWARGS", "{}")) # doc-builder: hide
|
| 16 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 17 |
+
set_seed(0) # seeds torch, NumPy, and Python: loading, dropout, and data augmentation draw random numbers
|
| 18 |
+
|
| 19 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 20 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_id).to(device)
|
| 21 |
+
if variant: # doc-builder: hide
|
| 22 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_id, **variant).to(device)
|
| 23 |
+
|
| 24 |
+
sentences = ["The house is wonderful.", "I like to read books.", "Where is the train station?", "Thank you!"]
|
| 25 |
+
inputs = tokenizer([f"translate English to German: {s}" for s in sentences], return_tensors="pt", padding=True).to(device)
|
| 26 |
+
generated = model.generate(**inputs, max_new_tokens=12, do_sample=False)
|
| 27 |
+
print(tokenizer.batch_decode(generated, skip_special_tokens=True))
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## Decode a batch of token ids
|
| 31 |
+
|
| 32 |
+
`decode` accepts a batch and returns one string per sequence, cleaning up the spaces the tokenizer puts before punctuation.
|
| 33 |
+
|
| 34 |
+
```py runnable:translate:3
|
| 35 |
+
punctuated = ["Yes , it is .", "Hello , world ! How are you ?"]
|
| 36 |
+
roundtrip = tokenizer.decode(tokenizer(punctuated).input_ids, skip_special_tokens=True)
|
| 37 |
+
print(roundtrip)
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## One training step
|
| 41 |
+
|
| 42 |
+
```py runnable:translate:3
|
| 43 |
+
targets = ["Das Haus ist wunderbar.", "Ich lese gerne Bücher.", "Wo ist der Bahnhof?", "Danke!"]
|
| 44 |
+
labels = tokenizer(text_target=targets, return_tensors="pt", padding=True).input_ids.to(device)
|
| 45 |
+
labels[labels == tokenizer.pad_token_id] = -100
|
| 46 |
+
|
| 47 |
+
with torch.no_grad(): # doc-builder: hide
|
| 48 |
+
# Teacher-forced log-probabilities of the reference translations.
|
| 49 |
+
logprobs = model(**inputs, labels=labels).logits.float().log_softmax(-1)
|
| 50 |
+
label_logprobs = logprobs.gather(-1, labels.clamp(min=0)[..., None])[..., 0].masked_fill(labels == -100, 0.0)
|
| 51 |
+
|
| 52 |
+
model.train()
|
| 53 |
+
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)
|
| 54 |
+
loss = model(**inputs, labels=labels).loss
|
| 55 |
+
loss.backward()
|
| 56 |
+
before = {name: p.detach().clone() for name, p in model.named_parameters()} # doc-builder: hide
|
| 57 |
+
optimizer.step()
|
| 58 |
+
print(f"loss: {loss.item():.4f}")
|
| 59 |
+
|
| 60 |
+
if os.environ.get("MIC_RUNNER"): # doc-builder: hide
|
| 61 |
+
named = dict(model.named_parameters())
|
| 62 |
+
checked = ("encoder.block.0.layer.0.SelfAttention.q.weight", "decoder.block.0.layer.1.EncDecAttention.q.weight")
|
| 63 |
+
result = {
|
| 64 |
+
"runtime": {
|
| 65 |
+
"device": model.device.type,
|
| 66 |
+
"dtype": str(model.dtype).removeprefix("torch."),
|
| 67 |
+
"attn_implementation": model.config._attn_implementation,
|
| 68 |
+
},
|
| 69 |
+
"generated_tokens": generated.tolist(),
|
| 70 |
+
"generated_text": tokenizer.batch_decode(generated, skip_special_tokens=True),
|
| 71 |
+
"label_logprobs": label_logprobs.tolist(),
|
| 72 |
+
"decoded_roundtrip": roundtrip,
|
| 73 |
+
"training": {
|
| 74 |
+
"loss": loss.item(),
|
| 75 |
+
"gradients": {n: bool(named[n].grad is not None and torch.count_nonzero(named[n].grad) > 0 and torch.isfinite(named[n].grad).all()) for n in checked},
|
| 76 |
+
"updated": any(not torch.equal(p, before[n]) for n, p in named.items()),
|
| 77 |
+
},
|
| 78 |
+
}
|
| 79 |
+
print(json.dumps(result))
|
| 80 |
+
```
|