I got an LLM to dynamically set its own temperature!
Just wrote a blog post on how I did this and why dynamic temperature adjustment might be a valuable ability for a language model to possess.
Read here: amanvir.com/blog/getting-an-llm-to-set-its-own-temperature
24.06.2025 23:47
👍 1
🔁 1
💬 0
📌 0
Thanks Xavier, really glad you like the site! 😄
18.06.2025 00:44
👍 0
🔁 0
💬 0
📌 0
Obscure Islands I Find Interesting
Explore this curated map of interesting yet relatively unknown islands.
If you’d like to check out some obscure islands that I find interesting... :)
26.05.2025 10:40
👍 0
🔁 0
💬 0
📌 0
Summer Culture Preview
What’s happening this season in TV, movies, music, art, theatre, and dance.
Feels surreal seeing a creative project of mine in such a major publication!
26.05.2025 10:40
👍 0
🔁 0
💬 1
📌 0
My work was featured in The New Yorker this week!
The "Goings On" section, which focuses on curating cultural touchstones and happenings, linked to my interactive webpage on Earth's obscure islands as part of their annual "Summer Culture Preview."
26.05.2025 10:40
👍 0
🔁 0
💬 1
📌 0
GPT-2's Attention Weights, Visualized
A tool to visualize attention patterns in the GPT-2 model as it generates text.
If you'd like to run the visualization and play around with it, please feel free to check it out on my website: amanvir.com/gpt-2-attention!
20.04.2025 17:31
👍 1
🔁 0
💬 0
📌 0
I created a 3D visualization that shows *every* attention weight matrix within GPT-2 as the model generates tokens!
20.04.2025 17:31
👍 5
🔁 1
💬 1
📌 0
Animating Text with Dawkins' Weasel
Using Richard Dawkins' famous evolutionary simulation to create a text scramble effect.
I ended up writing an entire article on my website that explains what Dawkins' weasel is and how it can be used to create the cool effect you see in the video below: amanvir.com/blog/animati...
Feel free to check it out, and let me know what you think!
18.03.2025 11:02
👍 0
🔁 0
💬 0
📌 0
Over the past few days, I worked on creating a text animation effect using Dawkins' weasel, a computer simulation devised by evolutionary biologist Richard Dawkins in the 1980s.
18.03.2025 11:02
👍 2
🔁 0
💬 1
📌 0
Haha, that sounds awesome! Truly a win-win 😄
28.02.2025 20:07
👍 0
🔁 0
💬 0
📌 0
I built an ESP32-based DNS sinkhole that stops you from doomscrolling!
This was a really fun project that I wrote a detailed blog post about.
In it, I document my experience building this thing, and I also share what I’ve learned about DNS, networking, and low-level programming along the way ⬇️
28.02.2025 10:35
👍 4
🔁 0
💬 1
📌 1
GitHub - amanvirparhar/gempress: A script to fix basic typesetting and formatting issues in public domain eBooks.
A script to fix basic typesetting and formatting issues in public domain eBooks. - amanvirparhar/gempress
Currently, this is a pretty simple program, but I hope that I (or anyone else in the community!) can expand on it by adding functionality to tackle typos, gibberish text, and other issues found within public domain literature.
Here’s the GitHub repo for this project:
github.com/amanvirparha...
12.02.2025 23:33
👍 0
🔁 0
💬 0
📌 0
These indices are used to create a new ePub that *only* includes meaningful parts of the book's text - the parts that we're interested in reading!
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
The model is asked to respond with JSON that contains the indices for the first and last paragraphs of each chapter. Gemini is able to accurately return the index of any given paragraph, because each “paragraph” from the book’s raw text is wrapped with a numbered tag which the model can reference:
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
The script I ended up writing works like this: the model first takes in a prompt and the book’s content. It's not asked to return a corrected version of the entire book (output limit = ~8k toks), but is instead asked to return JSON that aligns with a provided schema (structured generation).
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
The model also performs pretty well at “needle In a haystack”-type tests, so it seemed like the perfect choice! (some tweets by @jeffdean.bsky.social!)
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
I started thinking about fixing some of these typesetting/formatting issues using an LLM, and I quickly realized that Gemini would be perfect for this project - the 1M+ token context window would allow me to paste the text for an entire book in one shot.
12.02.2025 23:33
👍 1
🔁 0
💬 1
📌 0
Standard Ebooks
Free and liberated ebooks, carefully produced for the true book lover. Download free ebooks with professional-quality formatting and typography, in formats compatible with your ereader.
In my experience, most books on Project Gutenberg are unfortunately formatted in a non-standard way, and a lot of books are actually plagued with much bigger issues than the one I was looking for.
This is essentially the reason why initiatives like standardebooks.com exist.
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
The ePub I found wasn’t properly formatted: it contained a duplicate, malformed copy of the table of contents spanning several pages, and the worst part was that every single poem was displayed in monospace for some reason.
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
This project was born out of a personal need: I was looking for a poetry collection by Robert Frost on gutenberg.org, a repository with thousands of free eBooks, but when I downloaded the ePub for this particular book, I was rather disappointed.
12.02.2025 23:33
👍 1
🔁 0
💬 1
📌 0
I wrote a script that uses Google’s Gemini-1.5-Flash model to fix typesetting and formatting issues in public domain eBooks from Project Gutenberg.
It’s open source, and it works thanks to Gemini’s insanely long context window (1M+ tokens)!
A thread 🧵 ⬇️
12.02.2025 23:33
👍 0
🔁 0
💬 1
📌 0
Hey, I'm the creator of this site!
Thank you so much for your kind words, I really appreciate it!
11.02.2025 06:05
👍 1
🔁 0
💬 1
📌 0
Obscure Islands I Find Interesting
Explore this curated map of interesting yet relatively unknown islands.
Spending time going through this gallery of "interesting islands" makes me very happy. Like poring over the Brittanica atlas as a kid and reading stories of the bermuda triangle, read to me by Jed Barlett.
amanvir.com/obscure-isla...
09.02.2025 05:08
👍 3
🔁 1
💬 1
📌 0
Thanks for posting my blog here on Bluesky!
I hope you enjoyed reading it :)
11.02.2025 06:03
👍 2
🔁 0
💬 2
📌 0
Nice site of fun facts about obscure islands:
amanvir.com/obscure-isla...
(Via Hacker News)
09.02.2025 03:17
👍 13
🔁 2
💬 1
📌 0
Experiments
A list of my pet projects and creations.
Thanks for sharing this, Jeff!
I made this site a little over a year ago as part of my series of publicly documented "internet experiments" (amanvir.com/experiments), so I'm really glad to see it getting some love :)
11.02.2025 06:01
👍 1
🔁 0
💬 1
📌 0
Hey Jeff, I'm the creator of this visualization :)
The sense of childlike wonder you describe is the exact reason why I chose to build this project!
I remember spending hours staring at my globe as a kid, learning about new and unfamiliar places. Truly a foundational childhood memory!
11.02.2025 05:56
👍 1
🔁 0
💬 0
📌 0