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.
|
| 22 |
-
[`transformers`](https://github.com/huggingface/transformers)
|
| 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,65 +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 |
-
Each run scores one query against four documents using `SentenceTransformer`,
|
| 109 |
-
`CrossEncoder`, or `MultiVectorEncoder`. SentenceTransformer encodes the query
|
| 110 |
-
and documents and computes their similarity; CrossEncoder predicts a score for
|
| 111 |
-
each query/document pair; MultiVectorEncoder compares token embeddings with
|
| 112 |
-
MaxSim. Saved retrieval prompts and any model-specific task settings are recorded
|
| 113 |
-
in the run script. All three paths use batch size 4 and the same input:
|
| 114 |
-
|
| 115 |
-
```python
|
| 116 |
-
query = "Which planet is known as the Red Planet?"
|
| 117 |
-
documents = [
|
| 118 |
-
"Venus is often called Earth's twin because of its similar size and proximity.",
|
| 119 |
-
"Mars, known for its reddish appearance, is often referred to as the Red Planet.",
|
| 120 |
-
"Jupiter, the largest planet in our solar system, has a prominent red spot.",
|
| 121 |
-
"Saturn, famous for its rings, is sometimes mistaken for the Red Planet.",
|
| 122 |
-
]
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
-
The model runs on CPU for reference, then on one logical Neuron device using
|
| 126 |
-
native eager PyTorch. The optional compile sweep uses `model.compile()` with the
|
| 127 |
-
Neuron backend for model forward calls; tokenization and similarity scoring
|
| 128 |
-
remain outside that wrapper. It applies the same checks and records the mode and
|
| 129 |
-
number of compiled graphs. Compile results are kept locally because the published
|
| 130 |
-
schema does not distinguish execution modes.
|
| 131 |
-
|
| 132 |
-
FP32 is the default, with BF16 for large checkpoints or
|
| 133 |
-
following an allocation failure. SDPA is preferred, with eager attention retried
|
| 134 |
-
when unsupported by the checkpoint. Each script records the checkpoint revision,
|
| 135 |
-
Sentence Transformers source commit, compiler version, and final settings.
|
| 136 |
-
Checkpoints that require custom code load with `trust_remote_code=True`.
|
| 137 |
-
|
| 138 |
-
`PASS` requires four finite Neuron scores, Mars ranked first, CPU agreement at
|
| 139 |
-
the same precision (`atol=rtol=0.001`), a stable repeat with the same tolerance,
|
| 140 |
-
and a completed device-memory capture. `FAIL(output)` means a ranking, parity,
|
| 141 |
-
or repeat check failed after execution. A ranking failure can also occur on CPU;
|
| 142 |
-
it does not by itself indicate a Neuron defect. Loading and forward failures
|
| 143 |
-
record their stage and traceback. Scores retain document order and are not
|
| 144 |
-
comparable between models. This checks one retrieval example, not general
|
| 145 |
-
retrieval quality or throughput.
|
| 146 |
-
|
| 147 |
-
Memory is the highest observed sum of runtime HBM categories, sampled every
|
| 148 |
-
100 ms from before model transfer until the final inference is synchronized.
|
| 149 |
-
Capacity comes from the device properties. Values use GiB (bytes / 2**30),
|
| 150 |
-
despite the Space's historical `Memory (GB)` label. Short peaks between samples
|
| 151 |
-
may be missed; incomplete captures leave memory empty. Wall time includes
|
| 152 |
-
imports, loading, the CPU reference, Neuron compilation and inference, the repeat,
|
| 153 |
-
and monitoring. It is not per-query latency. `runner` names the encoder class;
|
| 154 |
-
`neuron_cores=1` denotes one logical device, with no tensor parallelism.
|
| 155 |
-
|
| 156 |
-
Selection takes the exact top 100 models from each Hub listing tagged
|
| 157 |
-
`sentence-transformers`, by Trending and Downloads, and tests their deduplicated
|
| 158 |
-
union. Sparse encoders, GGUF/MLX and quantized checkpoints, and unrelated
|
| 159 |
-
classification tasks are excluded; excluded or failing entries are not replaced.
|
| 160 |
-
The saved selection retains both ranks and checkpoint revisions. `selection_rank`
|
| 161 |
-
is the Trending rank; Downloads ranks appear in notes and raw results. Scripts,
|
| 162 |
-
logs, scores, memory samples, and prior attempts are saved under
|
| 163 |
-
`validation/sentence-transformers/` in the dataset.
|
| 164 |
-
|
| 165 |
## Layout
|
| 166 |
|
| 167 |
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/trn3/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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9892b4a7f6781aaecc7903e5f9652bb406b36837ff459acbfdfc48e4d9f518ee
|
| 3 |
+
size 1329499
|