| 68 | }; |
| 69 | |
| 70 | const char* file_name(int id) { |
| 71 | switch (id) { |
| 72 | case 0: return "dense.bin"; |
| 73 | case 1: return "embd.bin"; |
| 74 | case 2: return "experts.bin"; |
| 75 | case 3: return "extra.bin"; // plan v0.3 P6: a native pack's float tensors that the base pack quantized |
| 76 | default: return nullptr; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /// UTF-16 path for CreateFile-free portability: the loader uses `std::fopen`, which on Windows takes an ANSI |
| 81 | /// path. The pack lives beside the executable in practice, but a pack under a user directory with a |
no outgoing calls
no test coverage detected