Earlier quoted context omitted.
I verified that it has all required facts (line of succession, current circumstances). I managed to get the right answer when got everything in context, but it failed again when all three abdicate (same context). Prince Harry was indicated once. I tested GPT a lot in other domains, what I found that as long the information explicitly exists (connection between facts) then the responses are fine. I assume that if GPT…
>Nothing like that happened yet. Feels like we're only one paper away now that the context window has absolutely ballooned.
Scaling Transformer to 1M tokens and beyond with RMT
121–130 of 147 posts
Re: Scaling Transformer to 1M tokens and beyond with RMT
#122Here's a list of tools for scaling up transformer context that have github repos: * FlashAttention: In my experience, the current best solution for n² attention, but it's very hard to scale up beyond the low tens of thousands of tokens. Memory use is O(n) but compute is O(n²). Code: https://github.com/HazyResearch/flash-attention * Heinsen Routing: In my experience, the current best solution for n×m attention, i.e.,…
From my tests, SSMs are a very promising line of research and on my (small) tests on S4, it really has better characteristics than transformers, as it learned faster, a larger context and with smaller dataset.
Re: Scaling Transformer to 1M tokens and beyond with RMT
#123Earlier quoted context omitted.
This is already happening right now. Companies will find a way to put all their knowledge inside a LLM. The problem is that I don't think they are ready for what this will cause. Imagine that Amazon managed to do that and now every employee has access to it. What prevents anyone asking "inconvenient" questions? Think something like: - Does the Echo dot records audio even when the trigger word isn't used? Show me the…
Consider someone stealing this LLM company knowledge trove. They now have the ability to outcompete and sabotage.
Re: Scaling Transformer to 1M tokens and beyond with RMT
#124For those who don't completely get the impact of this: We already know Large Language Models (LLMs) can learn at runtime (ie, separately to the training process.) This is called "In Context Learning". See [1], [2] for more details. (BTW, when anyone says "LLMs are stochastic parrots" you know they are ignorant of this) In context learning is wonderful because it means you can "train" a LLM at run time by filling the…
Thank you very much for this comment. I just recently started dabbling with "AI/ML" by having Youtube videos transcribed and summarized. I was pretty amazed to see that I could simply 'plug' an .mp3 of audio and have openai/whisper transcribe the audio - locally - albeit at a non-trivial transcription time. I was looking at getting those transcriptions summarized using a similarily wonderful tool but was kind of stum…
Re: Scaling Transformer to 1M tokens and beyond with RMT
#125Here's a list of tools for scaling up transformer context that have github repos: * FlashAttention: In my experience, the current best solution for n² attention, but it's very hard to scale up beyond the low tens of thousands of tokens. Memory use is O(n) but compute is O(n²). Code: https://github.com/HazyResearch/flash-attention * Heinsen Routing: In my experience, the current best solution for n×m attention, i.e.,…
Very nice list. I didn´t knew about Heinsen Routing, looks very interesting. From my tests, SSMs are a very promising line of research and on my (small) tests on S4, it really has better characteristics than transformers, as it learned faster, a larger context and with smaller dataset.
Re: Scaling Transformer to 1M tokens and beyond with RMT
#126Earlier quoted context omitted.
Thank you very much for this comment. I just recently started dabbling with "AI/ML" by having Youtube videos transcribed and summarized. I was pretty amazed to see that I could simply 'plug' an .mp3 of audio and have openai/whisper transcribe the audio - locally - albeit at a non-trivial transcription time. I was looking at getting those transcriptions summarized using a similarily wonderful tool but was kind of stum…
You can work around this by chunking the data using a sliding window. Take the first X amount of sentences that fit into the token length and summarize. Now slide your window of sentences so that you still overlap just a bit with your previous selection. Summarize that information. Continue until you have a bunch of summaries for your text. You can then pass that back into the model for a more concise summary of the…
Thanks for the feedback.
Edit: Won’t the sliding window solution above introduce a sort of bias?
For instance, with a sliding window of 3 units, unit 1 is captured once whereas units 2 and 3 are captured twice and three times respectively.
Re: Scaling Transformer to 1M tokens and beyond with RMT
#127Earlier quoted context omitted.
> The “learning” in “In context learning” is not the same concept as learning during the network “training”. The former is loosely named and does not have any impact on what’s actually “learned” by the model. Actually (and very surprisingly!) it is related. See the "Similarity of Attention Output Updates" and "Similarity of Attention Map" metrics in https://arxiv.org/abs/2212.10559 (linked above) where they show that…
Whoa. How is that possible?
Re: Scaling Transformer to 1M tokens and beyond with RMT
#128Earlier quoted context omitted.
>if you wanted to say load all of a companies documents and ask questions This is literally the use case that every large enterprise wants. Why? The potential cost savings are enormous. A significant percentage of white collar jobs primarily involve performing repetitive tasks and answering frequently asked questions. If you could automate even 20% of this........
This is already happening right now. Companies will find a way to put all their knowledge inside a LLM. The problem is that I don't think they are ready for what this will cause. Imagine that Amazon managed to do that and now every employee has access to it. What prevents anyone asking "inconvenient" questions? Think something like: - Does the Echo dot records audio even when the trigger word isn't used? Show me the…
There will likely be compartmentalized models, and then the master model that the execs get. No reason you can't have 10, 20 500 different models running.
Re: Scaling Transformer to 1M tokens and beyond with RMT
#129For those who don't completely get the impact of this: We already know Large Language Models (LLMs) can learn at runtime (ie, separately to the training process.) This is called "In Context Learning". See [1], [2] for more details. (BTW, when anyone says "LLMs are stochastic parrots" you know they are ignorant of this) In context learning is wonderful because it means you can "train" a LLM at run time by filling the…
> In context learning is wonderful because it means you can "train" a LLM at run time The “learning” in “In context learning” is not the same concept as learning during the network “training”. The former is loosely named and does not have any impact on what’s actually “learned” by the model. The LLM can, by nature, contradict its training data and whatever you/it prompt(s), and incorporates randomness when completing…
Re: Scaling Transformer to 1M tokens and beyond with RMT
#130According to Wolfram Alpha that is:
Single-spaced document: 1500 pages
Double-spaced document: 3000 pages
Book: 1028 pages
So around 1-5 books.
I'm assuming they're using OpenAI's tiktoken tokenizer. (??)