HN user

valine

5,191 karma

email: lvaline@attentio.ai twitter: @lukasvaline github: https://github.com/valine

https://attentio.ai

Posts27
Comments969
View on HN
github.com 1y ago

Show HN: Keep your PyTorch model in VRAM by hot swapping code

valine
77pts7
github.com 2y ago

Show HN: NeuralFlow – Visualize the intermediate output of Mistral 7B

valine
134pts20
twitter.com 2y ago

An ongoing effort to reproduce LK-99

valine
2pts0
arxiv.org 3y ago

Activation-Aware Weight Quantization for LLM Compression Outperforms GPTQ

valine
9pts2
arxiv.org 3y ago

Enabling LLMs to Reason and Memorize with Self-Notes

valine
1pts0
news.ycombinator.com 4y ago

Ask HN: Hacker News page width broken on mobile

valine
24pts17
markets.businessinsider.com 6y ago

Tesla short-sellers lost 1.4B after earnings report

valine
4pts0
code.blender.org 8y ago

Blender 2.8 Highlights

valine
3pts0
blender.stackexchange.com 9y ago

Using Blender to Plan a Spinal Surgery

valine
3pts0
news.ycombinator.com 9y ago

Ask HN: 25% of the most popular HN stories were posted in the last 9 days

valine
57pts10
yalu.qwertyoruiop.com 9y ago

The first public iOS 10 jailbreak

valine
1pts1
news.ycombinator.com 9y ago

Ask HN: What equipment is needed to miniaturize a transistor?

valine
2pts0
news.ycombinator.com 9y ago

Ask HN: What would it take to build a cpu from scratch

valine
39pts14
blog.mrtz.org 10y ago

Is Differential Privacy Practical (2013)

valine
6pts0
store.hp.com 10y ago

HP Introduces Worlds Thinnest Laptop

valine
2pts0
www.apple.com 10y ago

CareKit and ResearchKit

valine
1pts0
digg.com 10y ago

The Worlds Blackest Material

valine
2pts0
code.blender.org 10y ago

On Force Fields and Turbulance

valine
1pts0
wiki.blender.org 10y ago

Improved GPU rendering performance in Blender 2.77

valine
2pts0
techcrunch.com 10y ago

San Bernardino DA Suggests Terrorist iPhone May Contain 'Cyber Pathogen'

valine
2pts0
news.ycombinator.com 10y ago

Ask HN: Staying motivated with school when I'm already getting job offers

valine
3pts5
news.ycombinator.com 10y ago

Ask HN: Do I need consent to track usage data?

valine
1pts1
www.cbsnews.com 10y ago

A 46 Gigapixel Map of Space

valine
2pts0
www.theverge.com 10y ago

The FCC will publish phone numbers of robocallers and telemarketers every week

valine
7pts3
en.m.wikibooks.org 10y ago

Guide to Python Scripting in Blender

valine
1pts0
9to5mac.com 10y ago

iOS 9 Untethered Jailbreak Released

valine
1pts0
news.ycombinator.com 10y ago

Ask HN: Is there a method for finding the optimal kerning?

valine
12pts8

The two modified satellites will test hardware planned for Starlink V3 and will attempt to scan Starship’s heat shield and transmit imagery down to operators to test methods of analyzing Starship’s heat shield readiness for return to launch site on future missions

Hope we get to see those images. Would be awesome to see a 3rd person view of starship in space.

Apple silicon has been an unmitigated success so it makes sense they’d go with Ternus. On a related note Apple needs to add Ternus to their spell check dictionary

So let’s start with a really simple decoder transformer with a single layer and single attention head, and train it to predict the next token in a sequence of text. To predict the next token you need a few things: a query for the very last token in the sequence, and a key and value for every prior token. You take your query and compute a dot product with every prior key (two large vectors in, scaler attention score out). That scaler attention score first goes through softmax, and then becomes the weight you use to compute a weighted average of your values, new value goes through the mlp, mlp output is projected into the logits from which you sample your next token (that’s the general idea at least skipped a few steps).

The last query in the sequence will be new for every new token you predict, but the set of prior keys and values stay the same, ie keys and values are reusable. The key value cache gets bigger and bigger for each new token you add to the sequence, and that’s where compression comes in. You have to store the keys and values in vram, and you’d like to keep the size down by not storing the raw uncompressed tensors. To make this work well your compression needs two things: it needs to be fast so that you can compress and decompress on the fly, and it needs to play well with softmax attention. Prior attempts at compression usually suck at one or the other, either the speed to decompress is too slow and your token/s takes a hit, or you lose important precision and the model output quality suffers. The claim in the paper is that they’ve made progress on both.

The allegations of fraud made by the people invading my home and terrorizing my friends? I’ll take those with a grain of salt.

