This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Commit edf177e
[Cherry Picks] Analyze Bug Fixes (Updated) (#465)
* `RegistryMixin` improved alias management (#404)
* initial commit
* add docstrings
* simplify
* hardening
* refactor
* format registry lookup strings to be lowercases
* standardise aliases
* Move evaluator registry (#411)
* More control over external data size (#412)
* When splitting external data, avoid renaming `model.data` to `model.data.1` if only one external data file gets eventually saved (#414)
* [model.download] fix function returning nothing (#420)
* [BugFix] Path not expanded (#418)
* [Fix] Allow for processing Path in the sparsezoo analysis (#417)
* Raise TypeError instead of ValueError (#426)
* Fix misleading docstring (#416)
Add test
* add support for benchmark.yaml (#415)
* add support for benchmark.yaml
recent zoo models use `benchmark.yaml` instead of `benchmarks.yaml`. adding this additional pathway so `benchmark.yaml` is downloaded in the bulk model download
* update files filter
* fix tests
---------
Co-authored-by: dbogunowicz <damian@neuralmagic.com>
* [BugFix] Add analyze to init (#421)
* Add analyze to init
* Move onnxruntime to deps
* Print model analysis (#423)
* [model.download] fix function returning nothing (#420)
* [BugFix] Path not expanded (#418)
* print model-analysis
* [Fix] Allow for processing Path in the sparsezoo analysis (#417)
* add print statement at the end of cli run
---------
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com>
Co-authored-by: Rahul Tuli <rahul@neuralmagic.com>
Co-authored-by: dbogunowicz <97082108+dbogunowicz@users.noreply.github.com>
* Omit scalar weight (#424)
* ommit scalar weights:
* remove unwanted files
* comment
* Update src/sparsezoo/utils/onnx/analysis.py
Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
---------
Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
---------
Co-authored-by: George <george@neuralmagic.com>
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com>
Co-authored-by: dbogunowicz <97082108+dbogunowicz@users.noreply.github.com>
Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
* update analyze help message for correctness (#432)
* initial commit (#430)
* [sparsezoo.analyze] Fix pathway such that it works for larger models (#437)
* fix analyze to work with larger models
* update for failing tests; add comments
* Update src/sparsezoo/utils/onnx/external_data.py
Co-authored-by: dbogunowicz <97082108+dbogunowicz@users.noreply.github.com>
---------
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.coom>
Co-authored-by: dbogunowicz <97082108+dbogunowicz@users.noreply.github.com>
* Delete hehe.py (#439)
* Download deployment dir for llms (#435)
* Download deployment dir for llms
* Use path instead of download
* only set save_as_external_data to true if the model originally had external data (#442)
* Add Channel Wise Quantization Support (#441)
* Chunk download (#429)
* chunk download, break down into 10
* lint
* threads download
* draft
* chunk download draft
* job based download and combining/deleteing chunks
* delete old code
* lint
* fix num jobs if file_size is less than the chunk size
* doc string and return types
* test
* lint
* fix type hints (#445)
* fix bug if the value is a dict (#447)
* [deepsparse.analyze] Fix v1 functionality to work with llms (#451)
* fix equivalent changes made to analyze_v2 such that inference session works for llms; update wanrings to be debug printouts
* typo
* overwrite file (#450)
Co-authored-by: 21 <a21@21s-MacBook-Pro.local>
* Adds a `numpy_array_representer` to yaml (#454)
on runtime, to avoid serialization issues
* Avoid division by zero (#457)
Avoid log of zero
* op analysis total counts had double sparse counts (#461)
* Rename legacy analyze to analyze_v1 (#459)
* Fixing Quant % Calcuation (#462)
* initial fix
* style
* Include Sparsity in Size Calculation (#463)
* initial fix
* style
* incorporate sparsity into size calculation
* quality
* op analysis total counts had double sparse counts (#461)
* Fixing Quant % Calcuation (#462)
* initial fix
* style
* Include Sparsity in Size Calculation (#463)
* initial fix
* style
* incorporate sparsity into size calculation
* quality
* Revert "Merge branch 'main' into analyze_cherry_picks"
This reverts commit 509fa1a, reversing
changes made to 08f94c4.
---------
Co-authored-by: dbogunowicz <97082108+dbogunowicz@users.noreply.github.com>
Co-authored-by: Rahul Tuli <rahul@neuralmagic.com>
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.com>
Co-authored-by: Benjamin Fineran <bfineran@users.noreply.github.com>
Co-authored-by: dbogunowicz <damian@neuralmagic.com>
Co-authored-by: George <george@neuralmagic.com>
Co-authored-by: Dipika Sikka <dipikasikka1@gmail.coom>
Co-authored-by: 21 <a21@21s-MacBook-Pro.local>1 parent 44b7972 commit edf177e
File tree
6 files changed
+58
-39
lines changed- src/sparsezoo
- analyze_v2
- schemas
- utils/onnx
6 files changed
+58
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
181 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
182 | 181 | | |
183 | 182 | | |
184 | | - | |
185 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | | - | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| 62 | + | |
54 | 63 | | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| 80 | + | |
70 | 81 | | |
| 82 | + | |
71 | 83 | | |
72 | 84 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| |||
0 commit comments