Join Nostr
2026-06-17 22:33:03 UTC

someone on Nostr: My clanker made a script that - downloads files from a HF repo - calculates hashes - ...

My clanker made a script that
- downloads files from a HF repo
- calculates hashes
- generates a torrent file

Cool part is it is using HF as webseed for initial seeding. After more people start using the torrents it will switch to torrent network as default.


Uploaded a few generated torrents:
Gemma 4 E2B: https://nostr.download/909109e7fd7b69f947677df723b88613d09a52e151ca992cfdd3a52546dee411.torrent

Minimax M3 UD-IQ2: https://nostr.download/3a438d921f8a760285033a1b5fdd0d4ce372560bb865f2184e39e9f488891e70.torrent






Code: https://gist.github.com/etemiz/c5d3e3c9b3a108b2d507714ff8ad2eed

Hardest part was finding correct URL formation for webseeds. First I was using Minimax m3 and it struggled a lot but then GLM 5.2 found the solution. . The rest is trivial..

In my tests qBittorrent on ubuntu was less eager to try webseeds. Transmission app does a better job of initial fetching from webseeds. HF webseeds mean files are also linked to HF (but it does not validate the model files!).

If anyone bans a model, we'll have decentralized ways to share.