by aimor · 2y ago · 0 comments
What I get from this is that Llama2 70B contains 93% of Harry Potter Chapter 1 within it. It's not 100% (which would mean no need to share the encoded indices) but it's still pretty significant. I want to repeat this with the entire text of some books, the example I picked isn't representative because the text is available online on the official website.
In other words it's not that llama2 contains 93% of Chapter 1, it's that only 7% of Chapter 1 is different enough to anything else to be worth encoding in its own right.
A decent control would be to compare it to similar prose that you know for a fact is not in the training data (e.g. because it was written afterwards).
You're right that a better baseline could be made using books not in the training set, to understand how much is the model learning prose and how much is learning a specific book.
The tokenizer the models use,(sentence piece) is more or less based on one way to do compression.(bpe). It's not really clear what your testing.