HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
google
flaxformer
Python2023–2023
google / flaxformer · Archived

flaxformer

Discover this repository through its Hacker News conversations.

3Distinct people
3Mentions
0Explicit recommenders
372GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval3 dated mentions

Observed mentions: 2023-07-24 19:14:12 UTC to 2023-07-26 11:53:42 UTC.

0122023-07-24 18:00:00 UTC to 2023-07-24 21:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJul 24, 18:002023-07-24 21:00:00 UTC to 2023-07-25 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 00:00:00 UTC to 2023-07-25 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 03:00:00 UTC to 2023-07-25 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 06:00:00 UTC to 2023-07-25 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 09:00:00 UTC to 2023-07-25 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 12:00:00 UTC to 2023-07-25 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJul 25, 12:002023-07-25 15:00:00 UTC to 2023-07-25 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 18:00:00 UTC to 2023-07-25 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-25 21:00:00 UTC to 2023-07-26 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-26 00:00:00 UTC to 2023-07-26 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-26 03:00:00 UTC to 2023-07-26 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-26 06:00:00 UTC to 2023-07-26 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-07-26 09:00:00 UTC to 2023-07-26 12:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJul 26, 09:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jul 24, 18:002023-07-24 18:00:00 UTC2023-07-24 21:00:00 UTC202
Jul 24, 21:002023-07-24 21:00:00 UTC2023-07-25 00:00:00 UTC000
Jul 25, 00:002023-07-25 00:00:00 UTC2023-07-25 03:00:00 UTC000
Jul 25, 03:002023-07-25 03:00:00 UTC2023-07-25 06:00:00 UTC000
Jul 25, 06:002023-07-25 06:00:00 UTC2023-07-25 09:00:00 UTC000
Jul 25, 09:002023-07-25 09:00:00 UTC2023-07-25 12:00:00 UTC000
Jul 25, 12:002023-07-25 12:00:00 UTC2023-07-25 15:00:00 UTC000
Jul 25, 15:002023-07-25 15:00:00 UTC2023-07-25 18:00:00 UTC000
Jul 25, 18:002023-07-25 18:00:00 UTC2023-07-25 21:00:00 UTC000
Jul 25, 21:002023-07-25 21:00:00 UTC2023-07-26 00:00:00 UTC000
Jul 26, 00:002023-07-26 00:00:00 UTC2023-07-26 03:00:00 UTC000
Jul 26, 03:002023-07-26 03:00:00 UTC2023-07-26 06:00:00 UTC000
Jul 26, 06:002023-07-26 06:00:00 UTC2023-07-26 09:00:00 UTC000
Jul 26, 09:002023-07-26 09:00:00 UTC2023-07-26 12:00:00 UTC101

What Hacker News says

3 sources
The add_zero_attn parameter in PyTorch is used for this, but by default their softmax is the regular kind. It has been in flaxformer for a couple years now though, however it claims to be a compatibility variant for older models [2] and I haven't seen any mention of it in their recent papers (though I've not checked exhaustively). [1]: https://pytorch.org/docs/stable/generated/torch.nn.Multihead... [2]: https://github.com/google/flaxformer/blob/main/flaxformer/co...
In Attention Is Off By One
>why did no one come up with this before So it turns out someone did. Specifically google did. This exact same idea has been in flaxformers since at least November 2021. https://github.com/google/flaxformer/blame/ee62754ebe5a5eeb1... Specifically to save people a click it says: > """Softmax function with an additional virtual logit equal to zero. For compatibility with some previously trained models. This is equivalent to adding one to the denominator. In the context of attention, it allows you to attend to nothing. And creates the exact same modified softmax as this essay. I suppose only time will tell why it was ignored publicly before, maybe it doesn't do much, maybe it just fell through the cracks, maybe google just didnt push it, who knows
In Attention Is Off By One

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.