diichen commited on
Commit
7960759
·
verified ·
1 Parent(s): 9381c2d

Add files using upload-large-folder tool

Browse files
model.safetensors.index.json CHANGED
The diff for this file is too large to render. See raw diff
 
model_00001-of-00080.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0739930e842bb5a86662e1d67f8c545d9ea230d5c57714354b7e34c82ed9a9c7
3
+ size 1610612880
model_00002-of-00080.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
+ size 48
model_00003-of-00080.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
+ size 48
model_00004-of-00080.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
+ size 48
model_00005-of-00080.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
+ size 48
model_00006-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0739930e842bb5a86662e1d67f8c545d9ea230d5c57714354b7e34c82ed9a9c7
3
- size 1610612880
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b744394fd0184b47ad5dd41d1f18e5ba86a7f39c9d751c1312000bcc1a45d6e
3
+ size 15953918680
model_00007-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
- size 48
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31aab2325632b27ee496e8f6dc004674288c85245331ff73a908a1c94f18e275
3
+ size 15918289608
model_00008-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
- size 48
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0923b82637807507c876cc3b08d566caa20b0371f50da986c8c1519728584ee6
3
+ size 15852491488
model_00009-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
- size 48
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0bcca8e97b15ed9d955aad63f4584b94ccf3ebc898b8774573e4a1f187ed518
3
+ size 16111199992
model_00010-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e44ce263e6fd885f50d82ca515b9325375b43ee36ededb75acf161ce88bc2e41
3
- size 48
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42a27f00c1962f37a158b37d69784b1d5e2dce5bbd73cabf73a0965fd0501eb4
3
+ size 16048279128
model_00011-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7b744394fd0184b47ad5dd41d1f18e5ba86a7f39c9d751c1312000bcc1a45d6e
3
  size 15953918680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdd2411cce434a2469cf023fb6fe193147ce693cb8bd64ffc585d5489b2dd85e
3
  size 15953918680
model_00012-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:31aab2325632b27ee496e8f6dc004674288c85245331ff73a908a1c94f18e275
3
  size 15918289608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee9b9c8370f7b1dbed80225a816d378a112ed52132d5ec667f3e9dd7043c8982
3
  size 15918289608
model_00013-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0923b82637807507c876cc3b08d566caa20b0371f50da986c8c1519728584ee6
3
  size 15852491488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0c54ae6ca7cd3144a6b7028c27e3fbe959a056f7120da3fcd83ead126d8c95c
3
  size 15852491488
model_00014-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0bcca8e97b15ed9d955aad63f4584b94ccf3ebc898b8774573e4a1f187ed518
3
  size 16111199992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb540e6244bcf1aef6614481443a1cd785a1b868953886667e796b6a2220d538
3
  size 16111199992
model_00015-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:42a27f00c1962f37a158b37d69784b1d5e2dce5bbd73cabf73a0965fd0501eb4
3
  size 16048279128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bf32626e4b6cd01a6e4e2a71e2631e986ae47b94af32a2f8ebdeef5473e14db
3
  size 16048279128
model_00016-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bdd2411cce434a2469cf023fb6fe193147ce693cb8bd64ffc585d5489b2dd85e
3
  size 15953918680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0d99af3e8fecbb229cac4ed0e9d39b555a6e86abb069b1eb68cc12ad7a9d65e
3
  size 15953918680
model_00017-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ee9b9c8370f7b1dbed80225a816d378a112ed52132d5ec667f3e9dd7043c8982
3
  size 15918289608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b96034ec959b45273cb66bbf63940210f958eaeb962e1bf4da2dffe716ece71
3
  size 15918289608
model_00018-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b0c54ae6ca7cd3144a6b7028c27e3fbe959a056f7120da3fcd83ead126d8c95c
3
  size 15852491488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae04faa2f8abc37e2aa992929d8a7fef9ec771e63344b952c92e23c2d285c525
3
  size 15852491488
model_00019-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bb540e6244bcf1aef6614481443a1cd785a1b868953886667e796b6a2220d538
3
  size 16111199992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54942379fa2969eab782d01bf8d1891c685890a3c470b8431f427406fab2b606
3
  size 16111199992
model_00020-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6bf32626e4b6cd01a6e4e2a71e2631e986ae47b94af32a2f8ebdeef5473e14db
3
  size 16048279128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72157629e7f74c4ef8831a334b40efe93b7c03744a1a54514488cc9011fbc8a0
3
  size 16048279128
model_00021-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a0d99af3e8fecbb229cac4ed0e9d39b555a6e86abb069b1eb68cc12ad7a9d65e
3
  size 15953918680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29e85eb3cd7b4dff4889e38501af42aaf16b7237f83622195c4115803982551d
3
  size 15953918680
model_00022-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b96034ec959b45273cb66bbf63940210f958eaeb962e1bf4da2dffe716ece71
3
  size 15918289608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7760c0e0fe4f02cc6d5c8fe099bdd1049b2ef3a6b1afe8872d5300f277e0ec3a
3
  size 15918289608
model_00023-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ae04faa2f8abc37e2aa992929d8a7fef9ec771e63344b952c92e23c2d285c525
3
  size 15852491488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98161d555f0750b5e0f420f5aca0a3a69760ae74c2a9d3359eda0f9038ddf1cd
3
  size 15852491488
model_00024-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:54942379fa2969eab782d01bf8d1891c685890a3c470b8431f427406fab2b606
3
  size 16111199992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:599ef83350116b3247ce19cac87c502dfd5b5b2ba6fcce2304eb6395bbace8a8
3
  size 16111199992
model_00025-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72157629e7f74c4ef8831a334b40efe93b7c03744a1a54514488cc9011fbc8a0
3
  size 16048279128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cb646c661f276d19267820f271efe4227fc6000b383f3057cd1f78f2210ea82
3
  size 16048279128
model_00026-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:29e85eb3cd7b4dff4889e38501af42aaf16b7237f83622195c4115803982551d
3
  size 15953918680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83fc5dd48b2dfa2d752f559e1c449c593a56ccd02108d610a45bc36530c89039
3
  size 15953918680
model_00027-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7760c0e0fe4f02cc6d5c8fe099bdd1049b2ef3a6b1afe8872d5300f277e0ec3a
3
  size 15918289608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba0f653bac6db2981b25a3eee1405a9f3102bd2dfc39245ad69cbbd3ed271ea2
3
  size 15918289608
model_00028-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:98161d555f0750b5e0f420f5aca0a3a69760ae74c2a9d3359eda0f9038ddf1cd
3
  size 15852491488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d69ab73062467f436dfb0e864d4586fcc76228386ecd6bf47b4208fa74b37a46
3
  size 15852491488
model_00029-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:599ef83350116b3247ce19cac87c502dfd5b5b2ba6fcce2304eb6395bbace8a8
3
  size 16111199992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19a5333380e24abc9ec6264b14002da142803762b3b9dd3b1be5aa26ba519b48
3
  size 16111199992
model_00030-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0cb646c661f276d19267820f271efe4227fc6000b383f3057cd1f78f2210ea82
3
  size 16048279128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5a0974c5e6a04ab2c718fa2858ade42b877cab87dd6256ea6b5a857e0e6d685
3
  size 16048279128
model_00031-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:83fc5dd48b2dfa2d752f559e1c449c593a56ccd02108d610a45bc36530c89039
3
- size 15953918680
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03a6400e25994e94dc4094497f2aa22d428622cc692b71c6a8b1e0da66e7ae5a
3
+ size 15953919304
model_00032-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ba0f653bac6db2981b25a3eee1405a9f3102bd2dfc39245ad69cbbd3ed271ea2
3
- size 15918289608
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb6e570622a03d425e5c4a317d3018c541bf865993927a5111aa854c3038ce29
3
+ size 15918290232
model_00033-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d69ab73062467f436dfb0e864d4586fcc76228386ecd6bf47b4208fa74b37a46
3
- size 15852491488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:308d665912c8bee46a9b831d07c61497ebce03c0fe0f17bb50fecff18b2db5f8
3
+ size 15852492112
model_00034-of-00080.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:19a5333380e24abc9ec6264b14002da142803762b3b9dd3b1be5aa26ba519b48
3
- size 16111199992
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee72d7c3f5008ff03c3c7d44a4527eb124fb35da1e624290bfec9d759f3368d9
3
+ size 16111200616
rename_index.py ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json
2
+ import re
3
+
4
+ input_path = 'model.safetensors.index.json'
5
+ output_path = 'model.safetensors.index.json2'
6
+
7
+ # 匹配 model_xxxxx-of-nnnnn.safetensors
8
+ pattern = re.compile(r'(model_)(\d{5})(-of-\d{5}\.safetensors)')
9
+
10
+ with open(input_path, 'r', encoding='utf-8') as fin:
11
+ data = json.load(fin)
12
+
13
+ weight_map = data.get('weight_map', {})
14
+
15
+ new_weight_map = {}
16
+ for k, v in weight_map.items():
17
+ match = pattern.match(v)
18
+ if match:
19
+ prefix, x_str, suffix = match.groups()
20
+ x = int(x_str)
21
+ new_x = x - 5
22
+ if new_x < 1:
23
+ print(f"警告:{v} 的新索引小于1,已设为1")
24
+ new_x = 1
25
+ new_x_str = f"{new_x:05d}"
26
+ new_v = f"{prefix}{new_x_str}{suffix}"
27
+ new_weight_map[k] = new_v
28
+ else:
29
+ new_weight_map[k] = v # 保持原样
30
+
31
+ data['weight_map'] = new_weight_map
32
+
33
+ with open(output_path, 'w', encoding='utf-8') as fout:
34
+ json.dump(data, fout, ensure_ascii=False, indent=2)
35
+
36
+ print(f"已保存到 {output_path}")