Downloads · 30 days
95
8% of all-time downloads
yzhuang/Llama-3.1-8B-Instruct-AgenticLU
Llama-3.1-8B-Instruct-AgenticLU is a machine learning model from yzhuang. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
<h1 align="center" 📖 Agentic Long Context Understanding 📖 </h1 <p align="center" <bSelf-Taught Agentic Long Context Understanding</b (<a href="https://arxiv.org/abs/2502.15920"Arxiv</a). </p
Downloads · 30 days
95
8% of all-time downloads
All-time downloads
1.2K
Public
Parameters
8B
16.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This codebase is largely based on OpenRLHF and Helmet, kudos to them.
The requirements are the same
pip install openrlhf
pip install -r ./HELMET/requirements.txt
Dataset for SFT and DPO is avaliable at here
Model is available at here
To generate traces with your custom model or dataset, follow the instructions:
export OPENAI_API_KEY="your_api_key_here"
PYTHONPATH="./":"$PYTHONPATH" python ./long_context_llm/qa_tree_datagen.py \
--model_name_or_path meta-llama/Llama-3.1-8B-Instruct \
--max_sample_size 8 \
--max_tree_depth 2 \
--dataset_name yzhuang/narrative_qa
dataset_dpo, feel free to add this line to push to your huggingface account.dataset_dpo.push_to_hub("YOUR REPO")
We show the training script of AgenticLU at sft script, dpo script.
It is important to get ring-attention to work, as the inputs are extremely long and requires ring-attention and deepspeed for training.
Examples for inferencing with the agentic workflow can be found here, with baseline prompting scripts avaliable.
If you have any questions related to the code or the paper, feel free to reach out to us at [email protected].
If you find our paper and code useful, please cite us:
@misc{zhuang2025selftaughtagenticlongcontext,
title={Self-Taught Agentic Long Context Understanding},
author={Yufan Zhuang and Xiaodong Yu and Jialian Wu and Ximeng Sun and Ze Wang and Jiang Liu and Yusheng Su and Jingbo Shang and Zicheng Liu and Emad Barsoum},
year={2025},
eprint={2502.15920},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.15920},
}