693 karma · joined May 19, 2015 (11y ago) · 403 submissions
comment 4mo ago · link · parent
By the way, I like testing AIs on new games as they aren't in the training data and gpt5.6 sol high thinking was able to get from my second guess result to the correct answer. One letter was already locked and four more were down to a five letterish range. Still impressive as I remember models up until about the second generation of reasoning models really struggling with games like wordle.
comment 6mo ago · link · parent
comment 7mo ago · link · parent
comment 12mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
If you would build an in-memory cache, how would you do it?
It should have good performance and be able to hold many entries.
Reads are more common than writes. I know how I would do it already,
but I’m curious about your approach.
Was to add this requirement since it comes up so often: Let's assume that keys accessed follow a power law, so some keys get
accessed very frequently and we would like them to have the fastest
retrieval of all.
I'm not sure if there are any efficient tweaks to hash tables or b-trees that might help with this additional requirement. Obviously we could make a hash table take way more space than needed to reduce collisions, but with a decent load factor is the answer to just swap frequently accessed keys to the beginning of their probe chain? How do we know it's frequently accessed? Count-Min sketch?Even with that tweak, the hottest keys will still be scattered around memory. Wouldn't it be best if their entries could fit into fewer pages? So, maybe a much smaller "hot" table containing say the 1,000 most accessed keys. We still want a high load factor to maximize the use of cache pages so perhaps perfect hashing?
comment 2y ago · link · parent
Negative numbers are sometimes represented with parentheses: (234.58)
Tables sometimes tell you in the description that all numbers in are in 1000's or millions.
The dollar sign is used by many currencies, including in Australia and Canada.
I'd probably look around for some other gotchas. Here's one page on prices in general: https://gist.github.com/rgs/6509585 but interestingly doesn't quite cover the OP's problem or the ones I brought up, though the use cases are slightly different.
comment 2y ago · link · parent
EDIT: Here's a better treatment, and it is the case that they give the exact same orderings: https://ajayp.app/posts/2020/05/relationship-between-cosine-...
comment 2y ago · link · parent
The paper claims there is literature with more success for LLMs:
Large language models have been shown to be vulnerable to adversarial
attacks, in which attackers introduce maliciously crafted token sequences
into the input prompt to circumvent the model’s safety mechanisms and
generate a harmful response [1, 14].comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
The command tar xvzf 1.zip appears to be trying to extract a compressed archive file, but there's a mismatch between the file extension (1.zip) and the command options used for tar. Let me break it down:
tar: This is the command-line utility for working with tar archives (tape archives). It can be used to create, extract, and manipulate tar files.
x: This option tells tar to extract files from an archive.
v: This stands for "verbose", which means that tar will list the files being extracted to the terminal.
z: This option tells tar to handle a compressed archive using gzip. It is typically used with .tar.gz or .tgz files.
f: This tells tar that the next argument is the name of the archive file.
However, the file 1.zip is a ZIP file, not a tar.gz file. ZIP files are handled by the unzip command, not tar. Using tar xvzf on a .zip file would result in an error, as tar expects a .tar.gz file when using the z option.
To properly extract a .zip file, you should use:
unzip 1.zip
This command will extract the contents of the ZIP file.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
However, if I add the director it gets it right: https://chat.openai.com/share/a602b3b0-5c17-4b4d-bed8-124197...
If I only give it 1980s film and the director's name it can still get it. https://chat.openai.com/share/d6cf396b-3199-4c80-84b9-d41d23...
So it's clearly not able to look this movie up semantically and needs a strong key like the director's name.
EDIT: Digging deeper it's clear the model only has a very foggy idea of what the movie is about: https://chat.openai.com/share/d0701f53-1250-421e-aa4b-dc8156... People have described these types of outputs as the text equivalent of a highly compressed JPEG, which seems to fit well with what's going on here. It gets some of the top level elements right and kind of remembers there's some kind of vehicle that's important but it has forgotten all the details, even the date the movie was released. But unlike a human who might indicate their fuzziness (was it a helicopter or a submarine?), GPT4 gladly pretends like it knows what it's talking about. I think it's likely a solvable problem, the model probably has the information to know when it's confident and when it's in a fuzzy JPEG region but the current alignment isn't doing a great job of surfacing that.