| 876 | } |
| 877 | |
| 878 | std::string gpt_random_prompt(std::mt19937 & rng) { |
| 879 | const int r = rng() % 10; |
| 880 | switch (r) { |
| 881 | case 0: return "So"; |
| 882 | case 1: return "Once upon a time"; |
| 883 | case 2: return "When"; |
| 884 | case 3: return "The"; |
| 885 | case 4: return "After"; |
| 886 | case 5: return "If"; |
| 887 | case 6: return "import"; |
| 888 | case 7: return "He"; |
| 889 | case 8: return "She"; |
| 890 | case 9: return "They"; |
| 891 | } |
| 892 | |
| 893 | GGML_UNREACHABLE(); |
| 894 | } |
| 895 | |
| 896 | // |
| 897 | // Model utils |