microsoft main
PYTHON
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 130 |
# Force float32 since bfloat16 loses precision on long contexts |
|
| 131 |
# See https://github.com/huggingface/transformers/pull/29285 |
|
| 132 |
device_type = x.device.type |
Munin metric value output |
| 133 |
device_type = device_type if isinstance(device_type, str) and device_type != "mps" else "cpu" |
|
| 134 |
with torch.autocast(device_type=device_type, enabled=False): |
|
| 559 |
): |
|
| 560 |
""" |
|
| 561 |
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token |
Credential-access vocabulary word: token |
| 562 |
first unpad the input, then computes the attention scores and pad the final attention scores. |
|
Well-known
| 130 |
# Force float32 since bfloat16 loses precision on long contexts |
|
| 131 |
# See https://github.com/huggingface/transformers/pull/29285 |
|
| 132 |
device_type = x.device.type |
|
| 133 |
device_type = device_type if isinstance(device_type, str) and device_type != "mps" else "cpu" |
|
| 134 |
with torch.autocast(device_type=device_type, enabled=False): |
|
Metadata
Identity
| SHA-256 |
e737b46584be3ee907165eab54d8b18a18214acca4392a3ac9cbf37dbf9d3302 |
| Filename |
modeling_phi3.py |
| Package |
microsoft |
| Version |
main |
| PURL |
pkg:huggingface/microsoft@main |
Timeline
| First seen |
29 Jun 2026 02:12 UTC |
| First analyzed |
29 Jun 2026 02:19 UTC |
| Last analyzed |
29 Jun 2026 02:19 UTC |
| Last updated |
29 Jun 2026 02:19 UTC |
Labeling
| Label |
good |
| Label source |
harvest |
| Traits version |
46112 |