Better HN
topnewbestaskshowjobs
Log inSign up

Scene_Cast2

2,853 karma · joined Jun 13, 2012 (14y ago) · 895 submissions

Lost my PW for my previous account, Scene_Cast Email: scene_cast2@outlook.com
Submissions

comment 1y ago · link · parent

Does this support openrouter?

comment 1y ago · link · parent

What ended up launching is a fancy product quantization based on k-means. Some of the tricks were storing magnitude separately (i.e. removing the mean) and rearranging dimensions based on variance (and/or rotation based on PCA) for PQ to work better.

I also remember trying to fit a distribution so that I can generate synthetic data (not for a lack of data, but more for understanding the problem space better). The synthetic data quantized pretty differently - my guess is that it's because of random areas of density and sparsity.

I'm not quite following your exact rearranging idea though. Not sure if the above answers the question.

comment 1y ago · link · parent

They weren't sparse, they were dense but the "density" was quite non-uniform (think typical learned ML vectors). Not too far from an N-dimensional gaussian (I ended up reading research on quantizing Gaussian distributions, but that didn't help either as we didn't have a perfectly gaussian thing).

comment 1y ago · link · parent

Neat. I spent a month trying to use sphere packing approaches for a better compression algorithm (I had a large amount of vectors, they were grouped through clustering). Turned out that theoretical approaches only really work for uniform data and not any sort of real-world data.

EDIT: groped -> grouped

comment 1y ago · link · parent

Same thing in video form explained by a different person - https://youtu.be/mhEFJr5qvLo

comment 1y ago · link · parent

I still can't read it despite trying.

comment 1y ago · link · parent

I agree that you can encode any single concept and that the encoding space of a single top pick grows exponentially.

However, I'm talking about the probability distribution of tokens.

comment 1y ago · link · parent

I realized that with tokenization, there's a theoretical bottleneck when predicting the next token.

Let's say that we have 15k unique tokens (going by modern open models). Let's also say that we have an embedding dimensionality of 1k. This implies that we have a maximum 1k degrees of freedom (or rank) on our output. The model is able to pick any single of the 15k tokens as the top token, but the expressivity of the _probability distribution_ is inherently limited to 1k unique linear components.

comment 1y ago · link · parent

10x is too precise.

comment 1y ago · link · parent

The thing I focus on when writing compiled extensions for Python isn't the speed of the extension, but rather the overhead of the call and the overhead of moving objects from Python -> compiled and compiled -> Python.

Is there a zero-copy interface for larger objects? How do object lifetimes work in that case? Especially if this is to be used for ML, you need to haul over huge matrices. And the GIL stuff is also a thing.

I wonder how Mojo handles all that.

comment 1y ago · link · parent

I've been in this situation. I'll spend the hour watching the info, but I'll dislike the inefficiency. I consider it impolite.

comment 1y ago · link · parent

This is one of those topics that LLMs (Opus 4, Gemini 2.5 pro, etc) seem bad at explaining.

I was trying to figure out the difference between the Stockfish approach (minimax, alpha-beta pruning) versus Alpha Zero / Leela Chess Zero (MCTS). My very crude understanding is that stockfish has a very light & fast neural net and goes for a very thorough search. Meanwhile, in MCTS (which I don't really understand at this point), you eval the neural net, sample some paths based on the neural net (similar to minimax), and then pick the path you sampled the most. There's also the training vs eval aspect to it. Would love a better explanation.

comment 1y ago · link · parent

That reminds me of production studio master clocks such as the bronics WCD-530W or the evertz equivalent. I'm more of a fan of the analog style such as the 1275T - https://evertz.com/products/12x5T.

comment 1y ago · link · parent

RE: optimizer performance - any thoughts on heavyball?

comment 1y ago · link · parent

Already up on openrouter. Opus 4 is giving 429 errors though.

comment 1y ago · link · parent

I wonder if something similar can be applied to get a dither pattern with built-in level of detail adjustment.

comment 1y ago · link · parent

Nope - I use a-la-carte pricing (through openrouter). I much prefer it over a subscription, as there are zero limits, I pay only for what I use, and there is much less of a walled garden (I can easily switch between Anthropic, Google, etc).

comment 1y ago · link · parent

Cline very visibly displays the ongoing cost of the task. Light edits are about 10 cents, and heavy stuff can run a couple of bucks. It's just that the tab accumulates faster than I expect.

comment 1y ago · link · parent

I tried doing some vibe coding on a greenfield project (using gemini 2.5 pro + cline). On one hand - super impressive, a major productivity booster (even compared to using a non-integrated LLM chat interface).

I noticed that LLMs need a very heavy hand in guiding the architecture, otherwise they'll add architectural tech debt. One easy example is that I noticed them breaking abstractions (putting things where they don't belong). Unfortunately, there's not that much self-retrospection on these aspects if you ask about the quality of the code or if there are any better ways of doing it. Of course, if you pick up that something is in the wrong spot and prompt better, they'll pick up on it immediately.

I also ended up blowing through $15 of LLM tokens in a single evening. (Previously, as a heavy LLM user including coding tasks, I was averaging maybe $20 a month.)

comment 1y ago · link · parent

I can't name any applications off the top of my head, other than iterative matrix multiplication for approximate eigenvector finding in square matrixes. But I don't know what's actually used for finding eigenvectors (or other decompositions for that matter).

comment 1y ago · link · parent

Blindsight is known to be a slog for a lot of people including myself.

I love sci-fi, I love challenging ideas, and I really liked the concepts explored in Blindsight - except that I learned those concepts through summaries and selective reading.

comment 1y ago · link · parent

Where lack of performance costs money, optimization is quite invested in. See PyTorch (Inductor CUDA graphs), Triton, FlashAttention, Jax, etc.

comment 1y ago · link · parent

I use byobu (for the keybinds) on top of tmux. But Zellij (modern Rust-based alternative to tmux) has been looking quite interesting for a while.

comment 1y ago · link · parent

For binary labels: you take a slice of labeled data. The mean of the ML model prediction on this data is different from the mean of the label. In practice, often a synonym for "loss is worse / could be better".

Not sure if that's what the GP meant, I only worked with binary labels stuff.

comment 1y ago · link · parent

It also does super defensive coding. Not that it's a bad thing in general, but I write a lot of prototype code.

comment 1y ago · link · parent

How does this compare with using openrouter + OSS? I'm currently averaging $20/month with copious usage (and no limits, obviously).

comment 1y ago · link · parent

I'd love there to be a catalog of all the stuff in my home that I could organize, or easily put up on eBay. The biggest hurdle of selling something, for me, is the work of photographing and uploading the photos. A one-click "sell this" would be amazing.

comment 1y ago · link · parent

I wonder if the power consumption is any better. An nRF runs circles around any existing ESP32 variants in terms of power.

comment 1y ago · link · parent

So basically multiple CLS tokens.

Fwiw, I tried multiple global tokens in my chess neural net and didn't see any uplift compared to my baseline of just having one.

1
678
30