Repository navigation
Replies: 3 comments
|
Owen Ambur brought up the strategic plans available in StratML format, >5.7K files in the StratML collection that can be used to train AI models. This was re discussion that it would be good to gather lists of SGML/XML markup document corpora that are probably not yet on the radar of organizations & projects training LLMs, and to see if we can bring the former to the latter's attention. |
0 replies
|
A question that came up a few times at Balisage was "What does it look like when an LLM tokenizes XML?" A couple of online tokenizers which are handy for checking: |
0 replies
|
TODO for me, BTW: put the Colab notebook I used for my presentation into GitHub. Probably here |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Re: Balisage conference, 2023, where LLMs have come up a fair bit, including in my own late-breaking presentation.
Best tinned history (with tech substance) I've found of Open-Source LLMs (and there is truly a ton to cram in the tin) is "The History of Open-Source LLMs: Better Base Models (Part Two)", by Cameron Wolfe.
There is a part 1, but never mind that, because even part 2 was out of date the day after it was published.
It's strictly about the models themselves, though. I'll mostly focus on topics it doesn't cover.
Really important to understand that there are many sorts of LLMs, and that if you pick the wrong tool for the job, things will be more of a struggle than they need be. ChatGPT (up to 3.5), Bard and Claude are all chat-tuned models. ChatGPT 4 is credibly rumored to be a "committee of experts" (i.e. multiple models working in concert), including some instruct-tuned and coding models, which is the main reason for its massive leap over 3.5, but even then, you don't get to control which "expert" wins.
Besides prompt engineering (or prompt alchemy, as I suggested as a better term), there are more formal and reliable ways to control model output. Key terms include guidance, guardrails and alignment.
For the sorts of issues that have come up at Balisage, guidance is probably most relevant. Perhaps the most lightweight entry-point to guidance is Classifier-Free Guidance. This has been implemented in the self-hosted LLM library I use most, llama.cpp (via llama-cpp-python).
A few other useful guidance-related projects:
A few developer tools have also come up in discussion. Langchain supports programming (Python & Typescript) for connecting components together, such as LLMs with tools they can use for (relatively) reliable information sourcing—Wikipedia, Google search, etc. These are called Agents and Tools. Langchain also does a lot more. Too much IMO. I've come to see it as an over-engineered, over-abstracted, difficult to use and near impossible to debug ball of spaghetti. It's a great source of ideas, though, for programming patterns with LLMs that you're probably better off just implementing yourself. Just a couple of days ago, Langchain announced XML Agents. I've never used it, and I shudder just thinking of what the Langchain folks have done with XML, but again a possible source of ideas.
LlamIndex is a better-designed and rightfully less ambitious suite of programmer tools for integrating DBs and other traditional systems with LLMs.
Since this is my own compilation, I'll plug my own little project for client-side programmer support with LLMs, OgbujiPT. It will never be as ambitious as Langchain and LlamIndex, because I prefer to keep it simple (including simple to modify and specialize) and unobtrusive.
Felix Sasaki mentioned knowledge graphs as a great companion to LLMs, and I strongly agree. I've had good experience using Memgraph with self-hosted LLMs, including via retrieval augmentation.
[Originally: 2023-08-02]
[Update 1: Classifier-Free Guidance, 2023-08-02]
All reactions