HNHacker News
TopNewBestAskShowJobs

ubutler

813 karma · joined October 11, 2023

isaacus.com
submissionscomments
ubutler··on Kagi Sidekick (alpha)
RE your edit, I’m assuming you’re already aware that Kagi lets you create custom bangs, but just in case you’re not, you can create your own shortcuts that when preceded by an exclamation mark like !so can redirect to or search other websites. I use this to append ‘site:reddit.com’ when I add !r to a query, for example.
ubutler··on Code for the Byte Pair Encoding algorithm, commonly used in LLM tokenization
Presumably, they’re referring to the Indic scripts (also known as Brahmic scripts): https://en.wikipedia.org/wiki/Brahmic_scripts
ubutler··on Ask HN: Where can I find a real-time comparison of LLM chatbot performance?
LMSYS’ Chatbot Arena (https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboar...) is widely regarded as one of, if not, the most reliable open benchmarks for LLMs. Real users provide prompts to chatbots and then blindly pick the best response. The only drawback is that the leaderboard is restricted to the most popular models and, even then, it can take a while for new models to be added. This is understandable given the considerable ongoing costs associated with continuously updating the leaderboard.

There is also the Open LLM Leaderboard by HuggingFace (https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderb...) which aggregates a number of benchmarks, some (eg, MMLU) more trustworthy than others (eg, TruthfulQA). There are real concerns, however, that ML practitioners are gaming the leaderboard by contaminating their training data with evaluation data.

