Commit a99f503
authored
Remove unused mip functions + fix multi-gpu test (#660)
## What does this PR do?
**Type of change:** Improvement <!-- Use one of the following: Bug fix,
new feature, new example, new tests, documentation. -->
- Fix tests for 2-gpu: Some places hard-coded cpu device for distributed
communications which was causing this issue
- Remove unused constrain_search_space.py
- Remove `is_multi_layer_puzzle: False` case
- Remove `use_greedy_search: False` case
- Remove knapsack mip case
- Remove unused `num_solutions` and `minimal_diversity` flags
## Testing
<!-- Mention how have you tested your change if applicable. -->
- GH CICD test passing
- Tested on 2-gpu setup locally as well
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
# Release Notes
* **Refactor**
* Optimized solver implementation with improved library integration.
* Simplified model compression configuration by removing deprecated
search options.
* Consolidated optimization paths for streamlined processing.
* **Chores**
* Updated dependencies for improved compatibility.
* **Documentation**
* Clarified Model-Optimizer installation instructions in examples.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Keval Morabia <[email protected]>1 parent a1f63bc commit a99f503
File tree
15 files changed
+82
-986
lines changed- examples
- compress
- configs/llama-3_1-8B_pruneffn_memory
- pruning
- modelopt/torch/_compress
- mip
- sewing_kit
- tests/gpu/torch/_compress
- resources/configs
15 files changed
+82
-986
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | 59 | | |
62 | 60 | | |
63 | 61 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
85 | | - | |
86 | 82 | | |
87 | | - | |
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
91 | 86 | | |
92 | 87 | | |
93 | 88 | | |
94 | 89 | | |
95 | | - | |
| 90 | + | |
96 | 91 | | |
97 | 92 | | |
98 | | - | |
| 93 | + | |
99 | 94 | | |
100 | 95 | | |
101 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments