MCPcopy Create free account
hub / github.com/antirez/ds4 / ds4_engine_routed_quant_bits

Function ds4_engine_routed_quant_bits

ds4.c:24029–24037  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24027 cuda_tp_partner_tier) != 0;
24028 peer_selected = &peer_selected_src;
24029 peer_weights = &peer_weights_src;
24030 peer_ffn_norm = metal_graph_ffn_norm(g);
24031 } else if (ok && cuda_tp_moe_peer_router) {
24032 ok = ds4_gpu_tensor_copy_xdev(g->ffn_norm_by_tier[cuda_tp_partner_tier],
24033 metal_graph_ffn_norm(g),
24034 (uint64_t)DS4_N_EMBD * sizeof(float)) != 0;
24035 peer_selected = &peer_selected_src;
24036 peer_weights = &peer_weights_src;
24037 peer_ffn_norm = g->ffn_norm_by_tier[cuda_tp_partner_tier];
24038 } else if (ok && g->cuda_tp_moe_pack_handoff) {
24039 const uint64_t norm_bytes = (uint64_t)DS4_N_EMBD * sizeof(float);
24040 const uint64_t packed_selected_off = norm_bytes;

Callers 8

run_logits_dumpFunction · 0.85
dist_send_helloFunction · 0.85
dist_write_logits_dumpFunction · 0.85
agent_kv_load_pathFunction · 0.85
agent_kv_save_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected