franze
5 hours ago
I created "apfel" https://github.com/Arthur-Ficial/apfel a CLI for the apple on-device local foundation model (Apple intelligence) yeah its super limited with its 4k context window and super common false positives guardrails (just ask it to describe a color) ... bit still ... using it in bash scripts that just work without calling home / out or incurring extra costs feels super powerful.
AbuAssar
4 hours ago
nice project, thanks for sharing.
any plans for providing it through brew for easy installation?
grosswait
an hour ago
Looks like they just added homebrew tap to the instructions
woadwarrior01
3 hours ago
There's a very similar afm CLI that can be installed via Homebrew.
franze
28 minutes ago
done
brew tap Arthur-Ficial/tap
brew install Arthur-Ficial/tap/apfelfranze
4 hours ago
good idea
LeoDaVibeci
4 hours ago
Honestly I can't believe Apple put that foundation model product out the door. I was so excited about it, but when I tried it, it was such a disappointment. Glad to hear you calling that out so I know it wasn't just me.
Looks like they have pivoted completely over to Gemini, thank god.
franze
3 hours ago
yeah, it is super limited but also you can now do
cmd(){ local x c r a; while [[ $1 == -* ]]; do case $1 in -x)x=1;shift;; -c)c=1;shift;; *)break;; esac; done; r=$(apfel -q -s 'Output only a shell command.' "$*" | sed '/^```/d;/^#/d;s/^[[:space:]]*//;/^$/d' | head -1); [[ $r ]] || { echo "no command generated"; return 1; }; printf '\e[32m$\e[0m %s\n' "$r"; [[ $c ]] && printf %s "$r" | pbcopy && echo "(copied)"; [[ $x ]] && { printf 'Run? [y/N] '; read -r a; [[ $a == y ]] && eval "$r"; }; return 0; }
cmd find all swift files larger than 1MBcmd -c show disk usage sorted by size
cmd -x what process is using port 3000
cmd list all git branches merged into main
cmd count lines of code by language
without calling home or downloading extra local models
and well, maybe one day they get their local models .... more powerful, "less afraid" and way more context window.
beepbooptheory
10 minutes ago
What is the AI doing here? Or is this just like being cheeky?
drob518
an hour ago
In Apple’s defense, they did make it do something borderline useful while targeting a baseline of M1 Macs with 8 GB of RAM (and even less in phones).
JumpCrisscross
2 hours ago
…is it a reference to apfelwein?
franze
2 hours ago
just german for apple, cause reasons
JumpCrisscross
an hour ago
I thought it was a reference to Wine, the Linux Wine, and then thought of apfelwein. Nvm!