Simon Willison on Nostr: Here's a brilliant hack... llama.ttf https://fuglede.github.io/llama.ttf/ is a font ...
Here's a brilliant hack... llama.ttf
https://fuglede.github.io/llama.ttf/ is a font with a LLM embedded in it (using WebAssembly, which apparently can be used in fonts now)
You type "Once upon a time!!!!!!!!!!" and those exclamation marks are rendered to show the LLM generated text, using a tiny 30MB model
I wrote more notes on how it works (including a link to another font demo that can be used to play Tetris) here:
https://simonwillison.net/2024/Jun/23/llama-ttf/Published at
2024-06-23 16:22:32Event JSON
{
"id": "57c3507f4eee6a10e782c5c103a74c9245475d1523ddf5a58a0ab914194937f2",
"pubkey": "4315a187e024818492e61938093ba683dae66624d202cd43738de5b8ba198c0f",
"created_at": 1719159752,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.simonwillison.net/@simon/112666853509105383",
"web"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112666853509105383",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fedi.simonwillison.net/users/simon/statuses/112666853509105383",
"pink.momostr"
],
[
"expiration",
"1721757580"
]
],
"content": "Here's a brilliant hack... llama.ttf https://fuglede.github.io/llama.ttf/ is a font with a LLM embedded in it (using WebAssembly, which apparently can be used in fonts now)\n\nYou type \"Once upon a time!!!!!!!!!!\" and those exclamation marks are rendered to show the LLM generated text, using a tiny 30MB model\n\nI wrote more notes on how it works (including a link to another font demo that can be used to play Tetris) here: https://simonwillison.net/2024/Jun/23/llama-ttf/",
"sig": "d7e74d9699808eed4b4ac55dd96c653081bef91177979a6bd7583beed664e943534db6b4cdfaf74653767f4552a8e8dbb47ce1a8d5658b4f085511f1bba129e3"
}