server : avoid repeated mmproj memory margin addition on sleep/resume (#28233)
Co-authored-by: TANGBUDU <TANGBUDU@users.noreply.github.com>
This commit is contained in:
1 parent
39da130fcd
commit
5a9a34d888
1 file changed
+2
-1
@@ -1180,7 +1180,8 @@ private:
|
||||
}
|
||||
|
||||
// optionally fit mmproj memory usage
|
||||
if (has_mmproj && params_base.fit_params) {
|
||||
// on resume params_base already holds the margin from the first load
|
||||
if (has_mmproj && params_base.fit_params && !is_resume) {
|
||||
const auto & mmproj_mem = mmproj_usage.backend_mem_usage;
|
||||
const int64_t t_elapsed = mmproj_usage_t_us;
|
||||
if (!mmproj_mem.empty()) {
|
||||
|
||||
Reference in new issue
Block a user