Analysis of intrinsic dimensionality and temporal dynamics in LLM activations.
Set up virtual environment
conda create -n dyn_rep python=3.12.8
conda activate dyn_rep
pip install uv && uv pip install -e .
Check HF cache directory in src/project_config.py (adapt to your setup)
Download activation artifacts
./scripts/download_artifacts_from_hf.sh
Adapt experiment config in exp/u_stat.py:
llm line to match your downloaded activationsnum_total_stories (N) and num_tokens_per_story (T) to match the activation filename pattern: activations_u-stat_{model}_{N}N_{T}T.ptRun experiment
python exp/u_stat.py
Pro tip: Once completed, the figure path will be printed in the terminal - click to see results!
src/: Source code directoryexp/: Experiments directoryartifacts/: Model outputs and artifactsscripts/: Utility scripts for HF Hub sync56 commits
Jupyter Notebook
92.7%
Python
7.2%
Analysis of intrinsic dimensionality and temporal dynamics in LLM activations.
Set up virtual environment
conda create -n dyn_rep python=3.12.8
conda activate dyn_rep
pip install uv && uv pip install -e .
Check HF cache directory in src/project_config.py (adapt to your setup)
Download activation artifacts
./scripts/download_artifacts_from_hf.sh
Adapt experiment config in exp/u_stat.py:
llm line to match your downloaded activationsnum_total_stories (N) and num_tokens_per_story (T) to match the activation filename pattern: activations_u-stat_{model}_{N}N_{T}T.ptRun experiment
python exp/u_stat.py
Pro tip: Once completed, the figure path will be printed in the terminal - click to see results!
src/: Source code directoryexp/: Experiments directoryartifacts/: Model outputs and artifactsscripts/: Utility scripts for HF Hub sync56 commits
Jupyter Notebook
92.7%
Python
7.2%