frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

GigaToken: ~1000x faster Language model tokenization

https://github.com/marcelroed/gigatoken/
56•syrusakbary•1h ago

Comments

fwip•25m ago
What sort of setups do people have that are bounded by the speed of the tokenizer?
rhdunn•16m ago
It can be useful for checking input token usage before sending it to the model, e.g. preventing calls above a given token bound or grouping requests into batches.

It can also be used by the LLMs to provide the input and output token counts on the different APIs, though I'm not sure if this is how llama.cpp or other OpenAI-like APIs calculate the input/output tokens of a request.

charcircuit•11m ago
But are those bounded on the speed of tokenization?
andersa•14m ago
Wait, since when does it matter whether something being hyper-optimized is useful? The computer going brrrr on an interesting problem is in itself the goal!
fwip•7m ago
That's fair, I just figure there are useful scenarios as well. Apologies if I came off as dismissive!
marcelroed•10m ago
Author here! In my case it's mostly pretraining experiments, where you might want to change your data mixture/filtering/processing of training data, and splits are usually done at a token-level instead of a text level. In this case we usually run for days on a huge number of CPUs to finish tokenizing something like DCLM.

From what I can tell it's also useful for inference when considering time-to-first-token (TTFT) as reported by fastokens.[0]

I'm not sure about the proprietary inference engines, but in the open source ones tokenization is done before looking up if a text sequence is present in the KV-cache. If you have a long prefix that's been seen before (say a system prompt), the time for tokenizing that will be a large part of your TTFT. The tokenizer cache should be warmed up in this case, so the throughput for Gigatoken would be significantly higher than reported in the repo.

[0] https://github.com/crusoecloud/fastokens

lostmsu•9m ago
Can't you tokenize in preloading on demand?
fwip•6m ago
Very cool, thanks.
maxdo•24m ago
Interesting :

Q: Did you just way over-optimize for a specific CPU and tokenizer? How is it so fast? No, I way over-optimized for every combination of these! The results are very consistent across CPUs (modern x86 and ARM), and across specific tokenizers.

The major improvements are in optimizing heavily an implementation that usually is outsourced to a Regex engine (pretokenization) using SIMD, minimizing branching and other tricks, as well as heavily optimizing caching of pretoken mappings (if a word has been seen before, look it up its encoded tokens efficiently). Caching is a very hard problem in this domain since the cache grows very quickly, and pretoken distributions are very long-tailed.

Finally, interactions with Python are minimized, and threads have minimal interactions with each other.

sashank_1509•17m ago
This is really cool, great work!

Navigating the volatile silicon market: updates on memory and storage pricing

https://frame.work/blog/updates-on-memory-pricing-and-navigating-the-volatile-memory-market
1•davidjade•53s ago•0 comments

What to Expect from China's New Five-Year Plan

https://institute.global/insights/geopolitics-and-security/what-to-expect-from-chinas-new-five-ye...
1•toomuchtodo•1m ago•1 comments

RefluXFS: LPE in the Linux kernel via XFS reflink race (CVE-2026-64600)

https://www.openwall.com/lists/oss-security/2026/07/22/14
1•ilreb•2m ago•0 comments

Amazon once again locking me out of my own order data

https://bsky.app/profile/jon.moeller.io/post/3mrawmjzsmc2u
2•jmole•3m ago•0 comments

It's time to wake up: An Emacs alarm clock

https://lars.ingebrigtsen.no/2026/07/22/its-time-to-wake-up-an-emacs-alarm-clock/
1•meetpateltech•4m ago•0 comments

AI-maestro: Conduct a roster of AI coding agents against a work board

https://github.com/my-chiefmind/ai-maestro
1•mychiefmind•4m ago•0 comments

Comhad: A TUI replacement for Cyberduck, written in Rust

https://github.com/Eoin-McMahon/comhad
1•emcmahon478•5m ago•0 comments

The Healthcare Industry Is Coming for Your Face

