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

Function weights_model_map_decode_layer_spans

ds4.c:4345–4353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4343 uint64_t d0,
4344 uint64_t d1,
4345 uint64_t d2) {
4346 if (!t) ds4_die("internal error: missing tensor while validating GLM dense layout");
4347 if (!tensor_type_is_glm_dense_quant(t->type)) {
4348 fprintf(stderr,
4349 "ds4: tensor %.*s has type %s, expected q8_0, q4_K, or q4_0\n",
4350 (int)t->name.len,
4351 t->name.ptr,
4352 tensor_type_name(t->type));
4353 exit(1);
4354 }
4355 tensor_expect_layout(t, t->type, ndim, d0, d1, d2);
4356}

Tested by

no test coverage detected