2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions
----------------------------------------------------
comment 3y ago · link · parent
You can replace the KVQ kernels with any parametric computation that allows you to pass gradients through, and you will have learning.
I think some newer language model architectures use residual blocks here, and some vision transformers use FeedForward networks for the kernels.
comment 3y ago · link · parent
The values are given from the Value kernel; which is often just a linear map.
The strength is given from the dot product of the query and the keys. The queries and keys are given from the Query and Key kernels. Both of which are usually linear maps.
For each token, you have a key value query triplet (D,D,D). You take the query (D,1) and the matrix (N x D) of keys of all tokens, and do a Matrix vector product to get the scaling. You apply softmax to make it convex; and now you have a vector (N, 1). You do another matrix vector product with the Values mapping (N, D), which gives you the value for the current token (1,D).
Repeat N times, and that’s it.
If you would like to change which tokens each token considers, eg a token knows only of preceding tokens, you can do element wise product of the scaling vector with a mask vector which describes what you consider for current token ; and divide by their inner product. This will renormalise the valid coefficients and keep the rest 0; thus they are ignored when you combine all values together.
If you would like to increase the number of attention heads; which can give you finer control of the scaling process, you can split the key query and value vectors into segments, one segment for each head. Eg first 2 indices go to head 1, indices 3,4 go to head 2, etc etc. then you use those to do attention, repeating the process above for each head; and then combine the results to a single vector.
Idk if I confused query with keys, but this is the gist of it.
In practice the operations are much more optimised than what I described.
comment 3y ago · link · parent
> To say lurkers shouldnt exist is extremely reductive and callous.
I didn't claim that they shouldn't exist, I claimed that they are not the core of the community since they do not produce or otherwise interact with anyone else.
If a tree fell in the forest and nobody heard it, did it make a sound?
comment 3y ago · link · parent
I experienced this today, just now. The whole org’s release for fall was hinging on what I was proposed… the relief of everyone once the presentation was over and it all clicked, when they saw the light at the end of the tunnel, that the path that I had uncovered towards that is reasonable, and tenable is priceless.
I understand now that I live for this shit. 10/10 would do it again and again and again.
comment 3y ago · link · parent
Under the view that we are all just complexity arising out of an unfathomably large universe, then we can accept that LLMs are just that, like us, but weaker, and that is fine.
They will improve, we can leverage them, we can live with them. It's almost as if we have created a new species that exists only abstractly; and arises out of silicon and electrons.
comment 3y ago · link · parent
When you register your residency, your municipality is obliged to provide Danish lessons to you in some way. Take advantage of this. It’s a good way to meet new people.
Be prepared for the weather. Besides darkness, Denmark also exports rain, so have something to wear at all times.
Make sure that your curtains or blinds are actually good. In the summer months, the sun is shining for almost 18 hours, and even after sunset and before sunrise there’s quite a bit of light. The quality of your sleep will deteriorate if you are bombarded with sun and don’t get enough of it.
If you are a student, know that life can be expensive, getting a student job will help and you will make some acquaintances.
Don’t expect to mesh with the Danes quickly, the Danish society is very tight knit, but if you find yourself getting invited to hang out with a few people at an apt, it’s a good thing! It means you are becoming part of the group!
Danes can be brutally honest, so be prepared for that. It’s not because they intend to be mean, it’s because such is their society. They don’t intend malice, but they provide constructive criticism and you will find them to be quite friendly!
Get acquainted with the language asap; use anki cards and watch shows on Netflix to learn the sounds. As you get better, switch to audio description and you will improve your skills quite quickly.
Hope I helped!
comment 3y ago · link · parent
I moved to a new country, amidst covid, without a social support system, without speaking the language, without having financial security.
I was terrified of doing that … but it was around the time in 2020 when r/WSB was growing, and saw people “yolo ing” more money than I ever had. So I said yolo.
I barely made it through; got super depressed due to isolation, lived on the brink of poverty, but some how (thanks GME) I survived. Though I did take a break for a semester.
When I “returned home”, 2 years later, i found myself a stranger, a foreigner. All my friends had moved on, almost everything had changed, and so had I.
Would I do it again? Absolutely. A bit differently; sure. But I’d do it again without hesitation.
And then I did.. I moved to $currentlocation, barely any money, didn’t speak the language. All because I got a job at FAANG because I found an email from some recruiter in my junk folder and responded back. I finished my MSc, leading a project and aiming for promotion.
In about a year or so, I will do it again; almost as if it is becoming a habit.
It is very lonely, I am not going to lie about this, but it is also an adventure.