And for the record, I’m not afraid of ICE, never said I was. ICE is racially profiling people, arresting them without cause, and deporting them without due process. I happen to be white, so that doesn’t apply in my case. It’s also coincidentally the same reason I feel safe posting a comment like this online. Free speech is being chilled in communities that ice targets, and I feel responsibility to relay what I’m hearing.

ICE also just gunned down a US citizen in the street, and that should scare everyone.

I lived my whole life in the twin cities and have a lot of friends, US citizens, who are too scared to go out to eat right now because of the ICE raids. If that wasn’t the point it is certainly the effect. I applaud Walz and Frey, and I will be ranking Frey first next time he’s up for reelection. Something tells me though he will be on to bigger things than mayor of Minneapolis.

About the second point, I've been under the impression that because LLMs are trained on average code, they infer that the bugs and architectural flaws are desirable

This is really only true about base models that haven’t undergone post training. The big difference between ChatGPT and GPT3 was OpenAI’s instruct fine tuning. Out of the box, language models behave how you describe. Ask them a question and half the time they generate a list of questions instead of an answer. The primary goal of post training is to coerce the model into a state in which it’s more likely to output things as if it were a helpful assistant. The simplest version is text at the start of your context window like: “the following is code was written by a meticulous senior engineer”. After a prompt like that the most likely next tokens will never be the models imitation of a sloppy code. Instruct fine tuning does the same thing but as permanent modifications to the weights of the model.

Humans don’t learn to write messy complex code. Messy, complex code is the default, writing clean code takes skill.

You’re assuming the LLM produces extra complexity because it’s mimicking human code. I think it’s more likely that LLMs output complex code because it requires less thought and planning, and LLMs are still bad at planning.

iPhone Air 11 months ago

Same. There are really only two features I care about in a phone: a high refresh rates and weight. At 165 grams the iPhone air is by far the lightest 120hz phone apple has ever made. Second place is the iPhone 15 Pro at 187 grams. Getting ready to ditch my 15 pro.

Embedding models are not always trained with the rest of the model. That’s the whole idea behind VLLMs. First layer embeddings are so interchangeable you can literally feed in the output of other models using linear projection layers.

And like the other commenter said, you can absolutely feed single tokens through the model. Your point doesn’t make any sense though regardless. How about priming the model with “You’re a helpful assistant” just like everyone else does.

> For each LLM, we extract static, token-level embeddings from its input embedding layer (the ‘E‘matrix). This choice aligns our analysis with the context-free nature of stimuli typical in human categorization experiments, ensuring a comparable representational basis.

They're analyzing input embedding models, not LLMs. I'm not sure how the authors justify making claims about the inner workings of LLMs when they haven't actually computed a forward pass. The EMatrix is not an LLM, its a lookup table.

Just to highlight the ridiculousness of this research, no attention was computed! Not a single dot product between keys and queries. All of their conclusions are drawn from the output of an embedding lookup table.

The figure showing their alignment score correlated with model size is particularly egregious. Model size is meaningless when you never activate any model parameters. If Bert is outperforming Qwen and Gemma something is wrong with your methodology.

The lower dimensional logits are discarded, the original high dimensional latents are not.

But yeah, the LLM doesn’t even know the sampler exists. I used the last layer as an example, but it’s likely that reasoning traces exist in the latent space of every layer not just the final one, with the most complex reasoning concentrated in the middle layers.

I think it’s helpful to remember that language models are not producing tokens, they are producing a distribution of possible next tokens. Just because your sampler picks a sequence of tokens that contain incorrect reasoning doesn't mean a useful reasoning trace isn’t also contained within the latent space.

It’s a misconception that transformers reason in token space. Tokens don’t attend to other tokens. High dimensional latents attend to other high dimensional latents. The final layer of a decoder only transformer has full access to entire latent space of all previous latents, the same latents you can project into a distribution of next tokens.

Apple M3 Ultra 1 year ago

Probably better to be moving things from fast memory to faster memory than from slow disk to fast memory.

Apple M3 Ultra 1 year ago

No one should be buying this for batch inference obviously.

I remember right after OpenAI announced GPT3 I had a conversation with someone where we tried to predict how long it would be before GPT3 could run on a home desktop. This mac studio that has enough VRAM to run the full 175B parameter GPT3 with 16bit precision, and I think that’s pretty cool.

Apple M3 Ultra 1 year ago

With a mixture of experts model you only need to read a subset of the weights from memory to compute the output of each layer. The hidden dimensions are usually smaller as well so that reduces the size of the tensors you write to memory.

Apple M3 Ultra 1 year ago

What would it cost to get 512GB of VRAM on an Nvidia card? That’s the real comparison.

Apple M3 Ultra 1 year ago

Probably helps that models like deepseek are mixture of expert. Having all weights in VRAM means you don’t have to unlod/reload. Memory bandwidth usage should be limited to the 37B active parameters.