Replace with portable 4096-d speaker head
Browse files- README.md +3 -3
- export_manifest.json +131 -0
- metrics.json +0 -16
- speaker_head.pt → speaker_head.safetensors +2 -2
- speaker_head_cpu.pt +3 -0
- speaker_label_map.json +0 -0
README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
--
|
|
|
|
| 1 |
+
# Portable Speaker Head
|
| 2 |
+
|
| 3 |
+
This directory was exported from an Ascend/NPU checkpoint. It contains inference-only, CPU tensors and does not require `torch_npu` to load. Prefer `speaker_head.safetensors` in CUDA/runtime integrations. `speaker_head_cpu.pt` is an equivalent CPU-only PyTorch checkpoint with payload key `speaker_head`. See `export_manifest.json` for hashes and exact validation results.
|
export_manifest.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"artifacts": {
|
| 3 |
+
"config.json": {
|
| 4 |
+
"bytes": 914,
|
| 5 |
+
"sha256": "21d52e5f9df53913e1175f8201b43ff15ec25be0618ad4416d97a963b80ae004"
|
| 6 |
+
},
|
| 7 |
+
"speaker_head.safetensors": {
|
| 8 |
+
"bytes": 39912720,
|
| 9 |
+
"sha256": "8c1e662886a3470c56777b6695b3a24b1b3ec44c6a2f91dbcda3aef4708c81cd"
|
| 10 |
+
},
|
| 11 |
+
"speaker_head_cpu.pt": {
|
| 12 |
+
"bytes": 39916519,
|
| 13 |
+
"sha256": "4ecea48baa199e61f1eeb48f2bbd6995a6d76c68c0c7ce957ad1c6387d45ded0"
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"format_version": "speaker_head_portable_cpu_v1",
|
| 17 |
+
"source": {
|
| 18 |
+
"checkpoint": "/home/zhangchao/project/salmonn_omni_transform_v2_siyuan/siyuanTest/train_speaker_embedding/outputs/mix_5_7_8_ddp_4096_proj1024_min8/best/speaker_head.pt",
|
| 19 |
+
"checkpoint_sha256": "92351f854ca9ba634af8703ca24a0486f67000b7c024cf133d2e9e63468acf66",
|
| 20 |
+
"config": "/home/zhangchao/project/salmonn_omni_transform_v2_siyuan/siyuanTest/train_speaker_embedding/outputs/mix_5_7_8_ddp_4096_proj1024_min8/best/config.json",
|
| 21 |
+
"config_sha256": "21d52e5f9df53913e1175f8201b43ff15ec25be0618ad4416d97a963b80ae004"
|
| 22 |
+
},
|
| 23 |
+
"speaker_head": {
|
| 24 |
+
"parameter_count": 9977860,
|
| 25 |
+
"tensor_count": 13,
|
| 26 |
+
"tensors": {
|
| 27 |
+
"frame_projection.0.bias": {
|
| 28 |
+
"dtype": "torch.float32",
|
| 29 |
+
"numel": 1024,
|
| 30 |
+
"shape": [
|
| 31 |
+
1024
|
| 32 |
+
]
|
| 33 |
+
},
|
| 34 |
+
"frame_projection.0.weight": {
|
| 35 |
+
"dtype": "torch.float32",
|
| 36 |
+
"numel": 1310720,
|
| 37 |
+
"shape": [
|
| 38 |
+
1024,
|
| 39 |
+
1280
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
"input_norm.bias": {
|
| 43 |
+
"dtype": "torch.float32",
|
| 44 |
+
"numel": 1280,
|
| 45 |
+
"shape": [
|
| 46 |
+
1280
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"input_norm.weight": {
|
| 50 |
+
"dtype": "torch.float32",
|
| 51 |
+
"numel": 1280,
|
| 52 |
+
"shape": [
|
| 53 |
+
1280
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
"layer_logits": {
|
| 57 |
+
"dtype": "torch.float32",
|
| 58 |
+
"numel": 3,
|
| 59 |
+
"shape": [
|
| 60 |
+
3
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
"output_norm.bias": {
|
| 64 |
+
"dtype": "torch.float32",
|
| 65 |
+
"numel": 4096,
|
| 66 |
+
"shape": [
|
| 67 |
+
4096
|
| 68 |
+
]
|
| 69 |
+
},
|
| 70 |
+
"output_norm.weight": {
|
| 71 |
+
"dtype": "torch.float32",
|
| 72 |
+
"numel": 4096,
|
| 73 |
+
"shape": [
|
| 74 |
+
4096
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"output_projection.bias": {
|
| 78 |
+
"dtype": "torch.float32",
|
| 79 |
+
"numel": 4096,
|
| 80 |
+
"shape": [
|
| 81 |
+
4096
|
| 82 |
+
]
|
| 83 |
+
},
|
| 84 |
+
"output_projection.weight": {
|
| 85 |
+
"dtype": "torch.float32",
|
| 86 |
+
"numel": 8388608,
|
| 87 |
+
"shape": [
|
| 88 |
+
4096,
|
| 89 |
+
2048
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
"pooling.attention.0.bias": {
|
| 93 |
+
"dtype": "torch.float32",
|
| 94 |
+
"numel": 256,
|
| 95 |
+
"shape": [
|
| 96 |
+
256
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
"pooling.attention.0.weight": {
|
| 100 |
+
"dtype": "torch.float32",
|
| 101 |
+
"numel": 262144,
|
| 102 |
+
"shape": [
|
| 103 |
+
256,
|
| 104 |
+
1024
|
| 105 |
+
]
|
| 106 |
+
},
|
| 107 |
+
"pooling.attention.2.bias": {
|
| 108 |
+
"dtype": "torch.float32",
|
| 109 |
+
"numel": 1,
|
| 110 |
+
"shape": [
|
| 111 |
+
1
|
| 112 |
+
]
|
| 113 |
+
},
|
| 114 |
+
"pooling.attention.2.weight": {
|
| 115 |
+
"dtype": "torch.float32",
|
| 116 |
+
"numel": 256,
|
| 117 |
+
"shape": [
|
| 118 |
+
1,
|
| 119 |
+
256
|
| 120 |
+
]
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"validation": {
|
| 125 |
+
"cpu_pt_contains_torch_npu_reference": false,
|
| 126 |
+
"cpu_pt_exact_tensor_match": true,
|
| 127 |
+
"forward_max_abs_error": 0.0,
|
| 128 |
+
"safetensors_exact_tensor_match": true,
|
| 129 |
+
"strict_speaker_head_load": true
|
| 130 |
+
}
|
| 131 |
+
}
|
metrics.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"speaker_count": 1151,
|
| 3 |
-
"embedding_count": 12000,
|
| 4 |
-
"positive_pairs": 50000,
|
| 5 |
-
"negative_pairs": 50000,
|
| 6 |
-
"eer": 0.026460000000000018,
|
| 7 |
-
"eer_threshold": 0.21380455791950226,
|
| 8 |
-
"auc": 0.9962478252,
|
| 9 |
-
"same_mean": 0.6784662008285522,
|
| 10 |
-
"diff_mean": 0.0021326725836843252,
|
| 11 |
-
"top1": 0.970284563082347,
|
| 12 |
-
"open_eer": 0.045812369269037256,
|
| 13 |
-
"known_best_mean": 0.775897741317749,
|
| 14 |
-
"unknown_best_mean": 0.37951692938804626,
|
| 15 |
-
"step": 12000
|
| 16 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
speaker_head.pt → speaker_head.safetensors
RENAMED
|
@@ -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:8c1e662886a3470c56777b6695b3a24b1b3ec44c6a2f91dbcda3aef4708c81cd
|
| 3 |
+
size 39912720
|
speaker_head_cpu.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ecea48baa199e61f1eeb48f2bbd6995a6d76c68c0c7ce957ad1c6387d45ded0
|
| 3 |
+
size 39916519
|
speaker_label_map.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|