@@ -1484,34 +1484,39 @@ struct LLM_TN {
1484
1484
1485
1485
std::string operator()(llm_tensor tensor) const {
1486
1486
if (LLM_TENSOR_NAMES.at(arch).find(tensor) == LLM_TENSOR_NAMES.at(arch).end()) {
1487
+ LLAMA_LOG_DEBUG("%s: Missing tensor %d for arch %s\n", __func__, tensor, LLM_ARCH_NAMES.at(arch));
1487
1488
return "__missing__";
1488
1489
}
1489
1490
return LLM_TENSOR_NAMES.at(arch).at(tensor);
1490
1491
}
1491
1492
1492
1493
std::string operator()(llm_tensor tensor, const std::string & suffix) const {
1493
1494
if (LLM_TENSOR_NAMES.at(arch).find(tensor) == LLM_TENSOR_NAMES.at(arch).end()) {
1495
+ LLAMA_LOG_DEBUG("%s(%s): Missing tensor %d for arch %s\n", __func__, suffix.c_str(), tensor, LLM_ARCH_NAMES.at(arch));
1494
1496
return "__missing__";
1495
1497
}
1496
1498
return LLM_TENSOR_NAMES.at(arch).at(tensor) + "." + suffix;
1497
1499
}
1498
1500
1499
1501
std::string operator()(llm_tensor tensor, int bid) const {
1500
1502
if (LLM_TENSOR_NAMES.at(arch).find(tensor) == LLM_TENSOR_NAMES.at(arch).end()) {
1503
+ LLAMA_LOG_DEBUG("%s(%d): Missing tensor %d for arch %s\n", __func__, bid, tensor, LLM_ARCH_NAMES.at(arch));
1501
1504
return "__missing__";
1502
1505
}
1503
1506
return ::format(LLM_TENSOR_NAMES.at(arch).at(tensor).c_str(), bid);
1504
1507
}
1505
1508
1506
1509
std::string operator()(llm_tensor tensor, const std::string & suffix, int bid) const {
1507
1510
if (LLM_TENSOR_NAMES.at(arch).find(tensor) == LLM_TENSOR_NAMES.at(arch).end()) {
1511
+ LLAMA_LOG_DEBUG("%s(%s, %d): Missing tensor %d for arch %s\n", __func__, suffix.c_str(), bid, tensor, LLM_ARCH_NAMES.at(arch));
1508
1512
return "__missing__";
1509
1513
}
1510
1514
return ::format(LLM_TENSOR_NAMES.at(arch).at(tensor).c_str(), bid) + "." + suffix;
1511
1515
}
1512
1516
1513
1517
std::string operator()(llm_tensor tensor, const std::string & suffix, int bid, int xid) const {
1514
1518
if (LLM_TENSOR_NAMES.at(arch).find(tensor) == LLM_TENSOR_NAMES.at(arch).end()) {
1519
+ LLAMA_LOG_DEBUG("%s(%s, %d, %d): Missing tensor %d for arch %s\n", __func__, suffix.c_str(), bid, xid, tensor, LLM_ARCH_NAMES.at(arch));
1515
1520
return "__missing__";
1516
1521
}
1517
1522
return ::format(LLM_TENSOR_NAMES.at(arch).at(tensor).c_str(), bid, xid) + "." + suffix;
0 commit comments