HNHacker News
TopNewBestAskShowJobs

dmw_ng

1,526 karma · joined October 28, 2019

submissionscomments
dmw_ng··on Parquet: An efficient, binary file format for table data
Casually querying an S3 bucket with either of those is easily a half day's work for any meaningful size of workload. S3 Select and Athena make this very straightforward, and in the case of Athena+parquet, obscenely cheap given the capability on offer. I wanted to dislike parquet as overengineered masturbation, but that's really hard when getting billed fractions of a cent for chewing through terabytes of data in a few seconds with no setup costs.
dmw_ng··on Show HN: Alpaca.cpp – Run an Instruction-Tuned Chat-Style LLM on a MacBook
The LoRa weights for 13B are on huggingface ( https://huggingface.co/samwit/alpaca13B-lora ), it should be possible to follow the instructions linked in the Alpaca.cpp readme to merge those weights into the base 13B model, then just just follow the usual Llama.cpp conversion and quantization steps

Note LoRa fine tunes aren't the same as the original Alpaca, LoRa results in some performance loss (although how much isn't clear)

dmw_ng··on GPT-4
The only thing Google "released" was an announcement of a waiting list, that as of a few hours ago twitter folk claimed didn't even exist yet
dmw_ng··on Alpaca: A strong open-source instruction-following model
It's adorable seeing this kind of critique in the context of HN, I wonder how many folk knew my heavily upvoted comment above ("For 10 billion+ ...") was from someone who has only been looking at this stuff for a few weeks. ChatGPT is no better or worse than any consultant I've ever met (including myself), or most of the commenters you find here every single day.
dmw_ng··on Alpaca: A strong open-source instruction-following model
There is some very natural split regarding what I'll send to ChatGPT vs. what goes to Google. For example "six nations fixtures" obviously Google, but anything of depth or where recency is irrelevant goes the other direction. Asked it a few Linux questions today, how to interpret the title of a particular FRED chart, and a ton more sessions that Firefox history somehow didn't manage to correctly track the title for. I vastly prefer ChatGPT's interaction format compared to the equivalent random keyword spelunking session on Google.
dmw_ng··on Alpaca: A strong open-source instruction-following model
For 10 billion+ parameter models, the effects of quantization are relatively small, for smaller models like Llama 7B the effect becomes more dramatic, but there is ongoing research on new quantization methods (like GPTQ) that preserve significant performance even on the lower end.

Quantization isn't the only technique available for downsizing a model, Llama itself is already the result of sizing the model and input data according to "Chinchilla optimality", a very recent (as in 2022) result that e.g. GPT-3 predates. The result is that Llama-13B performs in benchmarks similarly with GPT-3 175B despite the tremendous size difference. There are separately also a variety of pruning methods to further eliminate inactive weights present in the trained model (I think this is also active research)

Finally even on something like a Raspberry Pi, implementations for inference (like llama.cpp) are nowhere near mature yet. There are already a multitude of runtimes available for inference making large tradeoffs between performance and flexibility (e.g. many models running on PyTorch vs ONNX report 5-10x speedups running under ONNX)

I think the really exciting part of Alpaca is the size and budget of the team - 5 students with $100 scraping OpenAI put this model together in a couple of hours of training. Any notions of premium persisting in the AI space for much longer seem fantastic at best, for all intents and purposes it has already been commoditized. And that's scary considering the size of the dent ChatGPT has put in my Google traffic

dmw_ng··on Using LLaMA with M1 Mac and Python 3.11
I also noticed hitting CTRL+S to pause the TTY output seemed to cause a reliable prompt to suddenly start printing garbage tokens after CTRL+Q to resume a few seconds later. It may have been a coincidence, but instant thought was very much "synchronization bug"
dmw_ng··on Using LLaMA with M1 Mac and Python 3.11
just wanted to say thanks for your effort in aggregating and communicating a fast moving and extremely interesting area, have been watching your output like a hawk recently
dmw_ng··on Using LLaMA with M1 Mac and Python 3.11
with llama.cpp, you might need to pass in -t to set the thread count. What kind of OS / host environment are you using? I noticed very little speedup with using t=16 and t=32, it's possible the code simply hasn't been tested with such high core counts, or it's bumping into some structural limitation of how llama.cpp is implemented
dmw_ng··on Show HN: I built a better UI for ChatGPT
Can anyone recommend a UI clone as close to the regular ChatGPT as possible, but built on the API? The API traffic is sent directly into Azure while the regular UI is sent via CloudFlare. Vastly prefer the former reading my conversations than the latter
dmw_ng··on Introducing ChatGPT and Whisper APIs
Both, the API response includes a breakdown. In the best case 1 token = 1 word (for example "and", "the", etc). Depending on input, for English it seems reasonable to multiply the word count by about 1.3 to get a rough token count

