dacorvo HF Staff commited on
Commit
d3f02ce
·
verified ·
1 Parent(s): 22e2ed4

Results from neuronxcc-2.28.7631.0+8f7b0cf5

Browse files
README.md CHANGED
@@ -5,7 +5,6 @@ tags:
5
  - neuron
6
  - trainium
7
  - transformers
8
- - sentence-transformers
9
  configs:
10
  - config_name: default
11
  data_files:
@@ -18,9 +17,8 @@ configs:
18
  Which Hugging Face Hub models run unmodified on AWS Trainium, through the
19
  native PyTorch backend
20
  [`torch-neuronx`](https://github.com/aws-neuron/torch-neuronx), for each
21
- `neuronx-cc` and library version tested. Tested libraries are
22
- [`transformers`](https://github.com/huggingface/transformers) and
23
- [`sentence-transformers`](https://github.com/huggingface/sentence-transformers).
24
 
25
  To look up a model, use the
26
  [Space](https://huggingface.co/spaces/aws-neuron/torch-neuronx-model-support).
@@ -103,104 +101,6 @@ run 100 models, skipping those whose test script has not changed since their
103
  last run. Quantized checkpoints and models that need `trust_remote_code` are
104
  left out. A model that leaves the list keeps the results it already has.
105
 
106
- ## sentence-transformers
107
-
108
- The 2026-11-03 sweep covers the top 100 models in each Hub listing tagged
109
- `sentence-transformers`: [Trending](https://huggingface.co/models?library=sentence-transformers&sort=trending)
110
- and [Downloads](https://huggingface.co/models?library=sentence-transformers&sort=downloads).
111
- There are 164 distinct checkpoints, with 36 appearing in both lists. The exact
112
- ordered lists, checkpoint revisions, and capture time are frozen in
113
- `validation/sentence-transformers/2026-11-03-top100/`. Every eligible checkpoint
114
- was tested afresh; failures were not replaced with passing models. SparseEncoder,
115
- non-native quantized formats, and unrelated classification tasks have explicit
116
- `EXCLUDED` records. `selection_rank` records the snapshot's Trending rank;
117
- Downloads ranks are in the raw results and row notes. The Space's Trending and
118
- Downloads views use the live Hub ordering, which can change after this snapshot.
119
-
120
- | Snapshot | PASS | Output check failed | Load/forward failed | Excluded | Total |
121
- |---|---:|---:|---:|---:|---:|
122
- | Trending | 71 | 10 | 9 | 10 | 100 |
123
- | Downloads | 80 | 6 | 12 | 2 | 100 |
124
- | Unique models | 119 | 15 | 18 | 12 | 164 |
125
-
126
- All 33 failed checkpoints were rerun after access was granted to the two gated
127
- repositories. Their outcome categories are unchanged, but the current errors and
128
- measurements are from these fresh runs. `litert-community/embeddinggemma-300m`
129
- contains TFLite exports rather than a native Transformers checkpoint and fails
130
- model loading; `google/embeddinggemma-300m` already passes. `nvidia/NV-Embed-v1`
131
- now reaches its required custom code (`trust_remote_code=True`), which imports
132
- `MISTRAL_INPUTS_DOCSTRING`, unavailable in the tested Transformers 5.22.1 stack.
133
- Neither current failure is an access error. The comparison is recorded in
134
- `validation/sentence-transformers/2026-11-03-top100/failed-rerun-1.json`;
135
- previous scripts, logs, results, and captured memory samples are preserved under
136
- `prior_runs/failed-rerun-1/` in the same directory.
137
-
138
- SentenceTransformer uses `encode_query`, `encode_document`, and `similarity`;
139
- CrossEncoder uses `predict` on query/document pairs; MultiVectorEncoder uses
140
- query/document encoding followed by native MaxSim. Saved retrieval prompts are
141
- applied, with model-card task/prompt overrides recorded in each script where
142
- needed. All three paths aim to produce four scores on `neuron:0`, with batch size 4:
143
-
144
- ```python
145
- query = "Which planet is known as the Red Planet?"
146
- documents = [
147
- "Venus is often called Earth's twin because of its similar size and proximity.",
148
- "Mars, known for its reddish appearance, is often referred to as the Red Planet.",
149
- "Jupiter, the largest planet in our solar system, has a prominent red spot.",
150
- "Saturn, famous for its rings, is sometimes mistaken for the Red Planet.",
151
- ]
152
- ```
153
-
154
- `PASS` requires native Neuron execution, four finite scores, Mars ranked first,
155
- CPU score agreement at the same precision (`atol=rtol=0.001`), and a stable repeat
156
- with the same tolerance. `FAIL(output)` means execution completed but a ranking,
157
- parity, or repeat check failed. A ranking failure can also occur on CPU; it does
158
- not by itself indicate a Neuron defect. Loading and forward failures include
159
- CPU-side incompatibilities, unsupported checkpoint formats, and native-device
160
- errors; the recorded stage and traceback distinguish them. Scores are in original
161
- document order and are not comparable between models. Results describe this
162
- configuration and example, not universal model support or retrieval quality.
163
-
164
- The sweep uses native eager PyTorch, without an explicit `torch.compile` wrapper,
165
- on one logical Neuron device per model on Trainium2. Four independent workers
166
- use separate physical devices; this is not tensor parallelism. SDPA is preferred,
167
- with eager attention retried where a checkpoint does not support it. FP32 is the
168
- default, with BF16 for large models or after allocation failure. Final precision,
169
- attention, configuration overrides, and earlier attempts are retained. Some
170
- checkpoints require `trust_remote_code=True`; checkpoint revisions are pinned,
171
- but remote code referenced from another repository is not separately pinned.
172
- Transformers is 5.22.1, and Sentence Transformers is pinned to commit
173
- `6be0abf38d00d70bb3c732131df59ad073ff3768` (6.3.0.dev0). The compiler is
174
- `neuronx-cc 2.28.4568.0+0163fa9e`; each row and script record the tested stack.
175
-
176
- This validates one text retrieval example, not throughput, training, image/audio
177
- inputs, tensor parallelism, or multi-device execution. The memory columns report
178
- the highest observed sum of Neuron runtime HBM categories (tensors, code,
179
- constants, scratchpad, miscellaneous runtime allocations, and DMA rings), sampled
180
- in-process at a target interval of 100 ms. Monitoring begins before model transfer
181
- and ends after the final inference is synchronized. Capacity comes from
182
- `torch.neuron.get_device_properties(0).total_memory`: 24 GiB on this instance.
183
- Values use GiB (bytes / 2**30), matching existing dataset entries despite the
184
- Space's `Memory (GB)` label. Short transients between samples may be missed.
185
- Allocator high-water marks are retained separately in raw results. The installed
186
- `neuron-monitor` did not discover these native processes, so runtime HBM counters
187
- were queried directly. Failed runs without a completed capture leave memory
188
- empty rather than recording zero. Per-category samples are retained under the
189
- sweep's `memory_samples/` directory.
190
-
191
- Wall time covers imports, loading, the CPU reference, first Neuron execution and
192
- compilation, the repeat, and monitoring overhead. It is not per-query inference
193
- latency, and concurrent workers can affect timing. `runner` names the encoder
194
- class; `neuron_cores=1` means one logical device, not a tensor-parallel degree.
195
-
196
- Full scores, configuration, prior attempts, and per-view counts are in
197
- `validation/sentence-transformers/2026-11-03-top100/results.json`, with a compact
198
- `results.csv` alongside it. Each tested row includes its standalone `run_py`,
199
- which writes `result.json` and exits nonzero when validation fails. Failure logs
200
- are retained in `logs/`. No compiled cache was published. The earlier top-10
201
- study and supplementary MultiVectorEncoder remain available in
202
- `validation/sentence-transformers/2026-11-03/` as historical evidence.
203
-
204
  ## Layout
205
 
206
  There is one file per Neuron target (`trn2`, `trn3`) and tested
 
5
  - neuron
6
  - trainium
7
  - transformers
 
8
  configs:
9
  - config_name: default
10
  data_files:
 
17
  Which Hugging Face Hub models run unmodified on AWS Trainium, through the
18
  native PyTorch backend
19
  [`torch-neuronx`](https://github.com/aws-neuron/torch-neuronx), for each
20
+ `neuronx-cc` and library version tested. The only library tested so far is
21
+ [`transformers`](https://github.com/huggingface/transformers).
 
22
 
23
  To look up a model, use the
24
  [Space](https://huggingface.co/spaces/aws-neuron/torch-neuronx-model-support).
 
101
  last run. Quantized checkpoints and models that need `trust_remote_code` are
102
  left out. A model that leaves the list keeps the results it already has.
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  ## Layout
105
 
106
  There is one file per Neuron target (`trn2`, `trn3`) and tested
data/trn2/neuronxcc-2.28.7631.0+8f7b0cf5/transformers-5.22.1.parquet CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7e855481a7e894011298c98e89b1cdc5e2be2770f8f07e3e3cd637be7e0db904
3
- size 882237
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d81e7876183b15b0a5b0be8a7a0a1fe7fbc3db54df4e912061420f58ba15ed5
3
+ size 884470