quantize-py 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. quantize_py-0.2.2/Cargo.lock +1084 -0
  2. quantize_py-0.2.2/Cargo.toml +88 -0
  3. quantize_py-0.2.2/LICENSE +21 -0
  4. quantize_py-0.2.2/PKG-INFO +43 -0
  5. quantize_py-0.2.2/README.md +62 -0
  6. quantize_py-0.2.2/pyproject.toml +44 -0
  7. quantize_py-0.2.2/python/Cargo.toml +23 -0
  8. quantize_py-0.2.2/python/README.md +20 -0
  9. quantize_py-0.2.2/python/quantize/__init__.py +34 -0
  10. quantize_py-0.2.2/python/quantize/adaptive.py +3 -0
  11. quantize_py-0.2.2/python/quantize/asymmetric.py +4 -0
  12. quantize_py-0.2.2/python/quantize/learned.py +3 -0
  13. quantize_py-0.2.2/python/quantize/symmetric.py +3 -0
  14. quantize_py-0.2.2/python/src/error.rs +136 -0
  15. quantize_py-0.2.2/python/src/input.rs +121 -0
  16. quantize_py-0.2.2/python/src/learned.rs +41 -0
  17. quantize_py-0.2.2/python/src/lib.rs +117 -0
  18. quantize_py-0.2.2/python/src/quantized/inner.rs +85 -0
  19. quantize_py-0.2.2/python/src/quantized/methods.rs +252 -0
  20. quantize_py-0.2.2/python/src/quantized/pickle.rs +245 -0
  21. quantize_py-0.2.2/python/src/quantized.rs +5 -0
  22. quantize_py-0.2.2/python/src/scale.rs +55 -0
  23. quantize_py-0.2.2/python/src/scheme.rs +165 -0
  24. quantize_py-0.2.2/python/tests/test_learned.py +53 -0
  25. quantize_py-0.2.2/python/tests/test_quantize.py +166 -0
  26. quantize_py-0.2.2/src/kernels/block.rs +97 -0
  27. quantize_py-0.2.2/src/kernels/i4.rs +147 -0
  28. quantize_py-0.2.2/src/kernels/i8.rs +130 -0
  29. quantize_py-0.2.2/src/kernels/mod.rs +15 -0
  30. quantize_py-0.2.2/src/kernels/reduce.rs +106 -0
  31. quantize_py-0.2.2/src/lib.rs +40 -0
  32. quantize_py-0.2.2/src/methods/adaptive/mod.rs +108 -0
  33. quantize_py-0.2.2/src/methods/asymmetric/mod.rs +66 -0
  34. quantize_py-0.2.2/src/methods/learned/mod.rs +107 -0
  35. quantize_py-0.2.2/src/methods/mod.rs +6 -0
  36. quantize_py-0.2.2/src/methods/symmetric/mod.rs +111 -0
  37. quantize_py-0.2.2/src/shared/decode.rs +123 -0
  38. quantize_py-0.2.2/src/shared/error.rs +99 -0
  39. quantize_py-0.2.2/src/shared/mod.rs +10 -0
  40. quantize_py-0.2.2/src/shared/packed.rs +188 -0
  41. quantize_py-0.2.2/src/shared/params.rs +74 -0
  42. quantize_py-0.2.2/src/shared/scale.rs +47 -0
  43. quantize_py-0.2.2/src/shared/scheme.rs +67 -0
  44. quantize_py-0.2.2/src/shared/tensor.rs +153 -0
