TLDM is a large language model (LLM) benchmark for testing long-context understanding drop-off rates — at what point a LLM's understanding of a long-form integrated document begins to degrade.
- Install the requirements in
requirements.txt. - Create a GPT-4.1 endpoint through Microsoft Azure (or create a compatible endpoint locally with e.g.
llama.cpp) - Create an endpoint for the model you'd like to test through Hugging Face's inference endpoint API (or create a compatible endpoint with e.g.
llama.cpp) - Plug in the API keys & endpoint URLs into
generate.pyandtest.py - Define your model's parameters in the
modelmatch-case in both files; specifically, give it a short key label and define its maximum context length through thelimitvariable - Duplicate the existing
blank modeldirectory and rename it to your model's key name - Run!