Simon Willison on Nostr: Here's a brilliant hack... llama.ttf is a font with a LLM embedded in it (using ...
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 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": "e044403c716f84971549891bfa2f8cdb6494c881f81eae3ec12b9ecb9f601702",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1719159752,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112666853509105383",
"activitypub"
]
],
"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 that can be used to play Tetris) here: https://simonwillison.net/2024/Jun/23/llama-ttf/",
"sig": "09e7c067f7ba1b63a9a88ed15ad3c52254185361b1358d27bd2e7e13bc1b357631f10f45963b76217f6935dc0042aa36d39c480035fdd71a45440ec1accedb7f"
}