This repository contains the code for the paper Phase Transitions in Large Language Models and the $O(N)$ Model.
gen_beta.py
generates text under diff temperature and stores underdata/
energy_on.py
computes the energy of the text and then plot the energy vs temperature curve
python3 -m venv .vllm
source .vllm/bin/activate
pip install -r requirements.txt
export model_name="Qwen/Qwen2.5-0.5B"
python3 gen_beta.py
python3 energy_on.py