Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 3y ago · link · parent

> Another think I simply did not get from the original Transformer paper is that the learning of self-attention happens in the linear layers.

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

Attention is a convex linear combination of values (meaning the coefficients sum to 1) where the coefficients are generated at runtime.

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

I am well aware that the overwhelming majority does not contribute but consume. Communities need participation, if you are not participating you are not giving back, you are leeching. If everyone is leeching, there is no community. Consumers are not entitled to the content of the producers. Producers both consume and produce.

> 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 know that you are memeing, but if are interested in category theory and have exp in functional programming; “category theory” for programmers is possibly a good place to start.

comment 3y ago · link · parent

The people who care are the kind of people who make the community.

The community is the content and those who post it, aka the core that ties everything everything together.

Lurkers are not part of the community, they might as well not even exist.

comment 3y ago · link · parent

Fair enough. Deliberate practice helps a lot, especially as you find new patterns.

I seem to have landed on doing the same thing, just scraping something completely and using the lessons learned to build something better.

comment 3y ago · link · parent

Polls were held in many subreddits; if a subreddit is the community - which it is - then the will of the participants is the will of the community and those who communicate it.

comment 3y ago · link · parent

Don’t tell OP they can treat netflix shows as they do books…

comment 3y ago · link · parent

Could you elaborate? What kinds of problems are solvable within say 2 hours?

comment 3y ago · link · parent

They also seem to have a pretty sweet deal with AWS going on.

comment 3y ago · link · parent

I think it’s more that reddit can’t respect a community’s wishes.

comment 3y ago · link · parent

It’s one thing say “we will tough it out until the storm passes” and another “we will impose our will over the ownership of subreddits”.

Every time you think Reddit management can’t do worse, they manage to exceed that expectation.

So long reddit, it’s been real.

comment 3y ago · link · parent

I honestly don’t know where to go for ML topics now. If anyone has any suggestions, please send them forward.

comment 3y ago · link · parent

> The way I see it, if the problem is important - any early solution should provide some relief. If some initial relief isn't wanted, the problem is probably not important.

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

Frankly speaking, I think this is more on us for thinking that we are special or that living forms are special. This is just our ego talking.

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

What about Anthropic?

comment 3y ago · link · parent

I think it’s a testament to just how good Apollo is, and how addictive reddit can be sans the dark patterns.

comment 3y ago · link · parent

Yolo and all that. To be honest… it is quite fun!

comment 3y ago · link · parent

Get a metro card or a bike asap. Note that the bikers in Copenhagen are quite fast so you better brush up your skills.

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 blew up my life when I moved to Denmark for an MSc studies.

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.

comment 3y ago · link · parent

To be honest, my hackintosh from the Haswell era was the most stable machine I have had; certainly better than whatever the shitshow my current machine has been with OpenSuse or Manjaro on a 12th gen intel, and slightly ahead of my 5800x machine.

comment 3y ago · link · parent

For anyone interested on why a VC would fund a PL, modular attempts to build the new shovels for the AI revolution; meaning their own platform to develop models.

comment 3y ago · link · parent

I wasn't thinking of DeepRL, but more on the more classical side of things with approximators other than neural NNs; but what you describe makes sense.

comment 3y ago · link · parent

Can attest, I studied Nocedal & Wright's book last year during my master's, it was my favourite course.

comment 3y ago · link · parent

til. For whatever reason I totally imagined it was some RL based method trained on sims. In my defense, RL is used for control problems as well, but this is so cool! Thank you for sharing.

comment 3y ago · link · parent

Spez’s car’s doors open like this, not like this, not like this.

comment 3y ago · link · parent

Probably jailbroken phone, but honestly I am equally clueless.
1
414243
97