Better HN
topnewbestaskshowjobs
Log inSign up

coder543

6,677 karma · joined Jul 18, 2012 (14y ago) · 1,965 submissions

My email is at gmail using my username.

Backend-focused full-stack engineer with 8+ years of experience, mostly focused on Go, Rust, and TypeScript, but open to other options.

Resume: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view

Submissions

comment 1y ago · link · parent

Most of the RAM usage would likely just be executable files that are mmap’d from disk.. not “real” RAM usage. But, also, the 1000 users in question wouldn’t all be connected at the same time… and I honestly doubt they would all be assigned to the same server for practical reasons anyways.

It’s not easy to estimate the real RAM usage with back of the napkin math.

comment 1y ago · link · parent

Preventing people from using their preferred tools — tools which are extremely widely used in the real world — does not seem like a useful application of time and effort.

comment 1y ago · link · parent

No… it’s not. To quote the message earlier in the thread, that message said “everyone with >100MB of disk usage on the class server was a VSCode user.”

100MB * 1000 users is how the person I responded to calculated 100GB, which is storage.

comment 1y ago · link · parent

100GB of storage is… not much for 1000 users. A 1TB NVMe SSD is $60. So 100GB is a total of $6 of storage… or about half a penny per user.

And that’s for SSD storage… an enterprise-grade 14TB hard drive is only $18/TB on Amazon right now, less than a third of the SSD price per TB. Call it 100GB = $2 of storage, total, to enable 1000 users to run the editor of their choice.

So, no, I’m not seeing the problem here.

If you really wanted to penny pinch (one whole penny for every 5 users), I think you could use btrfs deduplication to reduce the storage used.

comment 1y ago · link · parent

I'm somewhat surprised neither this article nor the previous one mention anything about the Florence-2 model series. I had thought that Florence-2 was not just surprisingly capable for this kind of work, but also easily fine-tunable for a particular kind of document, when you expect to process a lot of instances of that document and want to further optimize accuracy. It's extremely small (0.23B and 0.77B parameters), so it's easy to run, easy to fine-tune, and probably unlikely to overthink things.

https://arxiv.org/abs/2311.06242

https://huggingface.co/blog/finetune-florence2

https://blog.roboflow.com/florence-2-ocr/

https://www.assemblyai.com/blog/florence-2-how-it-works-how-...

I don't personally deal with any OCR tasks, so maybe I misread the room, but it sounded promising, and I have seen some continuing interest in it online elsewhere.

In addition to the architectural issues mentioned in OP's article that are faced by most SOTA LLMs, I also expect that current SOTA LLMs like Gemini 2.0 Flash aren't being trained with very many document OCR examples... for now, it seems like the kind of thing that could benefit from fine-tuning on that objective, which would help emphasize to the model that it doesn't need to try to solve any equations or be helpful in any smart way.

comment 1y ago · link · parent

I can't imagine why anyone would run it unquantized, but there are some laptops with the more than 70GB of RAM that would be required. It's not that it can't be done... it's just that quantizing to at least 8-bit seems to be standard practice these days, and DeepSeek has shown that it's even worth training at 8-bit resolution.

comment 1y ago · link · parent

32B models are easy to run on 24GB of RAM at a 4-bit quant.

It sounds like you need to play with some of the existing 32B models with better documentation on how to run them if you're having trouble, but it is entirely plausible to run this on a laptop.

I can run Qwen2.5-Instruct-32B-q4_K_M at 22 tokens per second on just an RTX 3090.

comment 1y ago · link · parent

That's been happening consistently for over a year now. Small models today are better than big models from a year or two ago.

comment 1y ago · link · parent

I used Continue before Cursor. Cursor’s “agent” composer mode is so much better than what Continue offered. The agent can automatically grep the codebase for relevant files and then read them. It can create entirely new files from scratch. I can still manually provide some files as context, but it’s not usually necessary. With Continue, everything was very manual.

