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

Function gguf_string_size

gguf-tools/deepseek4-quantize.c:1399–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397
1398static byte_buf i64_to_i32(const st_value *src) {
1399 if (strcmp(src->dtype, "I64") != 0) die("expected I64 source for I32 tensor");
1400 const int64_t n = value_nelements(src);
1401 if (src->nbytes != (size_t)n * sizeof(int64_t)) die("bad I64 byte size");
1402 byte_buf out = { .size = (size_t)n * sizeof(int32_t), .data = xmalloc((size_t)n * sizeof(int32_t)) };
1403 int32_t *dst = (int32_t *)out.data;
1404 for (int64_t i = 0; i < n; i++) {

Callers 2

extra_imatrix_kv_sizeFunction · 0.85
build_output_contextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected