| 5341 | // ================================ THE ADAPTER ================================ |
| 5342 | |
| 5343 | bool ExpertDispatch::fetch_can(int64_t layer) const { |
| 5344 | return fetch_admit > 0 && res_mut != nullptr && !usage.empty() && plan != nullptr && plan->pcie_mode == 2 && |
| 5345 | plan->dst2 != nullptr && peer == nullptr && remote_count == 0 && fs == nullptr && pcie_num > 0 && |
| 5346 | src != nullptr && src->pcie_layer(layer); |
| 5347 | } |
| 5348 | |
| 5349 | void expert_pool_dispatch(void* user, const float* x_f, const int32_t* ids, const float* weights, int64_t n_embd, |
| 5350 | int64_t k, float* out) { |
no test coverage detected