@@ -0,0 +1,1084 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "allocator-api2"
7
+ version = "0.2.21"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.5.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
16
+
17
+ [[package]]
18
+ name = "bitflags"
19
+ version = "2.13.1"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
22
+
23
+ [[package]]
24
+ name = "bytemuck"
25
+ version = "1.25.2"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
28
+ dependencies = [
29
+ "bytemuck_derive",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "bytemuck_derive"
34
+ version = "1.12.0"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "fc0e56a716f1e132ff6bf4bdac1c944a3fcdc1cae65f70a4a2a1ac3b401d2d1f"
37
+ dependencies = [
38
+ "proc-macro2",
39
+ "quote",
40
+ "syn 3.0.4",
41
+ ]
42
+
43
+ [[package]]
44
+ name = "byteorder"
45
+ version = "1.5.0"
46
+ source = "registry+https://github.com/rust-lang/crates.io-index"
47
+ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
48
+
49
+ [[package]]
50
+ name = "candle-core"
51
+ version = "0.9.2"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "c15b675b80d994b2eadb20a4bbe434eabeb454eac3ee5e2b4cf6f147ee9be091"
54
+ dependencies = [
55
+ "byteorder",
56
+ "float8",
57
+ "gemm",
58
+ "half",
59
+ "libm",
60
+ "memmap2",
61
+ "num-traits",
62
+ "num_cpus",
63
+ "rand 0.9.5",
64
+ "rand_distr",
65
+ "rayon",
66
+ "safetensors",
67
+ "thiserror 2.0.20",
68
+ "yoke",
69
+ "zip",
70
+ ]
71
+
72
+ [[package]]
73
+ name = "cfg-if"
74
+ version = "1.0.4"
75
+ source = "registry+https://github.com/rust-lang/crates.io-index"
76
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
77
+
78
+ [[package]]
79
+ name = "crc32fast"
80
+ version = "1.5.1"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"
83
+ dependencies = [
84
+ "cfg-if",
85
+ ]
86
+
87
+ [[package]]
88
+ name = "crossbeam-deque"
89
+ version = "0.8.7"
90
+ source = "registry+https://github.com/rust-lang/crates.io-index"
91
+ checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
92
+ dependencies = [
93
+ "crossbeam-epoch",
94
+ "crossbeam-utils",
95
+ ]
96
+
97
+ [[package]]
98
+ name = "crossbeam-epoch"
99
+ version = "0.9.20"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
102
+ dependencies = [
103
+ "crossbeam-utils",
104
+ ]
105
+
106
+ [[package]]
107
+ name = "crossbeam-utils"
108
+ version = "0.8.22"
109
+ source = "registry+https://github.com/rust-lang/crates.io-index"
110
+ checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
111
+
112
+ [[package]]
113
+ name = "crunchy"
114
+ version = "0.2.4"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
117
+
118
+ [[package]]
119
+ name = "dyn-stack"
120
+ version = "0.13.2"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+ checksum = "1c4713e43e2886ba72b8271aa66c93d722116acf7a75555cce11dcde84388fe8"
123
+ dependencies = [
124
+ "bytemuck",
125
+ "dyn-stack-macros",
126
+ ]
127
+
128
+ [[package]]
129
+ name = "dyn-stack-macros"
130
+ version = "0.1.3"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "e1d926b4d407d372f141f93bb444696142c29d32962ccbd3531117cf3aa0bfa9"
133
+
134
+ [[package]]
135
+ name = "either"
136
+ version = "1.18.0"
137
+ source = "registry+https://github.com/rust-lang/crates.io-index"
138
+ checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
139
+
140
+ [[package]]
141
+ name = "enum-as-inner"
142
+ version = "0.6.1"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "a1e6a265c649f3f5979b601d26f1d05ada116434c87741c9493cb56218f76cbc"
145
+ dependencies = [
146
+ "heck",
147
+ "proc-macro2",
148
+ "quote",
149
+ "syn 2.0.119",
150
+ ]
151
+
152
+ [[package]]
153
+ name = "equivalent"
154
+ version = "1.0.2"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
157
+
158
+ [[package]]
159
+ name = "float8"
160
+ version = "0.6.1"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "719a903cc23e4a89e87962c2a80fdb45cdaad0983a89bd150bb57b4c8571a7d5"
163
+ dependencies = [
164
+ "half",
165
+ "num-traits",
166
+ "rand 0.9.5",
167
+ "rand_distr",
168
+ ]
169
+
170
+ [[package]]
171
+ name = "foldhash"
172
+ version = "0.2.0"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
175
+
176
+ [[package]]
177
+ name = "gemm"
178
+ version = "0.19.0"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "aa0673db364b12263d103b68337a68fbecc541d6f6b61ba72fe438654709eacb"
181
+ dependencies = [
182
+ "dyn-stack",
183
+ "gemm-c32",
184
+ "gemm-c64",
185
+ "gemm-common",
186
+ "gemm-f16",
187
+ "gemm-f32",
188
+ "gemm-f64",
189
+ "num-complex",
190
+ "num-traits",
191
+ "paste",
192
+ "raw-cpuid",
193
+ "seq-macro",
194
+ ]
195
+
196
+ [[package]]
197
+ name = "gemm-c32"
198
+ version = "0.19.0"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "086936dbdcb99e37aad81d320f98f670e53c1e55a98bee70573e83f95beb128c"
201
+ dependencies = [
202
+ "dyn-stack",
203
+ "gemm-common",
204
+ "num-complex",
205
+ "num-traits",
206
+ "paste",
207
+ "raw-cpuid",
208
+ "seq-macro",
209
+ ]
210
+
211
+ [[package]]
212
+ name = "gemm-c64"
213
+ version = "0.19.0"
214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
215
+ checksum = "20c8aeeeec425959bda4d9827664029ba1501a90a0d1e6228e48bef741db3a3f"
216
+ dependencies = [
217
+ "dyn-stack",
218
+ "gemm-common",
219
+ "num-complex",
220
+ "num-traits",
221
+ "paste",
222
+ "raw-cpuid",
223
+ "seq-macro",
224
+ ]
225
+
226
+ [[package]]
227
+ name = "gemm-common"
228
+ version = "0.19.0"
229
+ source = "registry+https://github.com/rust-lang/crates.io-index"
230
+ checksum = "88027625910cc9b1085aaaa1c4bc46bb3a36aad323452b33c25b5e4e7c8e2a3e"
231
+ dependencies = [
232
+ "bytemuck",
233
+ "dyn-stack",
234
+ "half",
235
+ "libm",
236
+ "num-complex",
237
+ "num-traits",
238
+ "once_cell",
239
+ "paste",
240
+ "pulp",
241
+ "raw-cpuid",
242
+ "rayon",
243
+ "seq-macro",
244
+ "sysctl",
245
+ ]
246
+
247
+ [[package]]
248
+ name = "gemm-f16"
249
+ version = "0.19.0"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "e3df7a55202e6cd6739d82ae3399c8e0c7e1402859b30e4cb780e61525d9486e"
252
+ dependencies = [
253
+ "dyn-stack",
254
+ "gemm-common",
255
+ "gemm-f32",
256
+ "half",
257
+ "num-complex",
258
+ "num-traits",
259
+ "paste",
260
+ "raw-cpuid",
261
+ "rayon",
262
+ "seq-macro",
263
+ ]
264
+
265
+ [[package]]
266
+ name = "gemm-f32"
267
+ version = "0.19.0"
268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
269
+ checksum = "02e0b8c9da1fbec6e3e3ab2ce6bc259ef18eb5f6f0d3e4edf54b75f9fd41a81c"
270
+ dependencies = [
271
+ "dyn-stack",
272
+ "gemm-common",
273
+ "num-complex",
274
+ "num-traits",
275
+ "paste",
276
+ "raw-cpuid",
277
+ "seq-macro",
278
+ ]
279
+
280
+ [[package]]
281
+ name = "gemm-f64"
282
+ version = "0.19.0"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "056131e8f2a521bfab322f804ccd652520c79700d81209e9d9275bbdecaadc6a"
285
+ dependencies = [
286
+ "dyn-stack",
287
+ "gemm-common",
288
+ "num-complex",
289
+ "num-traits",
290
+ "paste",
291
+ "raw-cpuid",
292
+ "seq-macro",
293
+ ]
294
+
295
+ [[package]]
296
+ name = "getrandom"
297
+ version = "0.2.17"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
300
+ dependencies = [
301
+ "cfg-if",
302
+ "libc",
303
+ "wasi",
304
+ ]
305
+
306
+ [[package]]
307
+ name = "getrandom"
308
+ version = "0.3.4"
309
+ source = "registry+https://github.com/rust-lang/crates.io-index"
310
+ checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
311
+ dependencies = [
312
+ "cfg-if",
313
+ "libc",
314
+ "r-efi",
315
+ "wasip2",
316
+ ]
317
+
318
+ [[package]]
319
+ name = "half"
320
+ version = "2.7.1"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
323
+ dependencies = [
324
+ "bytemuck",
325
+ "cfg-if",
326
+ "crunchy",
327
+ "num-traits",
328
+ "rand 0.9.5",
329
+ "rand_distr",
330
+ "zerocopy",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "hashbrown"
335
+ version = "0.16.1"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
338
+ dependencies = [
339
+ "allocator-api2",
340
+ "equivalent",
341
+ "foldhash",
342
+ "serde",
343
+ "serde_core",
344
+ ]
345
+
346
+ [[package]]
347
+ name = "hashbrown"
348
+ version = "0.17.1"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
351
+
352
+ [[package]]
353
+ name = "heck"
354
+ version = "0.5.0"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
357
+
358
+ [[package]]
359
+ name = "hermit-abi"
360
+ version = "0.5.2"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
363
+
364
+ [[package]]
365
+ name = "indexmap"
366
+ version = "2.14.1"
367
+ source = "registry+https://github.com/rust-lang/crates.io-index"
368
+ checksum = "07aa2048142242915a31d35844fb311e0e53fcca590c3a0a40dcf1b841fa09eb"
369
+ dependencies = [
370
+ "equivalent",
371
+ "hashbrown 0.17.1",
372
+ ]
373
+
374
+ [[package]]
375
+ name = "itoa"
376
+ version = "1.0.18"
377
+ source = "registry+https://github.com/rust-lang/crates.io-index"
378
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
379
+
380
+ [[package]]
381
+ name = "libc"
382
+ version = "0.2.189"
383
+ source = "registry+https://github.com/rust-lang/crates.io-index"
384
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
385
+
386
+ [[package]]
387
+ name = "libm"
388
+ version = "0.2.16"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
391
+
392
+ [[package]]
393
+ name = "matrixmultiply"
394
+ version = "0.3.11"
395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
396
+ checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
397
+ dependencies = [
398
+ "autocfg",
399
+ "rawpointer",
400
+ ]
401
+
402
+ [[package]]
403
+ name = "memchr"
404
+ version = "2.8.3"
405
+ source = "registry+https://github.com/rust-lang/crates.io-index"
406
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
407
+
408
+ [[package]]
409
+ name = "memmap2"
410
+ version = "0.9.11"
411
+ source = "registry+https://github.com/rust-lang/crates.io-index"
412
+ checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"
413
+ dependencies = [
414
+ "libc",
415
+ "stable_deref_trait",
416
+ ]
417
+
418
+ [[package]]
419
+ name = "ndarray"
420
+ version = "0.17.2"
421
+ source = "registry+https://github.com/rust-lang/crates.io-index"
422
+ checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
423
+ dependencies = [
424
+ "matrixmultiply",
425
+ "num-complex",
426
+ "num-integer",
427
+ "num-traits",
428
+ "portable-atomic",
429
+ "portable-atomic-util",
430
+ "rawpointer",
431
+ ]
432
+
433
+ [[package]]
434
+ name = "num-complex"
435
+ version = "0.4.6"
436
+ source = "registry+https://github.com/rust-lang/crates.io-index"
437
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
438
+ dependencies = [
439
+ "bytemuck",
440
+ "num-traits",
441
+ ]
442
+
443
+ [[package]]
444
+ name = "num-integer"
445
+ version = "0.1.47"
446
+ source = "registry+https://github.com/rust-lang/crates.io-index"
447
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
448
+ dependencies = [
449
+ "num-traits",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "num-traits"
454
+ version = "0.2.19"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
457
+ dependencies = [
458
+ "autocfg",
459
+ "libm",
460
+ ]
461
+
462
+ [[package]]
463
+ name = "num_cpus"
464
+ version = "1.17.0"
465
+ source = "registry+https://github.com/rust-lang/crates.io-index"
466
+ checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
467
+ dependencies = [
468
+ "hermit-abi",
469
+ "libc",
470
+ ]
471
+
472
+ [[package]]
473
+ name = "numpy"
474
+ version = "0.29.0"
475
+ source = "registry+https://github.com/rust-lang/crates.io-index"
476
+ checksum = "6a5b15d63a5ff39e378daed0e1340d3a5964703ea9712eb09a0dc66fade996f4"
477
+ dependencies = [
478
+ "libc",
479
+ "ndarray",
480
+ "num-complex",
481
+ "num-integer",
482
+ "num-traits",
483
+ "pyo3",
484
+ "pyo3-build-config",
485
+ "rustc-hash",
486
+ ]
487
+
488
+ [[package]]
489
+ name = "once_cell"
490
+ version = "1.21.4"
491
+ source = "registry+https://github.com/rust-lang/crates.io-index"
492
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
493
+
494
+ [[package]]
495
+ name = "paste"
496
+ version = "1.0.15"
497
+ source = "registry+https://github.com/rust-lang/crates.io-index"
498
+ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
499
+
500
+ [[package]]
501
+ name = "portable-atomic"
502
+ version = "1.15.0"
503
+ source = "registry+https://github.com/rust-lang/crates.io-index"
504
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
505
+
506
+ [[package]]
507
+ name = "portable-atomic-util"
508
+ version = "0.2.7"
509
+ source = "registry+https://github.com/rust-lang/crates.io-index"
510
+ checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
511
+ dependencies = [
512
+ "portable-atomic",
513
+ ]
514
+
515
+ [[package]]
516
+ name = "ppv-lite86"
517
+ version = "0.2.21"
518
+ source = "registry+https://github.com/rust-lang/crates.io-index"
519
+ checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
520
+ dependencies = [
521
+ "zerocopy",
522
+ ]
523
+
524
+ [[package]]
525
+ name = "proc-macro2"
526
+ version = "1.0.107"
527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
528
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
529
+ dependencies = [
530
+ "unicode-ident",
531
+ ]
532
+
533
+ [[package]]
534
+ name = "pulp"
535
+ version = "0.22.3"
536
+ source = "registry+https://github.com/rust-lang/crates.io-index"
537
+ checksum = "046aa45b989642ec2e4717c8e72d677b13edd831a4d3b6cf37d9a3e54912496a"
538
+ dependencies = [
539
+ "bytemuck",
540
+ "cfg-if",
541
+ "libm",
542
+ "num-complex",
543
+ "paste",
544
+ "pulp-wasm-simd-flag",
545
+ "raw-cpuid",
546
+ "reborrow",
547
+ "version_check",
548
+ ]
549
+
550
+ [[package]]
551
+ name = "pulp-wasm-simd-flag"
552
+ version = "0.1.1"
553
+ source = "registry+https://github.com/rust-lang/crates.io-index"
554
+ checksum = "1d8f70e07b9c3962945a74e59ca1c511bba65b6419468acc217c457d93f3c740"
555
+
556
+ [[package]]
557
+ name = "pyo3"
558
+ version = "0.29.2"
559
+ source = "registry+https://github.com/rust-lang/crates.io-index"
560
+ checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
561
+ dependencies = [
562
+ "libc",
563
+ "once_cell",
564
+ "portable-atomic",
565
+ "pyo3-build-config",
566
+ "pyo3-ffi",
567
+ "pyo3-macros",
568
+ ]
569
+
570
+ [[package]]
571
+ name = "pyo3-build-config"
572
+ version = "0.29.2"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
575
+ dependencies = [
576
+ "target-lexicon",
577
+ ]
578
+
579
+ [[package]]
580
+ name = "pyo3-ffi"
581
+ version = "0.29.2"
582
+ source = "registry+https://github.com/rust-lang/crates.io-index"
583
+ checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
584
+ dependencies = [
585
+ "libc",
586
+ "pyo3-build-config",
587
+ ]
588
+
589
+ [[package]]
590
+ name = "pyo3-macros"
591
+ version = "0.29.2"
592
+ source = "registry+https://github.com/rust-lang/crates.io-index"
593
+ checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
594
+ dependencies = [
595
+ "proc-macro2",
596
+ "pyo3-macros-backend",
597
+ "quote",
598
+ "syn 2.0.119",
599
+ ]
600
+
601
+ [[package]]
602
+ name = "pyo3-macros-backend"
603
+ version = "0.29.2"
604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
605
+ checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
606
+ dependencies = [
607
+ "heck",
608
+ "proc-macro2",
609
+ "quote",
610
+ "syn 2.0.119",
611
+ ]
612
+
613
+ [[package]]
614
+ name = "quantize"
615
+ version = "0.2.2"
616
+ dependencies = [
617
+ "candle-core",
618
+ "half",
619
+ "rand 0.8.8",
620
+ ]
621
+
622
+ [[package]]
623
+ name = "quantize-py"
624
+ version = "0.2.2"
625
+ dependencies = [
626
+ "half",
627
+ "numpy",
628
+ "pyo3",
629
+ "quantize",
630
+ ]
631
+
632
+ [[package]]
633
+ name = "quote"
634
+ version = "1.0.47"
635
+ source = "registry+https://github.com/rust-lang/crates.io-index"
636
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
637
+ dependencies = [
638
+ "proc-macro2",
639
+ ]
640
+
641
+ [[package]]
642
+ name = "r-efi"
643
+ version = "5.3.0"
644
+ source = "registry+https://github.com/rust-lang/crates.io-index"
645
+ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
646
+
647
+ [[package]]
648
+ name = "rand"
649
+ version = "0.8.8"
650
+ source = "registry+https://github.com/rust-lang/crates.io-index"
651
+ checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
652
+ dependencies = [
653
+ "libc",
654
+ "rand_chacha 0.3.1",
655
+ "rand_core 0.6.4",
656
+ ]
657
+
658
+ [[package]]
659
+ name = "rand"
660
+ version = "0.9.5"
661
+ source = "registry+https://github.com/rust-lang/crates.io-index"
662
+ checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
663
+ dependencies = [
664
+ "rand_chacha 0.9.0",
665
+ "rand_core 0.9.5",
666
+ ]
667
+
668
+ [[package]]
669
+ name = "rand_chacha"
670
+ version = "0.3.1"
671
+ source = "registry+https://github.com/rust-lang/crates.io-index"
672
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
673
+ dependencies = [
674
+ "ppv-lite86",
675
+ "rand_core 0.6.4",
676
+ ]
677
+
678
+ [[package]]
679
+ name = "rand_chacha"
680
+ version = "0.9.0"
681
+ source = "registry+https://github.com/rust-lang/crates.io-index"
682
+ checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
683
+ dependencies = [
684
+ "ppv-lite86",
685
+ "rand_core 0.9.5",
686
+ ]
687
+
688
+ [[package]]
689
+ name = "rand_core"
690
+ version = "0.6.4"
691
+ source = "registry+https://github.com/rust-lang/crates.io-index"
692
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
693
+ dependencies = [
694
+ "getrandom 0.2.17",
695
+ ]
696
+
697
+ [[package]]
698
+ name = "rand_core"
699
+ version = "0.9.5"
700
+ source = "registry+https://github.com/rust-lang/crates.io-index"
701
+ checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
702
+ dependencies = [
703
+ "getrandom 0.3.4",
704
+ ]
705
+
706
+ [[package]]
707
+ name = "rand_distr"
708
+ version = "0.5.1"
709
+ source = "registry+https://github.com/rust-lang/crates.io-index"
710
+ checksum = "6a8615d50dcf34fa31f7ab52692afec947c4dd0ab803cc87cb3b0b4570ff7463"
711
+ dependencies = [
712
+ "num-traits",
713
+ "rand 0.9.5",
714
+ ]
715
+
716
+ [[package]]
717
+ name = "raw-cpuid"
718
+ version = "11.6.0"
719
+ source = "registry+https://github.com/rust-lang/crates.io-index"
720
+ checksum = "498cd0dc59d73224351ee52a95fee0f1a617a2eae0e7d9d720cc622c73a54186"
721
+ dependencies = [
722
+ "bitflags",
723
+ ]
724
+
725
+ [[package]]
726
+ name = "rawpointer"
727
+ version = "0.2.1"
728
+ source = "registry+https://github.com/rust-lang/crates.io-index"
729
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
730
+
731
+ [[package]]
732
+ name = "rayon"
733
+ version = "1.12.0"
734
+ source = "registry+https://github.com/rust-lang/crates.io-index"
735
+ checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
736
+ dependencies = [
737
+ "either",
738
+ "rayon-core",
739
+ ]
740
+
741
+ [[package]]
742
+ name = "rayon-core"
743
+ version = "1.13.0"
744
+ source = "registry+https://github.com/rust-lang/crates.io-index"
745
+ checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
746
+ dependencies = [
747
+ "crossbeam-deque",
748
+ "crossbeam-utils",
749
+ ]
750
+
751
+ [[package]]
752
+ name = "reborrow"
753
+ version = "0.5.5"
754
+ source = "registry+https://github.com/rust-lang/crates.io-index"
755
+ checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430"
756
+
757
+ [[package]]
758
+ name = "rustc-hash"
759
+ version = "2.1.3"
760
+ source = "registry+https://github.com/rust-lang/crates.io-index"
761
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
762
+
763
+ [[package]]
764
+ name = "safetensors"
765
+ version = "0.7.0"
766
+ source = "registry+https://github.com/rust-lang/crates.io-index"
767
+ checksum = "675656c1eabb620b921efea4f9199f97fc86e36dd6ffd1fbbe48d0f59a4987f5"
768
+ dependencies = [
769
+ "hashbrown 0.16.1",
770
+ "serde",
771
+ "serde_json",
772
+ ]
773
+
774
+ [[package]]
775
+ name = "same-file"
776
+ version = "1.0.6"
777
+ source = "registry+https://github.com/rust-lang/crates.io-index"
778
+ checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
779
+ dependencies = [
780
+ "winapi-util",
781
+ ]
782
+
783
+ [[package]]
784
+ name = "seq-macro"
785
+ version = "0.3.6"
786
+ source = "registry+https://github.com/rust-lang/crates.io-index"
787
+ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc"
788
+
789
+ [[package]]
790
+ name = "serde"
791
+ version = "1.0.229"
792
+ source = "registry+https://github.com/rust-lang/crates.io-index"
793
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
794
+ dependencies = [
795
+ "serde_core",
796
+ "serde_derive",
797
+ ]
798
+
799
+ [[package]]
800
+ name = "serde_core"
801
+ version = "1.0.229"
802
+ source = "registry+https://github.com/rust-lang/crates.io-index"
803
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
804
+ dependencies = [
805
+ "serde_derive",
806
+ ]
807
+
808
+ [[package]]
809
+ name = "serde_derive"
810
+ version = "1.0.229"
811
+ source = "registry+https://github.com/rust-lang/crates.io-index"
812
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
813
+ dependencies = [
814
+ "proc-macro2",
815
+ "quote",
816
+ "syn 3.0.4",
817
+ ]
818
+
819
+ [[package]]
820
+ name = "serde_json"
821
+ version = "1.0.151"
822
+ source = "registry+https://github.com/rust-lang/crates.io-index"
823
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
824
+ dependencies = [
825
+ "itoa",
826
+ "memchr",
827
+ "serde",
828
+ "serde_core",
829
+ "zmij",
830
+ ]
831
+
832
+ [[package]]
833
+ name = "stable_deref_trait"
834
+ version = "1.2.1"
835
+ source = "registry+https://github.com/rust-lang/crates.io-index"
836
+ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
837
+
838
+ [[package]]
839
+ name = "syn"
840
+ version = "2.0.119"
841
+ source = "registry+https://github.com/rust-lang/crates.io-index"
842
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
843
+ dependencies = [
844
+ "proc-macro2",
845
+ "quote",
846
+ "unicode-ident",
847
+ ]
848
+
849
+ [[package]]
850
+ name = "syn"
851
+ version = "3.0.4"
852
+ source = "registry+https://github.com/rust-lang/crates.io-index"
853
+ checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"
854
+ dependencies = [
855
+ "proc-macro2",
856
+ "quote",
857
+ "unicode-ident",
858
+ ]
859
+
860
+ [[package]]
861
+ name = "synstructure"
862
+ version = "0.13.2"
863
+ source = "registry+https://github.com/rust-lang/crates.io-index"
864
+ checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
865
+ dependencies = [
866
+ "proc-macro2",
867
+ "quote",
868
+ "syn 2.0.119",
869
+ ]
870
+
871
+ [[package]]
872
+ name = "sysctl"
873
+ version = "0.6.0"
874
+ source = "registry+https://github.com/rust-lang/crates.io-index"
875
+ checksum = "01198a2debb237c62b6826ec7081082d951f46dbb64b0e8c7649a452230d1dfc"
876
+ dependencies = [
877
+ "bitflags",
878
+ "byteorder",
879
+ "enum-as-inner",
880
+ "libc",
881
+ "thiserror 1.0.69",
882
+ "walkdir",
883
+ ]
884
+
885
+ [[package]]
886
+ name = "target-lexicon"
887
+ version = "0.13.5"
888
+ source = "registry+https://github.com/rust-lang/crates.io-index"
889
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
890
+
891
+ [[package]]
892
+ name = "thiserror"
893
+ version = "1.0.69"
894
+ source = "registry+https://github.com/rust-lang/crates.io-index"
895
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
896
+ dependencies = [
897
+ "thiserror-impl 1.0.69",
898
+ ]
899
+
900
+ [[package]]
901
+ name = "thiserror"
902
+ version = "2.0.20"
903
+ source = "registry+https://github.com/rust-lang/crates.io-index"
904
+ checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"
905
+ dependencies = [
906
+ "thiserror-impl 2.0.20",
907
+ ]
908
+
909
+ [[package]]
910
+ name = "thiserror-impl"
911
+ version = "1.0.69"
912
+ source = "registry+https://github.com/rust-lang/crates.io-index"
913
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
914
+ dependencies = [
915
+ "proc-macro2",
916
+ "quote",
917
+ "syn 2.0.119",
918
+ ]
919
+
920
+ [[package]]
921
+ name = "thiserror-impl"
922
+ version = "2.0.20"
923
+ source = "registry+https://github.com/rust-lang/crates.io-index"
924
+ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
925
+ dependencies = [
926
+ "proc-macro2",
927
+ "quote",
928
+ "syn 3.0.4",
929
+ ]
930
+
931
+ [[package]]
932
+ name = "typed-path"
933
+ version = "0.12.3"
934
+ source = "registry+https://github.com/rust-lang/crates.io-index"
935
+ checksum = "8e28f89b80c87b8fb0cf04ab448d5dd0dd0ade2f8891bae878de66a75a28600e"
936
+
937
+ [[package]]
938
+ name = "unicode-ident"
939
+ version = "1.0.24"
940
+ source = "registry+https://github.com/rust-lang/crates.io-index"
941
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
942
+
943
+ [[package]]
944
+ name = "version_check"
945
+ version = "0.9.5"
946
+ source = "registry+https://github.com/rust-lang/crates.io-index"
947
+ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
948
+
949
+ [[package]]
950
+ name = "walkdir"
951
+ version = "2.5.0"
952
+ source = "registry+https://github.com/rust-lang/crates.io-index"
953
+ checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
954
+ dependencies = [
955
+ "same-file",
956
+ "winapi-util",
957
+ ]
958
+
959
+ [[package]]
960
+ name = "wasi"
961
+ version = "0.11.1+wasi-snapshot-preview1"
962
+ source = "registry+https://github.com/rust-lang/crates.io-index"
963
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
964
+
965
+ [[package]]
966
+ name = "wasip2"
967
+ version = "1.0.4+wasi-0.2.12"
968
+ source = "registry+https://github.com/rust-lang/crates.io-index"
969
+ checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
970
+ dependencies = [
971
+ "wit-bindgen",
972
+ ]
973
+
974
+ [[package]]
975
+ name = "winapi-util"
976
+ version = "0.1.11"
977
+ source = "registry+https://github.com/rust-lang/crates.io-index"
978
+ checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
979
+ dependencies = [
980
+ "windows-sys",
981
+ ]
982
+
983
+ [[package]]
984
+ name = "windows-link"
985
+ version = "0.2.1"
986
+ source = "registry+https://github.com/rust-lang/crates.io-index"
987
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
988
+
989
+ [[package]]
990
+ name = "windows-sys"
991
+ version = "0.61.2"
992
+ source = "registry+https://github.com/rust-lang/crates.io-index"
993
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
994
+ dependencies = [
995
+ "windows-link",
996
+ ]
997
+
998
+ [[package]]
999
+ name = "wit-bindgen"
1000
+ version = "0.57.1"
1001
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1002
+ checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
1003
+
1004
+ [[package]]
1005
+ name = "yoke"
1006
+ version = "0.8.3"
1007
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1008
+ checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
1009
+ dependencies = [
1010
+ "stable_deref_trait",
1011
+ "yoke-derive",
1012
+ "zerofrom",
1013
+ ]
1014
+
1015
+ [[package]]
1016
+ name = "yoke-derive"
1017
+ version = "0.8.2"
1018
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1019
+ checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
1020
+ dependencies = [
1021
+ "proc-macro2",
1022
+ "quote",
1023
+ "syn 2.0.119",
1024
+ "synstructure",
1025
+ ]
1026
+
1027
+ [[package]]
1028
+ name = "zerocopy"
1029
+ version = "0.8.56"
1030
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1031
+ checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"
1032
+ dependencies = [
1033
+ "zerocopy-derive",
1034
+ ]
1035
+
1036
+ [[package]]
1037
+ name = "zerocopy-derive"
1038
+ version = "0.8.56"
1039
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1040
+ checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"
1041
+ dependencies = [
1042
+ "proc-macro2",
1043
+ "quote",
1044
+ "syn 2.0.119",
1045
+ ]
1046
+
1047
+ [[package]]
1048
+ name = "zerofrom"
1049
+ version = "0.1.8"
1050
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1051
+ checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
1052
+ dependencies = [
1053
+ "zerofrom-derive",
1054
+ ]
1055
+
1056
+ [[package]]
1057
+ name = "zerofrom-derive"
1058
+ version = "0.1.7"
1059
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1060
+ checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
1061
+ dependencies = [
1062
+ "proc-macro2",
1063
+ "quote",
1064
+ "syn 2.0.119",
1065
+ "synstructure",
1066
+ ]
1067
+
1068
+ [[package]]
1069
+ name = "zip"
1070
+ version = "7.2.0"
1071
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1072
+ checksum = "c42e33efc22a0650c311c2ef19115ce232583abbe80850bc8b66509ebef02de0"
1073
+ dependencies = [
1074
+ "crc32fast",
1075
+ "indexmap",
1076
+ "memchr",
1077
+ "typed-path",
1078
+ ]
1079
+
1080
+ [[package]]
1081
+ name = "zmij"
1082
+ version = "1.0.23"
1083
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1084
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"