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

Function ds4_session_note_prefill_progress

ds4.c:26670–26680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26668 if (ok) ok = ds4_gpu_embed_token_hc_tensor(metal_graph_cur_hc(&g),
26669 model->map,
26670 model->size,
26671 weights->token_embd->abs_offset,
26672 (uint32_t)weights->token_embd->dim[1],
26673 (uint32_t)token,
26674 DS4_N_EMBD,
26675 DS4_N_HC) != 0;
26676 if (ok) ok = ds4_gpu_end_commands() != 0;
26677
26678 for (uint32_t il = 0; ok && il < DS4_N_LAYER; il++) {
26679 if (teacher_force) {
26680 ok = ds4_gpu_tensor_write(metal_graph_cur_hc(&g), 0, cpu_cur, hc_dim * sizeof(float)) != 0;
26681 }
26682 ok = ds4_gpu_begin_commands() != 0;
26683 if (ok) ok = metal_graph_encode_decode_layer(&g, model, &weights->layer[il],

Callers

nothing calls this directly

Calls 1

token_vec_pushFunction · 0.85

Tested by

no test coverage detected