llama.cpp on a jailbroken PS5: run any GGUF model natively on the console, starting with Qwen 3.8
App: a splash while the app restarts; the suggested 27B is UD-Q2_K_XL
Mert Cobanov390d7aa1b109
diff --git a/ps5/app/assets/fonts/manrope-200.huifont b/ps5/app/assets/fonts/manrope-200.huifontindex f959cd9..d1e6db2 100644Binary files a/ps5/app/assets/fonts/manrope-200.huifont and b/ps5/app/assets/fonts/manrope-200.huifont differdiff --git a/ps5/app/assets/fonts/manrope-500.huifont b/ps5/app/assets/fonts/manrope-500.huifontindex 920df2a..f3a9316 100644Binary files a/ps5/app/assets/fonts/manrope-500.huifont and b/ps5/app/assets/fonts/manrope-500.huifont differdiff --git a/ps5/app/assets/fonts/manrope-600.huifont b/ps5/app/assets/fonts/manrope-600.huifontindex 8fd5c07..d835257 100644Binary files a/ps5/app/assets/fonts/manrope-600.huifont and b/ps5/app/assets/fonts/manrope-600.huifont differdiff --git a/ps5/app/dashboard.cpp b/ps5/app/dashboard.cppindex d060837..de005de 100644--- a/ps5/app/dashboard.cpp+++ b/ps5/app/dashboard.cpp@@ -1273,7 +1273,11 @@ void Dashboard::draw_suggested(gfx::DrawList & l, const Rect & a) const {const float nw = put(l, f.regular, s.name, a.x + 28, y + 36, 26, kInk);const double bytes = (double) s.model.bytes + (double) (s.mmproj.file ? s.mmproj.bytes : 0);put(l, f.regular, format("%.1f GB", bytes / 1073741824.0), a.x + 28 + nw + 14, y + 36, 21, kInk3);- const std::string about = std::string(s.decision ? "Decision" : s.mmproj.file ? "Language, images" : "Language") + " " + s.about;+ std::string about = s.decision ? "Decision" : s.mmproj.file ? "Language, images" : "Language";+ if (s.tps > 0) {+ about += format(" %.0f tokens a second here", s.tps);+ }+ about += std::string(" ") + s.about;put(l, f.regular, f.regular.font->fit(about, 20, a.w - 260), a.x + 28, y + 66, 20, kInk3);// On the console already, on its way, or ready to get.std::string state;@@ -1544,18 +1548,22 @@ void Dashboard::draw_dialogs(gfx::DrawList & l) const {}}-// Slow work: a turning arc and what is happening, so a pause never looks like a hang.+// Slow work, often the app restarting for a model: the whole screen, the+// name and what is happening, and a bar that keeps moving so a pause never+// looks like a hang.void Dashboard::draw_busy(gfx::DrawList & l) const {const ui::Fonts & f = fonts_;- const Rect d{ 960 - 440, 540 - 110, 880, 220 };- sheet(l, d);- const float cx = d.x + 92, cy = d.cy();- l.ring(cx, cy, 30, 4, kHair);- l.arc(cx, cy, 30, 4, clock_ * 5.0f, 1.4f + 0.8f * std::sin(clock_ * 2.1f), kBlue);- put(l, f.semibold, f.semibold.font->fit(busy_title_, 30, d.w - 220), d.x + 156, cy - 6, 30, kInk);- if (!busy_text_.empty()) {- put(l, f.regular, f.regular.font->fit(busy_text_, 21, d.w - 220), d.x + 156, cy + 32, 21, kInk2);- }+ l.rounded_rect({ 0, 0, 1920, 1080 }, 0, kBase);+ const float ps5 = f.semibold.measure("PS5", 120), lm = f.semibold.measure("LM", 120);+ const float x = 960 - (ps5 + lm) * 0.5f;+ put(l, f.semibold, "PS5", x, 500, 120, kInk);+ put(l, f.semibold, "LM", x + ps5, 500, 120, kBlue);+ put(l, f.regular, f.regular.font->fit(busy_title_, 32, 1400), 960, 600, 32, kInk, gfx::Align::center);+ put(l, f.regular, f.regular.font->fit(busy_text_, 24, 1400), 960, 646, 24, kInk2, gfx::Align::center);+ const float track = 360, seg = 96;+ const float t = 0.5f + 0.5f * std::sin(clock_ * 2.4f);+ l.rounded_rect({ 960 - track * 0.5f, 700, track, 3 }, 1.5f, kHair);+ l.rounded_rect({ 960 - track * 0.5f + (track - seg) * t, 700, seg, 3 }, 1.5f, kInk);}} // namespace ps5lmdiff --git a/ps5/app/suggested.hpp b/ps5/app/suggested.hppindex ca080de..6f947b8 100644--- a/ps5/app/suggested.hpp+++ b/ps5/app/suggested.hpp@@ -20,35 +20,38 @@ struct Suggestion {const char * name; // what the list calls itbool decision; // answers /v1/systemone, not chatconst char * about; // one line: what it is good at here+ float tps; // tokens a second it generates on the console, 0 when not measuredconst char * repo;SuggestedFile model;SuggestedFile mmproj; // file null: text only};inline constexpr Suggestion kSuggestions[] = {- { "Qwen 3.8 27B", false, "The strongest model that fits, with a 64k context", "unsloth/Qwen3.8-27B-GGUF",- { "Qwen3.8-27B-UD-IQ2_XXS.gguf", 7266070528ull, "e792d8fb3142fe6d9171876d6da0f71f05a71028718debc72dbec93ff645e67d", nullptr },+ // UD-Q2_K_XL, not the smaller IQ2_XXS: the K-quants' kernels run faster here+ // (20 against 15 tokens a second), and it still holds a 64k context.+ { "Qwen 3.8 27B", false, "The strongest model that fits, with a 64k context", 20, "unsloth/Qwen3.8-27B-GGUF",+ { "Qwen3.8-27B-UD-Q2_K_XL.gguf", 9828981664ull, "fd4730dd8aad070517978752b63d530aeb1740d2283cab9fa24f1e404032ddb0", nullptr },{} },- { "Qwen 3.5 9B", false, "Fast all-rounder that leaves room for long chats", "unsloth/Qwen3.5-9B-GGUF",+ { "Qwen 3.5 9B", false, "Fast all-rounder that leaves room for long chats", 55, "unsloth/Qwen3.5-9B-GGUF",{ "Qwen3.5-9B-Q4_K_M.gguf", 5680522464ull, "03b74727a860a56338e042c4420bb3f04b2fec5734175f4cb9fa853daf52b7e8", nullptr },{} },- { "Gemma 4 E4B", false, "Reads images, quick replies", "ggml-org/gemma-4-E4B-it-GGUF",+ { "Gemma 4 E4B", false, "Reads images, quick replies", 0, "ggml-org/gemma-4-E4B-it-GGUF",{ "gemma-4-E4B-it-Q4_0.gguf", 4590807392ull, "a555b900214b477d8880e7832e0b8925e139b0159640036b09fe472b6f2097f2", nullptr },{ "mmproj-gemma-4-E4B-it-Q8_0.gguf", 559874816ull, "197f49a93027f9843772bd24a6a9e0be2a32a788de5a3def330e9c585d86edd1", nullptr } },- { "MiniCPM-V 4.7 1B", false, "Small and very fast, reads images", "openbmb/MiniCPM-V-4.7-1B-gguf",+ { "MiniCPM-V 4.7 1B", false, "Small and very fast, reads images", 205, "openbmb/MiniCPM-V-4.7-1B-gguf",{ "MiniCPM-V-4_7-1B-Q4_K_M.gguf", 672003680ull, "588c6c94c82f756b86dba35c42ed9ba9ec187d65824eb52f039c347df563e63d", nullptr },{ "mmproj-model-f16.gguf", 1110117984ull, "fb9cc047a3cdad5317fd8433a4aeda2d22f00f02ca4bd93b34ad84165b25a900","mmproj-MiniCPM-V-4_7-1B-f16.gguf" } },- { "Qwen 3.5 0.8B", false, "Tiny and instant, for simple tasks", "unsloth/Qwen3.5-0.8B-GGUF",+ { "Qwen 3.5 0.8B", false, "Tiny and instant, for simple tasks", 207, "unsloth/Qwen3.5-0.8B-GGUF",{ "Qwen3.5-0.8B-Q4_K_M.gguf", 532517120ull, "bd258782e35f7f458f8aced1adc053e6e92e89bc735ba3be89d38a06121dc517", nullptr },{} },- { "d1 Omni 600M", true, "Decisions about text, images and sound in a fraction of a second", "LiquidAI/d1-omni-600M-GGUF",+ { "d1 Omni 600M", true, "Decisions about text, images and sound in a fraction of a second", 0, "LiquidAI/d1-omni-600M-GGUF",{ "d1-omni-600M-BF16.gguf", 764049056ull, "9bf4f344835f64264978907a0b0bc43c9f0e59804f15176f8b5630c930c3c9df", nullptr },{ "mmproj-d1-omni-600M-BF16.gguf", 442441792ull, "1aed7f0ff41f354c66cf3fa41c9eb43f1a76b3ea9453edd8e804567674a9041e", nullptr } },- { "d1 3B", true, "Sharper decisions about text and images", "LiquidAI/d1-3B-GGUF",+ { "d1 3B", true, "Sharper decisions about text and images", 0, "LiquidAI/d1-3B-GGUF",{ "d1-3B-Q8_0.gguf", 2874781280ull, "2f0942d5a5f64cf69c3356d2be439b71644b1f0eb3a580912a5a0179eeaba77d", nullptr },{ "mmproj-d1-3B-Q8_0.gguf", 583109728ull, "2505920ce464b7c54acd8b7b74a931c0c671f06d0c8833760b2fbceeb253e92a", nullptr } },- { "Clef Flash", true, "Answers every question of a request together", "ggml-org/Clef-Flash-GGUF",+ { "Clef Flash", true, "Answers every question of a request together", 0, "ggml-org/Clef-Flash-GGUF",{ "Clef-Flash-Q4_K_M.gguf", 6486448288ull, "3626116623ca8d89641952471fac9ce12af84fb3517520029a2ac6f5146868a2", nullptr },{ "mmproj-Clef-Flash-Q8_0.gguf", 624229728ull, "9dd8bc279f57d33b0697d4d0fe900fe751a24c9e3d30ab90969d4714ffc0722d", nullptr } },};diff --git a/scripts/bake-fonts.sh b/scripts/bake-fonts.shindex 84ae4c4..d0370ea 100755--- a/scripts/bake-fonts.sh+++ b/scripts/bake-fonts.sh@@ -1,6 +1,7 @@#!/usr/bin/env bash# Bakes the dashboard's typeface, Manrope (OFL, third_party/fonts/manrope), into-# the SDF .huifont files the app loads from assets/fonts: weight 500 for text,+# the SDF .huifont files the app loads from assets/fonts, with accented Latin,+# typographic quotes and dashes (the european set), as models write them: weight 500 for text,# 600 for titles and 200 for the large numbers. Needs fontTools and a host clang++.set -euo pipefail@@ -17,7 +18,7 @@ from fontTools.ttLib import TTFontfrom fontTools.varLib.instancer import instantiateVariableFontinstantiateVariableFont(TTFont(sys.argv[1]), {"wght": int(sys.argv[2])}).save(sys.argv[3])' \"$src/Manrope[wght].ttf" "$weight" "$tmp/manrope-$weight.ttf"- "$tmp/bake_font" "$tmp/manrope-$weight.ttf" "$out/manrope-$weight.huifont" 64 8 1024+ "$tmp/bake_font" "$tmp/manrope-$weight.ttf" "$out/manrope-$weight.huifont" 64 8 2048 europeandonecp "$src/OFL.txt" "$out/manrope-LICENSE.txt"echo "bake-fonts: $out"