49 static const std::regex
blk(
"^blk\\.([0-9]+)\\.");
51 if (!std::regex_search(name,
m,
blk)) {
return -1; }
52 return std::stoi(
m[1].
str());
103 if (std::regex_search(name,
experts)) {
EXPERIMENTAL (v2.13.0): put a MoE layer's routed-expert tensors on the host while its attention,...
long bytes
Content bytes taken.
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver
constexpr const char * kExpertTensorRegex
Tensor-name pattern tail identifying a layer's ROUTED-expert weights.
GgufShape read_gguf_shape(const std::string &path)
Read a GGUF's shape from its metadata, without loading tensor data.
A GGUF's shape, as far as its metadata states it.