This pricing model seems fair since you can pass in huge prompts and request a single word reply, or a few words that expect a large reply

dmw_ng··on Introducing ChatGPT and Whisper APIs
It may just be that OpenAI corrected its 2020-era understanding of model size using 2022 insights from DeepMind.. https://towardsdatascience.com/a-new-ai-trend-chinchilla-70b...

Seems model sizing, compression and quantization are still an art form, see also https://www.unum.cloud/blog/2023-02-20-efficient-multimodali...

dmw_ng··on Open source solution replicates ChatGPT training process
I have been using it as a search replacement for most of the past month and only found two subtly wrong answers. This covers legal questions, researching product differences, wiring diagrams, suggesting books to read, correcting misremembered quotes, and about a hundred other tasks.

Of course still relying on google in the background, but increasingly rarely, and presuming all the negative commentary we've been seeing online are folk who simply haven't tested it in anger yet. Today's chatgpt hallucination is yesterday's Google blogspam etc. Folk for some reason continue to act like the old world was perfect. This is much closer to perfection than anything we ever had, and infinitely more comprehensive. Google as we knew it is already dead, because the medium google was built for just got made obsolete. This is far closer to a new Internet iteration (WAIS, FTP, Gopher, HTTP, Web2.0, ...) than it is a new search engine

Now watch as the search engines try to adapt it to their recency-biased ads model and fail miserably, as what we have is already better than what they were able to sell. Very unclear bing or Google or anyone you've heard of will win this round, its suddenly a very exciting time in tech again

Another aspect I find very exciting is that these effectively represent a return to a curation-driven Internet, selection of input data for model training is probably an interesting new form of diversification. Who cares about having a site in the world wide web if its not part of the inputs for the language models used by millions of users? That's a completely new structure for the dissemination of ideas, marketing, "SEO" etc., and a brand new form of mass media

dmw_ng··on Big Tech lobbyist language made it verbatim into NY’s hedged repair bill
https://www.cambridge.org/core/journals/perspectives-on-poli...
dmw_ng··on Google employees criticize CEO for “dumpster fire” response to ChatGPT
"Google uses Bayesian filtering the way Microsoft uses the if statement"*

This quote is 18 years old, and already by then it was established understanding that Google had extreme technical magic the rest of the world lacked. A rushed, bumbled tech demo in an area a company who for decades has invested billions in and widely enjoyed a perception of AI supremacy is a wildly different thing to a polished demo from a company nobody expects anything good to come from.

They have constantly encouraged the belief in their technical dominance in their marketing and hiring for as long as I can remember. If that's the perception externally, imagine how much more scathing a defeat it must feel to current employees.

* https://www.joelonsoftware.com/2005/10/17/news-121/

dmw_ng··on Google's live from Paris event private/deleted immediately
Just to add the cost-per-query may not be a temporary blip. ChatGPT's cost per query is based on a static base model trained over a year ago. Imagine the energy and compute that might be required to add meaningful personalization or an up to date index, or if there were to be a repeat of something like the search engine document count wars of the late 90s/early 00s. Training ChatGPT is estimated to cost between $2-$12 million per run ( https://old.reddit.com/r/MachineLearning/comments/hwfjej/d_t... )
dmw_ng··on Google's live from Paris event private/deleted immediately
https://www.youtube.com/watch?v=npV4Kix7Td0

Responses on Twitter are horrific: https://twitter.com/googleeurope/status/1623251768099409920

This is the first non-technical Google presentation I've felt compelled to archive

I think folk are unestimating the scale of the change in medium that ChatGPT represents, it's not simply a problem of popping out a compelling clone for Google, they must also preserve or replace the lost ad revenue which represents 80% of their income, otherwise things quickly start to look grim. In contrast, ads are only 36% of Microsoft's income. If it turns out that llms are only economical as a subscription offering, Microsoft are already better placed to e.g. bundle NewBing with its 365 subscriptions.

I think subscription based search might be the scariest outcome, it would be something like an iPhone moment, where the entire medium becomes stratified into commodity/ad supported/low income user vs. premium/ad free/high value users. Imagine Google's legacy as the spam riddled search engine low income folk use, filled with ads for payday loans, used car dealers and predatory personal injury lawyers

dmw_ng··on Show HN: Webapp.io - Free firecracker-based full-stack hosting
I'd like to try out your service, but would not be willing to link my GitHub account, and I do not have a Google account. Any chance of a non-federated sign in method?
dmw_ng··on Z-library founders arrested in Argentina
Curious where you heard the detail about Amazon
dmw_ng··on Where has the passive radar code gone?
ITAR according to Twitter

https://twitter.com/vk5qi/status/1591628725141270528

https://spectrum.ieee.org/passive-radar-with-sdr

dmw_ng··on TCP Connection Repair
Ideally it's only necessary transmit about 1 frame per minute for each half-open connection, but you're right, I found one site, India's rail operator IRCTC that still blocked this traffic very quickly.
dmw_ng··on TCP Connection Repair
The original problem was for load balancing, where the protocol is often not known, and backends might be reached over a WAN. There are some neat advantages possible from this method, such as the target application not being woken up early from accept() (etc) by preconnection, and the initiator being able to detect the health of a backend before choosing it as the target of a forwarded connection, but mostly I just thought it was an interesting abuse of an obscure kernel feature.
dmw_ng··on TCP Connection Repair
This can also be used to implement connection acceleration with no kernel-side hackery involved, by having userspace maintain a pool of half-open connections by spamming SYNs at a target, recording ACKs, then constructing a regular socket via TCP_REPAIR when a connection is actually required. That allows omitting one roundtrip from a typical TCP connection setup, which may be substantial in a variety of scenarios.

The technique sounds messy but actually it involves not much work when the target is Linux, a single half-open SYN is good for 63 seconds with the default sysctl settings, which seem to be used with almost every Internet service you might want to reach (including e.g. Google)

I was playing with this during an interview last year and intended to write it up, but never got around to it. The technique seems to work as intended, I made a little prototype reverse proxy for it in Python using a temporary listening socket with a drop-all SO_ATTACH_FILTER to allocate a port number and prevent Linux on the initiator side from responding with a RST to ACKs for a half-open connection it knows nothing about

dmw_ng··on uWebSockets
As an uneducated farmer this gave me a giggle, it suggests if I filed a ticket about a performance problem in the project it'd likely be fixed instantaneously. That quote is basically an advert, if the author wishes to establish such a high bar for themselves it'd be foolish not to avail of it.
dmw_ng··on Jack Dorsey texts Elon Musk, March 26, 2022
Dorsey is an engineer
dmw_ng··on Users reporting artifacts appearing in old images stored in Google Photos
They definitely had permanent data loss in App Engine around a decade ago, along with leaving any app active during the outage with copies of every database table to manually merge
dmw_ng··on Sudden disturbing moves for IT in large companies, mandated by CEOs
This seems unfair, it isn't necessary to attack the author just because the tone is a little conspiratorial. I'm sure there is a little embellishment in the post, but there doesn't seem to be any reason to doubt the author has noticed a real effect that may have a reasonable explanation. The VMware price hike idea seems like a very reasonable explanation
dmw_ng··on Attacking Firecracker: AWS' MicroVM Monitor Written in Rust
There has been quite a bit of LWN coverage of io_uring security aspects, most recently https://lwn.net/Articles/902466/

The basic gist seems to be that it's just not currently the upstream developer's focus

dmw_ng··on The death of the PCIe expansion card
Curious what replacement card you went with. I know the WiFi/BT are combined, Bluetooth headphones cutting out last night for no reason at all and the thought came around again to flip a replacement in.

Nice to meet another used hardware buyer. I think the total cost of my laptops over the past 10 years equates to roughly the price of a single new high spec Macbook, and that's with repeat replacements due to damage / spills / etc.

dmw_ng··on Blocking Kiwifarms
I only briefly flicked through screenshots, but seems parent comment has some truth to it:

https://archive.ph/E2pxQ

https://archive.ph/1cA1M

https://archive.ph/g585F

Maybe it's possible to game archive.ph, but seems more likely this person's humor has a consistent strongly misogynistic theme. Very happy to see a site causing actual suicides taken down, but the champion of the campaign doesn't come across as any kind of hero

It's also interesting to juxtapose comments here against the fact it was so easy to find the original thread on Google.

← PreviousPage 4 of 10Next →