Sync from GitHub
Browse files- utils/pipeline_utils.py +1 -1
utils/pipeline_utils.py
CHANGED
@@ -12,7 +12,7 @@ import requests
|
|
12 |
import struct
|
13 |
from huggingface_hub import hf_hub_url
|
14 |
|
15 |
-
DTYPE_MAP = {"
|
16 |
|
17 |
|
18 |
# https://huggingface.co/docs/safetensors/v0.3.2/metadata_parsing#python
|
|
|
12 |
import struct
|
13 |
from huggingface_hub import hf_hub_url
|
14 |
|
15 |
+
DTYPE_MAP = {"F32": torch.float32, "F16": torch.float16, "BF16": torch.bfloat16}
|
16 |
|
17 |
|
18 |
# https://huggingface.co/docs/safetensors/v0.3.2/metadata_parsing#python
|