There are a number of other leaderboards such as OpenCompass (https://rank.opencompass.org.cn/leaderboard-llm-v2) and Yet Another LLM Leaderboard (https://huggingface.co/spaces/mlabonne/Yet_Another_LLM_Leade...) that I have seen suggested although I personally have found the most success with Chatbot Arena and the Open LLM Leaderboard.

I would also suggest checking out the LLM Explorer (https://llm.extractum.io/), which has all of these benchmarks and more in single location and allows you to sort and filter by a wide range of variables. That has been particularly helpful for me when trying to find models that will fit on my GPUs.

N.B. I am not affiliated with any of the benchmarks and services mentioned above.

ubutler··on Multilingual transformer and BERTopic for topic modeling: The case of Serbian
Just on that UMAP point, I’ve found a lot success using PaCMAP (https://github.com/YingfanWang/PaCMAP) instead, which AFAIK is the SOTA in dimensionality reduction algorithms.
ubutler··on GPT-4 meets its match: Scots Gaelic smashes safety guardrails
> [A]cademics ran 520 harmful prompts through GPT-4, translating the queries from English into other languages and then translating the responses back again, and found that they were able to bypass its safety guardrails about 79 percent of the time using Zulu, Scots Gaelic, Hmong, or Guarani. The attack is about as successful as other types of jail-breaking methods that are more complex and technical to pull off, the team claimed.
ubutler··on [dead]
> An IBM employee who spoke with The Register, and asked not to be named for fear of retaliation, described the enforced return-to-office policy as "attrition by design," noting that the IT giant would have to spend some money to relocate and promote lower-band (younger) employees but would save money overall by shedding more experienced, more expensive workers.
ubutler··on McKinsey's revenue from prime US government contracts falls to 9-year low
http://archive.today/HPHSJ
ubutler··on Elon Musk gives Tesla ultimatum: Another 12% of shares or no AI, robotics
In case the title is also unclear to you:

> The controversial CEO took to his social media platform X to say that unless he is awarded another 12 percent of the company, which would give him ownership of 25 percent of Tesla, he would be "uncomfortable growing Tesla to be a leader in AI & robotics."

ubutler··on Kagi – Sourcing from Brave Search, improved image search, and new Safari ext
For me, the ability to create custom bangs is worth it alone. I probably have close to a hundred bangs now and even created a bang to edit my bangs. I’m sure there are extensions that can replicate this behaviour but Kagi works on any device without any prior setup. My ‘site:reddit.com’ (!r) bang has to be my favourite, although I have found myself needing it less with Kagi since I’m already able to preference Reddit in search results.
ubutler··on Fed court rules for retired engineer told by state to not talk about math
> On the other hand, the certificate from a Blockchain University probably had a well defined curriculum and criteria for passing.

Is this serious?

ubutler··on The New York Times is suing OpenAI and Microsoft for copyright infringement
What does the Sackler defence refer to?
ubutler··on IP over Spaghetti (2019)
Would someone mind explaining, for people who aren’t familiar with electrical engineering and/or physics, is it actually possible to transmit information over spaghetti or this is just a very elaborate April-but-not-in-April fools joke?
ubutler··on Apple Wants to Partner with Major Publishers to Train AI
The legality of training models on copyrighted data without a licence is, or at least should be, independent of whether corporations decide to comply with copyright law.
ubutler··on Groqchat
It seems to load quite fast for me. Maybe try again?
ubutler··on Groqchat
Great work! This is the fastest inference I have ever seen of any truly large language model (>=70b parameters).

Just FYI, you might want to fix autocorrect on iOS, your textbox seems to suppress it (at least for me).

ubutler··on AI cannot be patent 'inventor', UK Supreme Court rules in landmark case
This is not surprising, the Federal Court of Australia issued a similar ruling last year for the same reason, namely that an inventor for the purposes of patent law must be a natural person and AI are not legal persons: https://www.lexology.com/library/detail.aspx?g=2a9508a2-d7fa...

Also worth noting that that case involved the same plaintiff as this one, Dr Stephen Thaler, who has been on a mission to have a court recognise his AI system, DABUS, as capable of inventing patents.

ubutler··on On the pronunciation of “fsck”
Let us not forget colonel and (in UK English) lieutenant (relevant: https://www.theguardian.com/notesandqueries/query/0,5753,-19...).
ubutler··on Extracting training data from ChatGPT
To be fair, they did write things down. It’s more a matter of explaining why GPT was behaving the way it was (ie, because it was regurgitating its training data). Also, I’d personally respect a blog post just as a much as a peer reviewed journal article on something like this where it’s pretty easy to reproduce yourself, not to mention that I and I’m sure many others have observed this behaviour before.
ubutler··on Show HN: I built the first open LLM for Australian law
See my response to /u/nextworddev (https://news.ycombinator.com/item?id=38399702). In short, GPT-4 outperforms my LLM simply because my model is quite small (its smallest version of GPT2). At the moment, I'm trying to figure out if I can train a larger model, say Phi-1.5, and get results comparable to or even better than GPT-4. With enough computing power, I'm sure that would be possible given that: 1. GPT-4 lacks a sufficently advanced enough understanding of Australian law (likely owing to the composition of its training data). 2. Australian legal English can be considered a very small subset of broader Australian English and then English in general, which should make it possible to generate a model with a deep understanding of the domain without as many parameters as one might need to understand English in general, or even a popular dialect of English.
ubutler··on Show HN: I built the first open LLM for Australian law
> 1) What’s the main use case for this?

Originally, I intended to produce an LLM that could be used for answering questions related to Australian law, potentially via retrieval augmented generation. The LLM I ended up building, however, is unfortunately too small to be useful for that. It could, however, be useful for autocompletion. Perhaps if it was further finetuned, it might also be capable of tasks such as text summarisation and question answering. Nevertheless, the model is also valuable in that it has taught me how to train causal language models and taught me that, if I were to do the same thing with a bigger model and more of my legal database, I could achieve much greater results than major LLMs which lack a sufficent amount of Australian legal material in their training data.

> 2) Was training your own LLM necessary? How did GPT-4 compare?

GPT-4 is certainly much better given that I only trained the smallest version of GPT2. I do think that there is still value in training a larger LLM on my database as, in my experience, GPT-4 lacks a sufficently advanced understanding of Australian law, although it has the best understanding of all the models I have tried (GPT 3.5 Turbo, Claude 2, Bard, Llama 2, Mistral, etc...).

ubutler··on Show HN: I built the first open LLM for Australian law
Hey HN,

Last month, I had the honour of seeing my article on how I built the largest open database of Australian law (https://umarbutler.com/how-i-built-the-largest-open-database...) reach the front page. Due in large part to the outpouring of support and encouragement I received for my work from HN, I became determined to publish the first open LLM for Australian law by training a model on my database. I am excited to share that I finally achieved that goal today with the release of Open Australian Legal GPT2, a finetune of GPT2 trained on 37,560 laws and regulations, comprising 635,482,112 tokens, taken from my database.

Although it may not be as large as I had originally hoped, I'm still quite proud of the model. It was a struggle to wade through mountains of options trying to find something that worked. And now I have code I can reuse for training any other causal language model and dataset. The model is thus a small but important step towards maturing the legal AI field here in Australia.

If you’re interested in playing around with the model, you can find it here on Hugging Face: https://huggingface.co/umarbutler/open-australian-legal-gpt2

ubutler··on I discovered caching CDNs were throttling my everyday browsing
https://web.archive.org/web/20231123121535/https://blog.abct...
ubutler··on Optus cell and internet down across Australia
For Americans, this is comparable to Verizon going down. Optus is our second largest telco, with 10 million customers including many hospitals, trains, enterprises, etc… I myself am currently unable to make calls and use mobile internet.
ubutler··on Show HN: how I built the largest open database of Australian law
The majority of the source data was already licensed under CC BY 4.0. Additionally, the Corpus, as a work constituting a curated and post-processed collation of other works, is also licensed under CC BY 4.0.
ubutler··on Show HN: how I built the largest open database of Australian law
> A particular case I have is where there is a draft bill put out for industry/community consultation. Quickly diffing the releases is the goal but for now usually relies on one (preferably two) subject matter experts to read the whole thing top to bottom to build an understanding. I don't think these would be available via the means you've secured. They are usually hosted on a relevant government entities website as PDFs

It's possible that they're in my database. I have included the as made version of all bills on the Federal Register of Legislation. However, if they haven't had a first reading yet, then probably not.

For processing PDFs, I recommend using `pdfplumber`, which is what I used to build the Corpus. Happy to discuss further if you'd like.

> One last question/comment, have you considered adding some additional reference info like the federal list of entities?

Do mean adding additional metadata? At the moment, I've kept the number of metadata attributes as low as possible. Every attribute added equates to more work to keep it standardised across all the jurisdictions and document types. My plan is to slowly add more attributes as I have time. I'd really like to associate a date with documents but even that is a hurdle. I have to decide what date should be the date of a document (is it the time it was issued, the time it was published, the time it came into force, the time the latest version was issued, etc... and what happens when a document doesn't have a date? should I extract it from its citation? how do I preserve time zone information? etc...).

ubutler··on Show HN: how I built the largest open database of Australian law
Correct. They are a member of WorldLII which was founded by AustLII: http://www.worldlii.org/
ubutler··on Show HN: how I built the largest open database of Australian law
It actually looks quite clean. Certainly a lot better than some of our legal databases. I guess the only suggestion I'd have is that it seems like you can have an account with the website but there's login or register button on the front page (or maybe I'm just not seeing it?).

One other point, and this is not specific to CanLII (I haven't checked whether this is the case) but I've seen that a lot of legislation databases have poor SEO. In fact, AustLII is usually ranked higher than governments' own websites when searching for laws. I think it's something important to get right because a lot of people just use Google/Bing/Kagi to search websites nowadays rather than using internal search engines.

ubutler··on Show HN: how I built the largest open database of Australian law
Unfortunately, I haven't been able to train a model on my database just yet (although I have seen great results using it as a RAG data source for GPT-4). I'll keep ollama in mind once I have something to share.
ubutler··on Show HN: how I built the largest open database of Australian law
> Just one note - the link in your Github readme to https://umarbutler.com/open-australian-legal-corpus doesn't seem to go anywhere.

Thanks for the heads up! I've fixed that now.

> For someone interested in using the data (and help out with bugs/issues), where would you suggest starting?

I think the best place to start is by downloading the Corpus (visit https://huggingface.co/datasets/umarbutler/open-australian-l... , and then click "Files and versions" and then "corpus.jsonl"). You can then use my Python library orjsonl to parse the dataset (you'd run, `corpus = orjsonl.load('corpus.jsonl')`). At that point, there's any number of applications you could use the dataset for. You could pretrain a model like BERT, ELECTRA, etc... and share it on HuggingFace. You could connect the dataset to GPT and do RAG over it. Etc...

ubutler··on Show HN: how I built the largest open database of Australian law
Weird. Thanks for the heads up. I'm using SiteGround to host it which is shared hosting so perhaps that's why? I'll have to investigate.
← PreviousPage 3 of 4Next →