This repository was archived by the owner on Jul 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit 3a63826
authored
Hostfix: remove not needed params from load_model (#2209)
* refactor: remove --pooling flag from model loading
The --pooling flag was removed as the mean pooling functionality not needed in chat models. This fixes the regression
* feat(local-engine): add ctx_len parameter support
Adds support for the ctx_len parameter by appending --ctx-size with its value. Removed outdated parameter mappings from the kParamsMap to reflect current implementation details and ensure consistency.
* feat: add conditional model parameters based on path
When the model path contains both "jan" and "nano" (case-insensitive), automatically add
speculative decoding parameters to adjust generation behavior. This improves
flexibility by enabling environment-specific configurations without manual
parameter tuning. Also includes necessary headers for string manipulation and
fixes whitespace in ctx_len handling.
* chore: remove redundant comment
The comment was redundant as the code's purpose is clear without it, improving readability.1 parent a90a5e8 commit 3a63826
File tree
2 files changed
+40
-17
lines changed- engine
- extensions/local-engine
- services
2 files changed
+40
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | + | ||
2 | 3 | | |
4 | + | ||
3 | 5 | | |
6 | + | ||
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
26 | + | ||
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | - | ||
49 | + | ||
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | - | ||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
58 | + | ||
55 | 59 | | |
56 | - | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
57 | 67 | | |
58 | 68 | | |
59 | 69 | | |
| |||
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
88 | 104 | | |
89 | 105 | | |
106 | + | ||
90 | 107 | | |
91 | 108 | | |
92 | 109 | | |
| |||
105 | 122 | | |
106 | 123 | | |
107 | 124 | | |
108 | - | ||
125 | + | ||
109 | 126 | | |
110 | 127 | | |
111 | 128 | | |
112 | 129 | | |
113 | 130 | | |
114 | 131 | | |
115 | 132 | | |
133 | + | ||
116 | 134 | | |
117 | 135 | | |
118 | 136 | | |
| |||
561 | 579 | | |
562 | 580 | | |
563 | 581 | | |
564 | - | ||
565 | - | ||
566 | 582 | | |
567 | 583 | | |
568 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | - | ||
169 | - | ||
168 | + | ||
169 | + | ||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | + | ||
561 | + | ||
560 | 562 | | |
561 | 563 | | |
562 | 564 | | |
| |||
630 | 632 | | |
631 | 633 | | |
632 | 634 | | |
635 | + | ||
636 | + | ||
633 | 637 | | |
634 | 638 | | |
635 | 639 | | |
| |||
642 | 646 | | |
643 | 647 | | |
644 | 648 | | |
649 | + | ||
650 | + | ||
645 | 651 | | |
646 | 652 | | |
647 | 653 | | |
| |||
655 | 661 | | |
656 | 662 | | |
657 | 663 | | |
664 | + | ||
658 | 665 | | |
659 | 666 | | |
660 | 667 | | |
661 | 668 | | |
662 | 669 | | |
663 | 670 | | |
664 | 671 | | |
665 | - | ||
666 | - | ||
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
| |||
686 | 691 | | |
687 | 692 | | |
688 | 693 | | |
689 | - | ||
690 | - | ||
694 | + | ||
695 | + | ||
691 | 696 | | |
692 | 697 | | |
693 | 698 | | |
694 | - | ||
699 | + | ||
695 | 700 | | |
696 | 701 | | |
697 | 702 | | |
| |||
1031 | 1036 | | |
1032 | 1037 | | |
1033 | 1038 | | |
1034 | - | ||
1035 | - | ||
1039 | + | ||
1040 | + | ||
1041 | + | ||
1036 | 1042 | | |
1037 | 1043 | | |
1038 | 1044 | | |
1039 | - | ||
1040 | - | ||
1045 | + | ||
1046 | + | ||
1047 | + | ||
1041 | 1048 | | |
1042 | 1049 | | |
1043 | 1050 | | |
| |||
0 commit comments