| 138 | // lengths are not worth a probe. |
| 139 | if (prompt_len >= min_tokens) out.push_back(prompt_len); |
| 140 | for (auto it = boundaries.rbegin(); it != boundaries.rend(); ++it) { |
| 141 | if (*it >= min_tokens && *it < prompt_len) out.push_back(*it); |
| 142 | } |
| 143 | return out; |
| 144 | } |
| 145 | |
| 146 | int disk_prefix_cache_fixed_boundary(const DiskPrefixCachePolicy & policy, |
| 147 | int full_len, |
| 148 | int min_tokens) { |
| 149 | if (policy.mode != DiskPrefixCacheMode::Fixed) return 0; |
no test coverage detected