https://www.karenschoellkopf.com/writing/biometric-data-healthcare
2•kgunette•5m ago•0 comments

Low-volume wearable interface for voice computing

https://twitter.com/augmentaltech/status/2079962940896338039
1•tomasero•6m ago•0 comments

How Gumclaw Works

https://gumclaw.github.io/how-i-work/index.html
1•tosh•9m ago•0 comments

Show HN: An open source schema definition for datasheets

https://nkorai.github.io/datasheet-schema/
1•nkorai•9m ago•0 comments

Show HN: Window Hints – Keyboard-first window switching

https://windowhints.com/
1•mihau•10m ago•0 comments

The Architecture of Open Source Applications

https://aosabook.org/en/index.html
2•blobcode•11m ago•0 comments

Amazon Cuts Jobs in Artificial General Intelligence Unit

https://www.wsj.com/tech/ai/amazon-cuts-jobs-in-artificial-general-intelligence-unit-fb86e2ba
2•N_A_T_E•11m ago•1 comments

Show HN: Caustic – a self-hosted compiler with no LLVM, Libc, or external tools

https://github.com/Caua726/Caustic
1•cauaneves•12m ago•0 comments

Dots-note 3.0 scored perfect points International Mathematical Olympiad problems

https://www.chinadaily.com.cn/a/202607/22/WS6a6085aaa310986e2b466b54.html
2•yogthos•13m ago•0 comments

Building a Tiny 3D Renderer for a Tiny Handheld

https://saffroncr.itch.io/katavatis/devlog/1534514/building-a-tiny-3d-renderer-for-a-tiny-handheld
1•g0xA52A2A•13m ago•0 comments

'The Odyssey' Proves It: Audiences Want Movies Made the Hard Way

https://www.hollywoodreporter.com/movies/movie-news/odyssey-box-office-2026-practical-effects-123...
3•randycupertino•14m ago•1 comments

Oido Studio – Build AI employees that run your business

https://oidostudio.com
1•djancyp•14m ago•1 comments

Zero-Copy Go: Why Io.Copy Is Lying to You (Sendfile/Splice)

https://blog.devgenius.io/zero-copy-go-why-io-copy-is-lying-to-you-sendfile-splice-11748e293462
2•cheikhdev•15m ago•0 comments

Show HN: SF Speedrun – a Mario style game about surviving SF startup culture

https://sfspeedrun.com/
1•ayaangazali•15m ago•1 comments

A Guide to Trust Anchor Rotation with Cert-Manager

https://www.buoyant.io/blog/a-guide-to-linkerd-trust-anchor-rotation-with-cert-manager
2•PagCatOli•15m ago•1 comments

A Rhino from the Arctic

https://nature.ca/en/about-the-museum/media-centre/a-rhino-from-the-arctic/
1•speckx•15m ago•0 comments

Show HN: SyncLite – An embedded synchronization layer for SQLite and DuckDB

https://github.com/syncliteio/SyncLite
1•mahcha•15m ago•0 comments

Pinball on 64-Bit Alpha AXP Windows NT

https://thebrokenpipe.com/blog/pinball-on-64-bit-alpha-axp-windows-nt/
1•jandeboevrie•16m ago•0 comments

Show HN: Live life calendar wallpaper for Mac

https://github.com/knguyenanhoa/lifecalwall
1•191101•17m ago•2 comments

Rube/1.0: A Byzantine protocol for transmitting one authenticated Boolean

https://raw.githubusercontent.com/voidnullvalue/RUBE/refs/heads/main/draft-rube-protocol-01.md
1•voidnullvalue•17m ago•0 comments

Show HN: Founders Feed

https://www.founders-feed.com
1•player08•17m ago•0 comments

Szr: A safer command output reduction for coding agents

https://github.com/devr-tools/szr
1•alxxjohn•18m ago•1 comments

Even AGI Can't Estimate a Jira Ticket

https://twitter.com/chkn_little/status/2079983527240581474
2•llmmadness•18m ago•0 comments