huggingface / alignment-handbook
File Size

The distribution of size of files (measured in lines of code).

Intro
Learn more...
File Size Overall
0% | 0% | 0% | 46% | 53%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 0% | 0% | 81% | 18%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scripts0% | 0% | 0% | 100% | 0%
src0% | 0% | 0% | 58% | 41%
ROOT0% | 0% | 0% | 74% | 25%
recipes0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
configs.py
in src/alignment
188 3
run_orpo.py
in scripts
182 1
run_dpo.py
in scripts
181 1
run_sft.py
in scripts
150 1
data.py
in src/alignment
147 5
run_cpt.py
in scripts
132 1
setup.py
in root
108 1
model_utils.py
in src/alignment
83 7
release.py
in src/alignment
80 5
config_qlora.yaml
in recipes/zephyr-7b-beta/sft
53 -
decontaminate.py
in src/alignment
50 5
config_qlora.yaml
in recipes/zephyr-7b-beta/dpo
49 -
config.yaml
in recipes/smollm/sft
47 -
config_v0.1.yaml
in recipes/starchat2-15b/sft
44 -
config_full.yaml
in recipes/zephyr-7b-gemma/sft
43 -
config_grok.yaml
in recipes/constitutional-ai/sft
43 -
config_anthropic.yaml
in recipes/constitutional-ai/sft
43 -
config.yaml
in recipes/smollm2/sft
42 -
config_full.yaml
in recipes/zephyr-7b-beta/sft
41 -
config_smol.yaml
in recipes/smollm2/sft
40 -
config_full.yaml
in recipes/gpt2-nl/sft
40 -
config_full.yaml
in recipes/gpt2-nl/cpt
40 -
config_full.yaml
in recipes/gpt2-nl/dpo
38 -
config.yaml
in recipes/smollm2/dpo
37 -
config_smol.yaml
in recipes/smollm2/dpo
37 -
config_v0.1.yaml
in recipes/starchat2-15b/dpo
37 -
cfg
setup.cfg
in root
37 -
config_full.yaml
in recipes/zephyr-7b-gemma/dpo
36 -
config_full.yaml
in recipes/zephyr-7b-beta/dpo
35 -
config_openhermes.yaml
in recipes/pref_align_scan/dpo
35 -
config_anthropic.yaml
in recipes/constitutional-ai/dpo
35 -
config_full.yaml
in recipes/zephyr-141b-A35b/orpo
34 -
config_zephyr.yaml
in recipes/pref_align_scan/dpo
34 -
__init__.py
in src/alignment
28 -
fsdp.yaml
in recipes/accelerate_configs
26 -
fsdp_qlora.yaml
in recipes/accelerate_configs
25 -
deepspeed_zero3.yaml
in recipes/accelerate_configs
22 -
multi_gpu.yaml
in recipes/accelerate_configs
16 -
Files With Most Units (Top 10)
File# lines# units
model_utils.py
in src/alignment
83 7
decontaminate.py
in src/alignment
50 5
release.py
in src/alignment
80 5
data.py
in src/alignment
147 5
configs.py
in src/alignment
188 3
run_orpo.py
in scripts
182 1
run_sft.py
in scripts
150 1
run_cpt.py
in scripts
132 1
run_dpo.py
in scripts
181 1
setup.py
in root
108 1
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 22 long lines.

File# lines# units# long lines
data.py
in src/alignment
147 5 4
configs.py
in src/alignment
188 3 3
fsdp_qlora.yaml
in recipes/accelerate_configs
25 - 2
run_orpo.py
in scripts
182 1 2
run_sft.py
in scripts
150 1 2
run_dpo.py
in scripts
181 1 2
config_full.yaml
in recipes/zephyr-141b-A35b/orpo
34 - 1
config_qlora.yaml
in recipes/zephyr-7b-beta/sft
53 - 1
config_full.yaml
in recipes/zephyr-7b-beta/sft
41 - 1
config_v0.1.yaml
in recipes/starchat2-15b/sft
44 - 1
config_grok.yaml
in recipes/constitutional-ai/sft
43 - 1
config_anthropic.yaml
in recipes/constitutional-ai/sft
43 - 1
config_full.yaml
in recipes/gpt2-nl/sft
40 - 1