903 karma · joined Sep 12, 2022 (4y ago) · 316 submissions
comment 2y ago · link · parent
scikit-learn also has options: https://scikit-learn.org/stable/auto_examples/manifold/plot_...
comment 2y ago · link · parent
Transformers do have O(N^2) time & memory complexity, and Based/RNN/SSM {O(N) time, O(1) mem}, with respect to sequence length if that's what you mean. The point is it doesn't really give an indication of quality.
We can choose our constant arbitrarily so the big-O you've stated only indicates memory/time-complexity not 'look-back' ability relevant to any task. If you input the entire sequence N times into an RNN, you also have perfect recall with O(N^2) but it's not exactly an efficient use of our resources.
Ideally our state memory is maximally utilized, this is the case for RNNs in the limit (although likely oversubscribed) but is not the case for transformers. The holy grail is to have an input-dependent state-size, however that is quite difficult.
comment 2y ago · link · parent
> a Transformer layer can look back see O(X^2) numbers, while an RNN can only see O(X) numbers
The thing is RNN can look back infinitely if you don't exceed the state capacity. For transformers the state it is defined semi-implicitly (you can change the hidden dims but you cannot extend the look back; ignoring transformer-xl et al.) defined by the amount of tokens, for an RNN it's defined explicitly by the state size.
The big-O here is irrelevant for the architectures since it's all in the configuration & implementation of the model; i.e. there is no relevant asymptote to compare.
As an aside this was what was shown in the based paper, the fact that you can have a continuity of state (as with RNN) while have the same associative recall capability as a transformer (the main downfall of recurrent methods at that point).
comment 2y ago · link · parent
(this is from the Based paper: https://arxiv.org/pdf/2402.18668)
comment 2y ago · link · parent
[0]: https://www.intel.com/content/www/us/en/newsroom/opinion/con...
comment 2y ago · link · parent
For completeness, it's 0.1x the size with 1.20x the runtime, so these are not just language differences
comment 2y ago · link · parent
The original FA, almost none.
For the latest versions depends on your abstraction, ThunderKittens[0] provides about the same speed up over FA2 (1.3x-2x%) as the article but relatively universal across GPUs. For any new hardware there may be hardware specific features that make it edge out more performance; usually vendors will adopt any new features that seems to beat them, but you do get fragmented API/libraries (which is already true for CUDA).
104.
Deps.rs: Keep your dependencies up-to-date(deps.rs ↗)
2 points · by f_devd · 2y ago · discuss
comment 2y ago · link · parent
You may have heard the effect of light is like a wave, higher frequency wave-lengths have a shorter wavelength, which means it can 'reach' smaller features without impacting the rest of the surroundings. Photo-lithography is done through a mask, this effectively means you get a crisper image projected onto the wafer.
If you go too far into/past UV it becomes hard to deal with in terms of heat and optics from my understanding. Which is why we keep getting new $prefix-UV rather than something like X-rays (which are past UV).
comment 2y ago · link · parent
A real world example my ISP provides /56 at the router level but if you put a firewall behind it, that gets a /64 (cannot be changed). Now the firewall cannot further delegate prefixes since it's already used. Some firewalls allow RA pass-through but in my case this wasn't an option so I had to set up NAT66 (non-standard :/) just to get outbound ipv6 connectivity.
comment 2y ago · link · parent
109.
ReScript: Fast, Simple Typed JavaScript from the Future(rescript-lang.org ↗)
2 points · by f_devd · 2y ago · discuss
comment 2y ago · link · parent
Hash Name, Bandwidth, Small Velocity, Quality, Comment
XXH3 (SSE2), 31.5 GB/s, 133.1, 10,
FNV64, 1.2 GB/s, 62.7, 5, Poor avalanche properties
[0]: https://github.com/Cyan4973/xxHash
Also ETag is exactly the kind of thing non-cryptographic hashes are meant for, but if you can't convince them Blake3 is a very fast modern cryptographic hash function.