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

Function write_u64

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

Source from the content-addressed store, hash-verified

1405 int64_t v = load_i64_le(src->data + (size_t)i * 8);
1406 if (v < INT32_MIN || v > INT32_MAX) die("I64 value out of I32 range");
1407 dst[i] = (int32_t)v;
1408 }
1409 return out;
1410}
1411
1412static size_t tensor_nbytes(ds4q_type type, const int64_t *ne, int n_dims) {

Callers 3

write_gguf_stringFunction · 0.85
write_imatrix_kvsFunction · 0.85
write_full_ggufFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected