safetensors 0.1.0-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/Cargo.lock +414 -0
- data/Cargo.toml +6 -0
- data/LICENSE-THIRD-PARTY.txt +7527 -0
- data/LICENSE.txt +201 -0
- data/README.md +67 -0
- data/lib/safetensors/3.1/safetensors.so +0 -0
- data/lib/safetensors/3.2/safetensors.so +0 -0
- data/lib/safetensors/3.3/safetensors.so +0 -0
- data/lib/safetensors/numo.rb +93 -0
- data/lib/safetensors/torch.rb +141 -0
- data/lib/safetensors/version.rb +3 -0
- data/lib/safetensors.rb +37 -0
- metadata +58 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 032d01d65aadb45e0430bad6d6e010f7b10c4814d3ee71d21ea1a0b397b1b260
|
4
|
+
data.tar.gz: e22821d2b164fdbd9e6074b0b5d715756dc404c4d8720dffdceebb9dabaa302f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 24b20f5e24799679d9990857506c75d641ff5266b92d1103850f3b17a09abb51f91531b0efaecd3908812db4969397cd16e77ff47c9d24eadb3e5384c08e3c7f
|
7
|
+
data.tar.gz: d487633a63a0e46bf89944d86e03c70e2be865ea03a0874e4de720d06bb9f3e16ebf2e52c9e8123d542561316aca532632af2fcd940df0d77a17818d597970d4
|
data/CHANGELOG.md
ADDED
data/Cargo.lock
ADDED
@@ -0,0 +1,414 @@
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
2
|
+
# It is not intended for manual editing.
|
3
|
+
version = 3
|
4
|
+
|
5
|
+
[[package]]
|
6
|
+
name = "aho-corasick"
|
7
|
+
version = "1.1.2"
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
9
|
+
checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
|
10
|
+
dependencies = [
|
11
|
+
"memchr",
|
12
|
+
]
|
13
|
+
|
14
|
+
[[package]]
|
15
|
+
name = "bindgen"
|
16
|
+
version = "0.69.4"
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
+
checksum = "a00dc851838a2120612785d195287475a3ac45514741da670b735818822129a0"
|
19
|
+
dependencies = [
|
20
|
+
"bitflags",
|
21
|
+
"cexpr",
|
22
|
+
"clang-sys",
|
23
|
+
"itertools",
|
24
|
+
"lazy_static",
|
25
|
+
"lazycell",
|
26
|
+
"proc-macro2",
|
27
|
+
"quote",
|
28
|
+
"regex",
|
29
|
+
"rustc-hash",
|
30
|
+
"shlex",
|
31
|
+
"syn",
|
32
|
+
]
|
33
|
+
|
34
|
+
[[package]]
|
35
|
+
name = "bitflags"
|
36
|
+
version = "2.4.2"
|
37
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
38
|
+
checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
|
39
|
+
|
40
|
+
[[package]]
|
41
|
+
name = "cexpr"
|
42
|
+
version = "0.6.0"
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
44
|
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
45
|
+
dependencies = [
|
46
|
+
"nom",
|
47
|
+
]
|
48
|
+
|
49
|
+
[[package]]
|
50
|
+
name = "cfg-if"
|
51
|
+
version = "1.0.0"
|
52
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
53
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
54
|
+
|
55
|
+
[[package]]
|
56
|
+
name = "clang-sys"
|
57
|
+
version = "1.7.0"
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
59
|
+
checksum = "67523a3b4be3ce1989d607a828d036249522dd9c1c8de7f4dd2dae43a37369d1"
|
60
|
+
dependencies = [
|
61
|
+
"glob",
|
62
|
+
"libc",
|
63
|
+
"libloading",
|
64
|
+
]
|
65
|
+
|
66
|
+
[[package]]
|
67
|
+
name = "either"
|
68
|
+
version = "1.10.0"
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
70
|
+
checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
|
71
|
+
|
72
|
+
[[package]]
|
73
|
+
name = "glob"
|
74
|
+
version = "0.3.1"
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
76
|
+
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
|
77
|
+
|
78
|
+
[[package]]
|
79
|
+
name = "itertools"
|
80
|
+
version = "0.12.1"
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
82
|
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
83
|
+
dependencies = [
|
84
|
+
"either",
|
85
|
+
]
|
86
|
+
|
87
|
+
[[package]]
|
88
|
+
name = "itoa"
|
89
|
+
version = "1.0.10"
|
90
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
91
|
+
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
92
|
+
|
93
|
+
[[package]]
|
94
|
+
name = "lazy_static"
|
95
|
+
version = "1.4.0"
|
96
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
97
|
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
98
|
+
|
99
|
+
[[package]]
|
100
|
+
name = "lazycell"
|
101
|
+
version = "1.3.0"
|
102
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
103
|
+
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
104
|
+
|
105
|
+
[[package]]
|
106
|
+
name = "libc"
|
107
|
+
version = "0.2.153"
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
109
|
+
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
110
|
+
|
111
|
+
[[package]]
|
112
|
+
name = "libloading"
|
113
|
+
version = "0.8.1"
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
115
|
+
checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161"
|
116
|
+
dependencies = [
|
117
|
+
"cfg-if",
|
118
|
+
"windows-sys",
|
119
|
+
]
|
120
|
+
|
121
|
+
[[package]]
|
122
|
+
name = "magnus"
|
123
|
+
version = "0.6.2"
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
125
|
+
checksum = "4778544796676e8428e9c622460ebf284bea52d8b10db3aeb449d8b5e61b3a13"
|
126
|
+
dependencies = [
|
127
|
+
"magnus-macros",
|
128
|
+
"rb-sys",
|
129
|
+
"rb-sys-env",
|
130
|
+
"seq-macro",
|
131
|
+
]
|
132
|
+
|
133
|
+
[[package]]
|
134
|
+
name = "magnus-macros"
|
135
|
+
version = "0.6.0"
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
137
|
+
checksum = "5968c820e2960565f647819f5928a42d6e874551cab9d88d75e3e0660d7f71e3"
|
138
|
+
dependencies = [
|
139
|
+
"proc-macro2",
|
140
|
+
"quote",
|
141
|
+
"syn",
|
142
|
+
]
|
143
|
+
|
144
|
+
[[package]]
|
145
|
+
name = "memchr"
|
146
|
+
version = "2.7.1"
|
147
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
148
|
+
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
149
|
+
|
150
|
+
[[package]]
|
151
|
+
name = "memmap2"
|
152
|
+
version = "0.5.10"
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
154
|
+
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
|
155
|
+
dependencies = [
|
156
|
+
"libc",
|
157
|
+
]
|
158
|
+
|
159
|
+
[[package]]
|
160
|
+
name = "minimal-lexical"
|
161
|
+
version = "0.2.1"
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
163
|
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
164
|
+
|
165
|
+
[[package]]
|
166
|
+
name = "nom"
|
167
|
+
version = "7.1.3"
|
168
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
169
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
170
|
+
dependencies = [
|
171
|
+
"memchr",
|
172
|
+
"minimal-lexical",
|
173
|
+
]
|
174
|
+
|
175
|
+
[[package]]
|
176
|
+
name = "proc-macro2"
|
177
|
+
version = "1.0.78"
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
179
|
+
checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
|
180
|
+
dependencies = [
|
181
|
+
"unicode-ident",
|
182
|
+
]
|
183
|
+
|
184
|
+
[[package]]
|
185
|
+
name = "quote"
|
186
|
+
version = "1.0.35"
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
188
|
+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
189
|
+
dependencies = [
|
190
|
+
"proc-macro2",
|
191
|
+
]
|
192
|
+
|
193
|
+
[[package]]
|
194
|
+
name = "rb-sys"
|
195
|
+
version = "0.9.89"
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
197
|
+
checksum = "0d197f2c03751ef006f29d593d22aa9068c9c358e04ca503afea0329c366147c"
|
198
|
+
dependencies = [
|
199
|
+
"rb-sys-build",
|
200
|
+
]
|
201
|
+
|
202
|
+
[[package]]
|
203
|
+
name = "rb-sys-build"
|
204
|
+
version = "0.9.89"
|
205
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
206
|
+
checksum = "2b50caf8fd028f12abe00d6debe2ae2adf6202c9ca3caa59487eda710d90fa28"
|
207
|
+
dependencies = [
|
208
|
+
"bindgen",
|
209
|
+
"lazy_static",
|
210
|
+
"proc-macro2",
|
211
|
+
"quote",
|
212
|
+
"regex",
|
213
|
+
"shell-words",
|
214
|
+
"syn",
|
215
|
+
]
|
216
|
+
|
217
|
+
[[package]]
|
218
|
+
name = "rb-sys-env"
|
219
|
+
version = "0.1.2"
|
220
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
221
|
+
checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
222
|
+
|
223
|
+
[[package]]
|
224
|
+
name = "regex"
|
225
|
+
version = "1.10.3"
|
226
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
227
|
+
checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15"
|
228
|
+
dependencies = [
|
229
|
+
"aho-corasick",
|
230
|
+
"memchr",
|
231
|
+
"regex-automata",
|
232
|
+
"regex-syntax",
|
233
|
+
]
|
234
|
+
|
235
|
+
[[package]]
|
236
|
+
name = "regex-automata"
|
237
|
+
version = "0.4.5"
|
238
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
239
|
+
checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd"
|
240
|
+
dependencies = [
|
241
|
+
"aho-corasick",
|
242
|
+
"memchr",
|
243
|
+
"regex-syntax",
|
244
|
+
]
|
245
|
+
|
246
|
+
[[package]]
|
247
|
+
name = "regex-syntax"
|
248
|
+
version = "0.8.2"
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
250
|
+
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
251
|
+
|
252
|
+
[[package]]
|
253
|
+
name = "rustc-hash"
|
254
|
+
version = "1.1.0"
|
255
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
256
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
257
|
+
|
258
|
+
[[package]]
|
259
|
+
name = "ryu"
|
260
|
+
version = "1.0.17"
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
262
|
+
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
|
263
|
+
|
264
|
+
[[package]]
|
265
|
+
name = "safetensors"
|
266
|
+
version = "0.1.0"
|
267
|
+
dependencies = [
|
268
|
+
"magnus",
|
269
|
+
"memmap2",
|
270
|
+
"safetensors 0.4.2",
|
271
|
+
"serde_json",
|
272
|
+
]
|
273
|
+
|
274
|
+
[[package]]
|
275
|
+
name = "safetensors"
|
276
|
+
version = "0.4.2"
|
277
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
278
|
+
checksum = "8d980e6bfb34436fb0a81e42bc41af43f11805bbbca443e7f68e9faaabe669ed"
|
279
|
+
dependencies = [
|
280
|
+
"serde",
|
281
|
+
"serde_json",
|
282
|
+
]
|
283
|
+
|
284
|
+
[[package]]
|
285
|
+
name = "seq-macro"
|
286
|
+
version = "0.3.5"
|
287
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
288
|
+
checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
289
|
+
|
290
|
+
[[package]]
|
291
|
+
name = "serde"
|
292
|
+
version = "1.0.197"
|
293
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
294
|
+
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
|
295
|
+
dependencies = [
|
296
|
+
"serde_derive",
|
297
|
+
]
|
298
|
+
|
299
|
+
[[package]]
|
300
|
+
name = "serde_derive"
|
301
|
+
version = "1.0.197"
|
302
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
303
|
+
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
|
304
|
+
dependencies = [
|
305
|
+
"proc-macro2",
|
306
|
+
"quote",
|
307
|
+
"syn",
|
308
|
+
]
|
309
|
+
|
310
|
+
[[package]]
|
311
|
+
name = "serde_json"
|
312
|
+
version = "1.0.114"
|
313
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
314
|
+
checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0"
|
315
|
+
dependencies = [
|
316
|
+
"itoa",
|
317
|
+
"ryu",
|
318
|
+
"serde",
|
319
|
+
]
|
320
|
+
|
321
|
+
[[package]]
|
322
|
+
name = "shell-words"
|
323
|
+
version = "1.1.0"
|
324
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
325
|
+
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"
|
326
|
+
|
327
|
+
[[package]]
|
328
|
+
name = "shlex"
|
329
|
+
version = "1.3.0"
|
330
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
331
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
332
|
+
|
333
|
+
[[package]]
|
334
|
+
name = "syn"
|
335
|
+
version = "2.0.50"
|
336
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
337
|
+
checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb"
|
338
|
+
dependencies = [
|
339
|
+
"proc-macro2",
|
340
|
+
"quote",
|
341
|
+
"unicode-ident",
|
342
|
+
]
|
343
|
+
|
344
|
+
[[package]]
|
345
|
+
name = "unicode-ident"
|
346
|
+
version = "1.0.12"
|
347
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
348
|
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
349
|
+
|
350
|
+
[[package]]
|
351
|
+
name = "windows-sys"
|
352
|
+
version = "0.48.0"
|
353
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
354
|
+
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
355
|
+
dependencies = [
|
356
|
+
"windows-targets",
|
357
|
+
]
|
358
|
+
|
359
|
+
[[package]]
|
360
|
+
name = "windows-targets"
|
361
|
+
version = "0.48.5"
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
363
|
+
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
364
|
+
dependencies = [
|
365
|
+
"windows_aarch64_gnullvm",
|
366
|
+
"windows_aarch64_msvc",
|
367
|
+
"windows_i686_gnu",
|
368
|
+
"windows_i686_msvc",
|
369
|
+
"windows_x86_64_gnu",
|
370
|
+
"windows_x86_64_gnullvm",
|
371
|
+
"windows_x86_64_msvc",
|
372
|
+
]
|
373
|
+
|
374
|
+
[[package]]
|
375
|
+
name = "windows_aarch64_gnullvm"
|
376
|
+
version = "0.48.5"
|
377
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
378
|
+
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
379
|
+
|
380
|
+
[[package]]
|
381
|
+
name = "windows_aarch64_msvc"
|
382
|
+
version = "0.48.5"
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
384
|
+
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
385
|
+
|
386
|
+
[[package]]
|
387
|
+
name = "windows_i686_gnu"
|
388
|
+
version = "0.48.5"
|
389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
390
|
+
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
391
|
+
|
392
|
+
[[package]]
|
393
|
+
name = "windows_i686_msvc"
|
394
|
+
version = "0.48.5"
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
396
|
+
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
397
|
+
|
398
|
+
[[package]]
|
399
|
+
name = "windows_x86_64_gnu"
|
400
|
+
version = "0.48.5"
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
402
|
+
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
403
|
+
|
404
|
+
[[package]]
|
405
|
+
name = "windows_x86_64_gnullvm"
|
406
|
+
version = "0.48.5"
|
407
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
408
|
+
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
409
|
+
|
410
|
+
[[package]]
|
411
|
+
name = "windows_x86_64_msvc"
|
412
|
+
version = "0.48.5"
|
413
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
414
|
+
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|