Show HN: Tool that hashes files into poems

0x12A1 pts0 comments

GitHub - alebeck/rhymesum: Hash files into LLM-generated poems locally · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

alebeck

rhymesum

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>4 Commits<br>4 Commits

blake3

blake3

llama

llama

.gitignore

.gitignore

Makefile

Makefile

README.md

README.md

compile_flags.txt

compile_flags.txt

download_model.sh

download_model.sh

main.cpp

main.cpp

words.cpp

words.cpp

words.h

words.h

View all files

Repository files navigation

rhymesum -- Hash files into LLM-generated poems locally

Note: This is a toy project and far from cryptographically safe, better don't use it in production.

What is this?

This project lets you fingerprint your files using LLM-generated poems instead of hard-to-remember checksums. It computes a BLAKE3 hash of the passed file, and based on that injects entropy in both the LLM sampler as well as the prompt itself. The output is a five-line poem representing a fingerprint of your file.

Example outputs

In twilight's hush, a phantom sloped<br>Across the meadow's trembling rim<br>A fleeting yodel echoed clear<br>As moonlight danced and stars drew near<br>In darkness's silence, all was grim

In a lovely abode I rest my head<br>Behind an ancient obelisk I softly tread<br>In the still of night a player draws near<br>She shakes her tambourine and whispers sweet cheer<br>The stars above twinkle with gentle delight

Build

Build with make, then download meta-llama-3.1-8b-instruct-q4_0.gguf model using bash download_model.sh.

Run

">rhymesum

Credits

This project builds heavily on llama.cpp

About

Hash files into LLM-generated poems locally

Resources

Readme

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

stars

Watchers

watching

Forks

forks

Report repository

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

C++<br>52.3%

21.3%

Assembly<br>9.8%

Cuda<br>6.9%

Metal<br>6.4%

Objective-C<br>2.4%

Other<br>0.9%

You can’t perform that action at this time.

files poems search reload rhymesum hash

Related Articles