• 2 Posts
  • 11 Comments
Joined 2 months ago
cake
Cake day: April 24th, 2026

help-circle
  • Thank you so much, I appreciate your comments. It means a lot to me. :)

    The only reason why I did this project was because someone showed up in my feed with a post about a DS Lite hack. We’re all inspiring each other haha :D

    However for me this is not on topic for selfhosting

    I’m always struggling to find the right community for posting. Which place would be the best?



  • This is the model:

    {
      "data" : [
        {
          "context_window" : 4096,
          "created" : 1719792000,
          "id" : "apple-foundationmodel",
          "notes" : "Apple on-device model via FoundationModels framework. Unsupported parameters are rejected with 400 when present (except n=1 and logprobs=false). Supported languages: it, zh, fr, en, nb, fr, da, es, es, es, vi, zh, de, pt, tr, en, zh, sv, nl, ja, en, ko, pt",
          "object" : "model",
          "owned_by" : "apple",
          "supported_parameters" : [
            "temperature",
            "max_tokens",
            "seed",
            "stream",
            "tools",
            "tool_choice",
            "response_format",
            "x_context_strategy",
            "x_context_max_turns",
            "x_context_output_reserve"
          ],
          "unsupported_parameters" : [
            "logprobs",
            "n",
            "stop",
            "presence_penalty",
            "frequency_penalty"
          ]
        }
      ],
      "object" : "list"
    }
    

    and I’m running it on a MacBook Air M4 16 GB. “Apfel” (the CLI tool) is kinda a wrapper around it and exposes an OpenAI compatible API.



  • I use the Kaico DSpico Flashcart and on the RPi Zero 2W I use a bash script (because I don’t want to host it permanently) with hostapd, iw, dnsmasq, socat, and iproute2. For HTTP and JSON I use my own implementation, no library. The rest is documented in the post.

    Did some experiments with my DS Lite and ended up with this. Using DevkitPro libs (libnds, dswifi, calico). Apfel on macOS and a wifi (WEP) bridge running on a RPi Zero 2W. 🖤