Cursor also does a great job of showing inline diffs of what composer is doing, so you can quickly review every change.

I don’t think there’s any reason Continue can’t match these features, but it hadn’t, last I checked.

Cursor also focuses on sane defaults, which is nice. The tab completion model is very good, and the composer model defaults to Claude 3.5 Sonnet, which is arguably the best non-reasoning code model. (One would hope that Cursor gets agent-composer working with reasoning models soon.) Continue felt much more technical… which is nice for power users, but not always the best starting place.

comment 1y ago · link · parent

  Location: Birmingham, AL
  Remote: Yes
  Willing to relocate: Yes
  Technologies: Go, Rust, TypeScript, React, Postgres, Kafka, AWS, GCP, etc.
  Résumé/CV: https://drive.google.com/file/d/1VNC272B3n7ZEfppMHkm2wGgaINwYl4Av/view
  Email: listed on resume
I have 8+ years of experience. Mostly backend-focused full-stack engineer. I enjoy working on high-scale systems that have a good impact, and require both efficiency and reliability, but I’m open to many options now.

I’ve taken about a year to explore different business ideas, but I don’t think any of them are going to work out, so I’m very interested in getting back to a more normal job. But, I did get more experience with native iOS Swift+SwiftUI development, making a really polished app that I use every day. Even though I am backend focused, I can contribute to whatever technical needs arise.

If I were going to relocate, I would see SoCal as a plus, but I’m open to the options.

comment 1y ago · link · parent

I have never had a chance to use C# professionally, but it was one of the first languages I taught myself when I was first learning programming when I was a kid. I have a lot of fond memories of it, and I hear so many positive things about C# and .NET Core these days… but I just don’t see very many interesting tech jobs where I would have the chance to use C#. So, I’ve mostly used Go, Rust, and TypeScript through my career up to this point.

If anyone wants to point me to some good C# opportunities, I’m interested. (Tracebit is looking for a founding engineer, so presumably they want someone who is already an expert at C#, and I doubt they want to sponsor the visa work needed to bring someone to the UK.)

comment 1y ago · link · parent

I think they wanted to define free functions, not figure out a way to use functions without a class name, but I could be wrong.

comment 1y ago · link · parent

