safetensors 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Cargo.lock +35 -35
- data/ext/safetensors/Cargo.toml +1 -1
- data/ext/safetensors/src/lib.rs +1 -1
- data/lib/safetensors/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e6e574ddd5a4e75f46745804b8c9a3bdfad061cc05494b40eb991ca58f87f10
|
4
|
+
data.tar.gz: a8e3c1a883cb94eb363e8a5ea5441bfd1c1642c359e775db3e2dda2792e56191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29e0a1c3c8db774b77a8a953cdb0dff60c06637a304ea3b764871ed18def58493bb4835538bc0cb8c3240a749b0d7c1a75b25d720cc8fc6bc444d83845a16b3e
|
7
|
+
data.tar.gz: 06e8904ec3e525bb2080710beff4747391d5c502765829371f576fcbf84c4027d63f4f6834cee928c09b03926584947be1ade7418c9fe1a644ec10c465f589a0
|
data/CHANGELOG.md
CHANGED
data/Cargo.lock
CHANGED
@@ -13,9 +13,9 @@ dependencies = [
|
|
13
13
|
|
14
14
|
[[package]]
|
15
15
|
name = "bindgen"
|
16
|
-
version = "0.69.
|
16
|
+
version = "0.69.5"
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
18
|
-
checksum = "
|
18
|
+
checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088"
|
19
19
|
dependencies = [
|
20
20
|
"bitflags",
|
21
21
|
"cexpr",
|
@@ -71,9 +71,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
|
|
71
71
|
|
72
72
|
[[package]]
|
73
73
|
name = "glob"
|
74
|
-
version = "0.3.
|
74
|
+
version = "0.3.2"
|
75
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
76
|
-
checksum = "
|
76
|
+
checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
|
77
77
|
|
78
78
|
[[package]]
|
79
79
|
name = "itertools"
|
@@ -86,9 +86,9 @@ dependencies = [
|
|
86
86
|
|
87
87
|
[[package]]
|
88
88
|
name = "itoa"
|
89
|
-
version = "1.0.
|
89
|
+
version = "1.0.14"
|
90
90
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
91
|
-
checksum = "
|
91
|
+
checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
|
92
92
|
|
93
93
|
[[package]]
|
94
94
|
name = "lazy_static"
|
@@ -104,15 +104,15 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
|
104
104
|
|
105
105
|
[[package]]
|
106
106
|
name = "libc"
|
107
|
-
version = "0.2.
|
107
|
+
version = "0.2.169"
|
108
108
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
109
|
-
checksum = "
|
109
|
+
checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
|
110
110
|
|
111
111
|
[[package]]
|
112
112
|
name = "libloading"
|
113
|
-
version = "0.8.
|
113
|
+
version = "0.8.6"
|
114
114
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
115
|
-
checksum = "
|
115
|
+
checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"
|
116
116
|
dependencies = [
|
117
117
|
"cfg-if",
|
118
118
|
"windows-targets",
|
@@ -174,36 +174,36 @@ dependencies = [
|
|
174
174
|
|
175
175
|
[[package]]
|
176
176
|
name = "proc-macro2"
|
177
|
-
version = "1.0.
|
177
|
+
version = "1.0.92"
|
178
178
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
179
|
-
checksum = "
|
179
|
+
checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
|
180
180
|
dependencies = [
|
181
181
|
"unicode-ident",
|
182
182
|
]
|
183
183
|
|
184
184
|
[[package]]
|
185
185
|
name = "quote"
|
186
|
-
version = "1.0.
|
186
|
+
version = "1.0.38"
|
187
187
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
188
|
-
checksum = "
|
188
|
+
checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
|
189
189
|
dependencies = [
|
190
190
|
"proc-macro2",
|
191
191
|
]
|
192
192
|
|
193
193
|
[[package]]
|
194
194
|
name = "rb-sys"
|
195
|
-
version = "0.9.
|
195
|
+
version = "0.9.105"
|
196
196
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
197
|
-
checksum = "
|
197
|
+
checksum = "4b3a1f3ce8e7c36d777d52fe7a99039fe4fea7c8ec355a4c4f3a17f92a14029f"
|
198
198
|
dependencies = [
|
199
199
|
"rb-sys-build",
|
200
200
|
]
|
201
201
|
|
202
202
|
[[package]]
|
203
203
|
name = "rb-sys-build"
|
204
|
-
version = "0.9.
|
204
|
+
version = "0.9.105"
|
205
205
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
206
|
-
checksum = "
|
206
|
+
checksum = "3e6b246c29c0809e1cbe60a1ba9e093da72a4676d02adc68469297d1e589bbf0"
|
207
207
|
dependencies = [
|
208
208
|
"bindgen",
|
209
209
|
"lazy_static",
|
@@ -222,9 +222,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
222
222
|
|
223
223
|
[[package]]
|
224
224
|
name = "regex"
|
225
|
-
version = "1.
|
225
|
+
version = "1.11.1"
|
226
226
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
227
|
-
checksum = "
|
227
|
+
checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
|
228
228
|
dependencies = [
|
229
229
|
"aho-corasick",
|
230
230
|
"memchr",
|
@@ -234,9 +234,9 @@ dependencies = [
|
|
234
234
|
|
235
235
|
[[package]]
|
236
236
|
name = "regex-automata"
|
237
|
-
version = "0.4.
|
237
|
+
version = "0.4.9"
|
238
238
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
239
|
-
checksum = "
|
239
|
+
checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
|
240
240
|
dependencies = [
|
241
241
|
"aho-corasick",
|
242
242
|
"memchr",
|
@@ -245,9 +245,9 @@ dependencies = [
|
|
245
245
|
|
246
246
|
[[package]]
|
247
247
|
name = "regex-syntax"
|
248
|
-
version = "0.8.
|
248
|
+
version = "0.8.5"
|
249
249
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
250
|
-
checksum = "
|
250
|
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
251
251
|
|
252
252
|
[[package]]
|
253
253
|
name = "rustc-hash"
|
@@ -263,7 +263,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
|
|
263
263
|
|
264
264
|
[[package]]
|
265
265
|
name = "safetensors"
|
266
|
-
version = "0.1.
|
266
|
+
version = "0.1.3"
|
267
267
|
dependencies = [
|
268
268
|
"magnus",
|
269
269
|
"memmap2",
|
@@ -289,18 +289,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
|
289
289
|
|
290
290
|
[[package]]
|
291
291
|
name = "serde"
|
292
|
-
version = "1.0.
|
292
|
+
version = "1.0.217"
|
293
293
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
294
|
-
checksum = "
|
294
|
+
checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
|
295
295
|
dependencies = [
|
296
296
|
"serde_derive",
|
297
297
|
]
|
298
298
|
|
299
299
|
[[package]]
|
300
300
|
name = "serde_derive"
|
301
|
-
version = "1.0.
|
301
|
+
version = "1.0.217"
|
302
302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
303
|
-
checksum = "
|
303
|
+
checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
|
304
304
|
dependencies = [
|
305
305
|
"proc-macro2",
|
306
306
|
"quote",
|
@@ -309,9 +309,9 @@ dependencies = [
|
|
309
309
|
|
310
310
|
[[package]]
|
311
311
|
name = "serde_json"
|
312
|
-
version = "1.0.
|
312
|
+
version = "1.0.134"
|
313
313
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
314
|
-
checksum = "
|
314
|
+
checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d"
|
315
315
|
dependencies = [
|
316
316
|
"itoa",
|
317
317
|
"memchr",
|
@@ -333,9 +333,9 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
333
333
|
|
334
334
|
[[package]]
|
335
335
|
name = "syn"
|
336
|
-
version = "2.0.
|
336
|
+
version = "2.0.93"
|
337
337
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
338
|
-
checksum = "
|
338
|
+
checksum = "9c786062daee0d6db1132800e623df74274a0a87322d8e183338e01b3d98d058"
|
339
339
|
dependencies = [
|
340
340
|
"proc-macro2",
|
341
341
|
"quote",
|
@@ -344,9 +344,9 @@ dependencies = [
|
|
344
344
|
|
345
345
|
[[package]]
|
346
346
|
name = "unicode-ident"
|
347
|
-
version = "1.0.
|
347
|
+
version = "1.0.14"
|
348
348
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
349
|
-
checksum = "
|
349
|
+
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
350
350
|
|
351
351
|
[[package]]
|
352
352
|
name = "windows-targets"
|
data/ext/safetensors/Cargo.toml
CHANGED
data/ext/safetensors/src/lib.rs
CHANGED
@@ -52,7 +52,7 @@ fn prepare(tensor_dict: &RHash) -> RbResult<HashMap<String, TensorView<'_>>> {
|
|
52
52
|
// so the string will not be modified (or garbage collected)
|
53
53
|
// while the reference is held. Also, the string is a private copy.
|
54
54
|
let slice = unsafe { rs.as_slice() };
|
55
|
-
data = Some((slice.as_ptr(), slice.len()))
|
55
|
+
data = Some((slice.as_ptr(), slice.len()));
|
56
56
|
}
|
57
57
|
_ => println!("Ignored unknown kwarg option {key}"),
|
58
58
|
};
|
data/lib/safetensors/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: safetensors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2024-
|
10
|
+
date: 2024-12-29 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: rb_sys
|
@@ -24,7 +23,6 @@ dependencies:
|
|
24
23
|
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '0'
|
27
|
-
description:
|
28
26
|
email: andrew@ankane.org
|
29
27
|
executables: []
|
30
28
|
extensions:
|
@@ -47,7 +45,6 @@ homepage: https://github.com/ankane/safetensors-ruby
|
|
47
45
|
licenses:
|
48
46
|
- Apache-2.0
|
49
47
|
metadata: {}
|
50
|
-
post_install_message:
|
51
48
|
rdoc_options: []
|
52
49
|
require_paths:
|
53
50
|
- lib
|
@@ -62,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
59
|
- !ruby/object:Gem::Version
|
63
60
|
version: '0'
|
64
61
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
-
signing_key:
|
62
|
+
rubygems_version: 3.6.2
|
67
63
|
specification_version: 4
|
68
64
|
summary: Simple, safe way to store and distribute tensors
|
69
65
|
test_files: []
|