| 1282 | } |
| 1283 | |
| 1284 | static common_chat_template load_template(testing & t, const std::string & template_path) { |
| 1285 | std::ifstream fin(template_path, std::ios::binary); |
| 1286 | std::ostringstream buf; |
| 1287 | if (fin.is_open()) { |
| 1288 | buf << fin.rdbuf(); |
| 1289 | } |
| 1290 | std::string template_source = buf.str(); |
| 1291 | common_chat_template tmpl(template_source, "", ""); |
| 1292 | t.assert_true("Nemotron template loaded successfully", template_source.length() > 0); |
| 1293 | return tmpl; |
| 1294 | } |
| 1295 | |
| 1296 | // ============================================================================ |
| 1297 | // Nemotron Template Analysis Tests |
no test coverage detected