Mistral Small 3 is roughly comparable in capabilities to 4o-mini (apart from 4o-mini's support for multimodality)... o1-mini was already better than GPT-4o (full size) for tasks like writing code, and this is supposedly better than o1 (full size) for those tasks, so... o3-mini is supposedly in a completely different league from Mistral Small 3, and it's not even close.

Of course, the model has only been out for a few hours, so whether it lives up to the benchmarks or not isn't really known yet.

comment 1y ago · link · parent

> 2.0 is the full model

Not quite. "2.0 Flash" is also called 2.0. The "Pro" models are the full models. But, I love how they have both "gemini-exp-1206" and "gemini-2.0-flash-thinking-exp-01-21". The first one doesn't even say what type of model it is, presumably it should have been "gemini-2.0-pro-exp-1206", but they didn't want to label it that for some reason, and now they're putting a hyphen in the date string where they weren't before.

Not to mention they have both "Flash" and "Flash-8B"... which I think will confuse people. IMO, it should be "Flash-${Parameters}B" for both of them if they're going to mention it for one.

But, I generally think Google's Gemini naming structure has been pretty decent.

comment 1y ago · link · parent

> seems likely that its a 70B-llama distillation since that's what AWS offers on Bedrock

I think you misread something. AWS mainly offers the full size model on Bedrock: https://aws.amazon.com/blogs/aws/deepseek-r1-models-now-avai...

They talk about how to import the distilled models and deploy those if you want, but AWS does not appear to be officially supporting those.

comment 1y ago · link · parent

This doesn't prove anything at all. Of course the toolchain has to be built somehow. Some toolchains use make to do that, rather than depending on the previous version of the toolchain's build system. Some toolchains are written in a language completely separate from their downstream language, so they obviously wouldn't be compatible with their own toolchain.

Downstream projects in these languages do not typically use Make.

More to the point, I clicked on the Go one, and it's just including this tiny "Make.dist" file that does nothing except invoke "go tool": https://github.com/golang/go/blob/master/src/Make.dist

Wow. So useful.

I clicked on the Rust one, and not only did it seem to be specific to some old testing infrastructure, but I found this note:

> There are two kinds of run-make tests:

> The new rmake.rs version: this allows run-make tests to be written in Rust (with rmake.rs as the main test file).

> The legacy Makefile version: this is what run-make tests were written with before support for rmake.rs was introduced.

So, it's an obsolete system that is being migrated away from.

But, again, the main point is that what the toolchain does with its free time has little to do with how end user applications are developed, and the complaints in this thread were strictly about building applications in distros, not about building toolchains.

If an application in one of these languages uses make, it is typically just a little syntax sugar around the toolchain commands, which does absolutely nothing to absolve the project of the complaints Linux distro maintainers have about how dependencies are managed.

comment 1y ago · link · parent

Are those Makefiles doing anything more than calling "go build" and "cargo build"?

Because if they're still using the language-specific build tools and dependency management systems, then I think you would find that the Fedora maintainer higher in this thread would not be any happier that there is a sugar coating of Make. That's not what they're asking for, based on other rants I've seen from Linux distro maintainers.

comment 1y ago · link · parent

Make is primarily used with C and C++. It is not commonly used in Java, Rust, Go, NodeJS, or hardly anything besides C and C++. Make is not "generally used with other languages".

comment 1y ago · link · parent

No problem. I haven’t had a chance to do anything hardware related for a long time, so it’s fun to think about hardware problems again.

On the topic of extending battery life mentioned in the article, one relatively straightforward thing to investigate is simply reducing the processor clock speed. Your application probably doesn’t need to run at full tilt. I think there is a function called setCpuFrequencyMhz — I think it only works with a few specific frequencies, but the lower the frequency you can pick (while still keeping up with your application’s needs), the less power the system should consume while awake.

Of course, you want to be putting the processor to sleep between updates anyways, and there is a trade off between sleeping more (which means running the processor faster so it can sleep sooner, “race to sleep”), versus the inefficiency caused by running a processor higher on the frequency/efficiency curve, so there might be an optimal frequency that isn’t the lowest or the highest possible option. It’s something that would need to be measured.

Just some thoughts! It might not make a big difference if the processor is already sleeping most of the time, but I figured I would mention it as something to try.

comment 1y ago · link · parent

Wow! This is some phenomenal engineering!

> Another area that stumped me is how to shut the power off 100% on the device, so that it can remain “off” for weeks or months.

This is actually a pretty solvable problem...

https://circuitcellar.com/resources/quickbits/soft-latching-...

Then the microcontroller can choose at any time to completely shut off the entire circuit (including itself), and extremely little power will be consumed until something (like a button) completes the power-on circuit again.

For ease of prototyping, there are off-the-shelf units you can play with: https://www.sparkfun.com/sparkfun-soft-power-switch-jst-2mm....

Some more advanced soft power switch circuits (like the SparkFun switch) also include the ability to forcibly power down a misbehaving device by holding down the button.

The design used in the SparkFun switch also allows your microcontroller to know if the button is pushed while the device is running, so you could imagine repurposing your existing button to also restore power to the device if the device is off, and still retain the existing functionality for cycling through watch faces. Then, either the device could automatically shut itself off after a period of inactivity or when the battery gets too low, or the user could click and hold the button for some number of seconds to turn the device off completely that way.

comment 1y ago · link · parent

Sure, but that default batch size would only matter if the person in question was actually generating and measuring parallel requests, not just measuring the straight line performance of sequential requests... and I have no confidence they were.

comment 1y ago · link · parent

I’m not an expert on at-scale inference, but they surely can’t have been running at a batch size of more than 1 if they were getting performance that bad on 4xH100… and I’m not even sure how they were getting performance that low even at batch size 1. Batching is essential to serving large token volumes at scale.

As the comments on reddit said, those numbers don’t make sense.

comment 1y ago · link · parent

They’re all listed here: https://ollama.com/library/deepseek-r1/tags

comment 1y ago · link · parent

> By default, this downloads the main DeepSeek R1 model (which is large). If you’re interested in a specific distilled variant (e.g., 1.5B, 7B, 14B), just specify its tag

No… it downloads the 7B model by default. If you think that is large, then you better hold on to your seat when you try to download the 671B model.

comment 1y ago · link · parent

The most cost-effective way is arguably to run it off of any 1TB SSD (~$55) attached to whatever computer you already have.

I was able to get 1 token every 6 or 7 seconds (approximately 10 words per minute) on a 400GB quant of the model, while using an SSD that benchmarks at a measly 3GB/s or so. The bottleneck is entirely the speed of the SSD at that level, so an SSD that is twice as fast should make the model run about twice as fast.

Of course, each message you send would have approximately a 1 business day turnaround time… so it might not be the most practical.

With a RAID0 array of two PCIe 5.0 SSDs (~14GB/s each, 28GB/s total), you could potentially get things up to an almost tolerable speed. Maybe 1 to 2 tokens per second.

It’s just such an enormous model that your next best option is like $6000 of hardware, as another comment mentioned, and that is probably going to be significantly slower than the two M2 Ultra Mac Studios featured in the current post. It’s a sliding scale of cost versus performance.

This model has about half as many active parameters as Llama3-70B, since it has 37B active parameters, so it’s actually pretty easy to run computationally… but the catch is that you have to be able to access any 37B of those 671B parameters at any time, so you have to find somewhere fast to store the entire model.

comment 1y ago · link · parent

100% agree. I still listen to this one from time to time:

https://suno.com/song/da6d4a83-1001-4694-8c28-648a6e8bad0a

https://arstechnica.com/information-technology/2024/04/mit-l...

It's just so good, IMHO.

comment 1y ago · link · parent

It’s not even a question. I still have my Pebble Time Round in a box. No other watch has come close. That thing was probably under half the thickness and half the weight of my Apple Watch Ultra and yet it had 3x the battery life!

The physical controls were incredible… I actually controlled my music from that watch, because you could do it without looking. Who has ever controlled their music from an Apple Watch more than once a month? It’s so clunky and cumbersome, and you have to intently stare at what you’re doing — you might as you reach for your phone.

I can’t believe we’re a decade on, and the smartwatches that exist today are a joke compared to the PTR. The only practical improvement from my Apple Watch Ultra is the fitness tracking / health tracking sensor suite… which is great, but I miss having a good smartwatch, not just a fitness tracker.

comment 1y ago · link · parent

I understand you were trying to make “up and to the right” = “best”, but the inverted x-axis really confused me at first. Not a huge fan.

Also, I wonder how you’re calculating costs, because while a 3:1 ratio kind of sort of makes sense for traditional LLMs… it doesn’t really work for “reasoning” models that implicitly use several hundred to several thousand additional output tokens for their reasoning step. It’s almost like a “fixed” overhead, regardless of the input or output size around that reasoning step. (Fixed is in quotes, because some reasoning chains are longer than others.)

I would also argue that token-heavy use cases are dominated by large input/output ratios of like 100:1 or 1000:1 tokens. Token-light use cases are your typical chatbot where the user and model are exchanging roughly equal numbers of tokens… and probably not that many per message.

It’s hard to come up with an optimal formula… one would almost need to offer a dynamic chart where the user can enter their own ratio of input:output, and choose a number for the reasoning token overhead. (Or, select from several predefined options like “chatbot”, “summarization”, “coding assistant”, where those would pre-select some reasonable defaults.)

Anyways, an interesting chart nonetheless.

1
91011
66