TianyiQ commited on
Commit
f6a3ed4
1 Parent(s): 0590520

Upload ./README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +93 -30
README.md CHANGED
@@ -1,41 +1,37 @@
1
  ---
2
- license: other
3
- base_model: meta-llama/Meta-Llama-3-8B
4
- tags:
5
- - llama-factory
6
- - full
7
- - generated_from_trainer
8
- model-index:
9
- - name: C018_random_sample_llama3-8b-base_instruct_20240504_182259
10
- results: []
11
  ---
12
 
13
- <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
- should probably proofread and complete it, then remove this comment. -->
15
 
16
- # C018_random_sample_llama3-8b-base_instruct_20240504_182259
17
 
18
- This model is a fine-tuned version of [./output/training_results/C018_random_sample_llama3-8b-base_pretrain_20240504_182259/](https://huggingface.co/./output/training_results/C018_random_sample_llama3-8b-base_pretrain_20240504_182259/) on the instructions_curated dataset.
19
- It achieves the following results on the evaluation set:
20
- - Loss: 0.8423
21
 
22
- ## Model description
23
 
24
- More information needed
25
 
26
- ## Intended uses & limitations
27
 
28
- More information needed
 
 
29
 
30
- ## Training and evaluation data
31
 
32
- More information needed
33
 
34
- ## Training procedure
35
 
36
- ### Training hyperparameters
37
 
38
- The following hyperparameters were used during training:
39
  - learning_rate: 1.5e-05
40
  - train_batch_size: 8
41
  - eval_batch_size: 16
@@ -50,7 +46,47 @@ The following hyperparameters were used during training:
50
  - num_epochs: 4.0
51
  - mixed_precision_training: Native AMP
52
 
53
- ### Training results
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
  | Training Loss | Epoch | Step | Validation Loss |
56
  |:-------------:|:------:|:----:|:---------------:|
@@ -65,9 +101,36 @@ The following hyperparameters were used during training:
65
  | 0.3635 | 3.75 | 180 | 0.8676 |
66
 
67
 
68
- ### Framework versions
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
- - Transformers 4.40.1
71
- - Pytorch 2.3.0
72
- - Datasets 2.19.0
73
- - Tokenizers 0.19.1
 
 
 
 
 
1
  ---
2
+ license: cc-by-4.0
3
+ datasets:
4
+ - PKU-Alignment/ProgressGym-HistText
5
+ - PKU-Alignment/ProgressGym-TimelessQA
6
+ base_model:
7
+ - PKU-Alignment/ProgressGym-HistLlama3-8B-C018-pretrain
8
+ - meta-llama/Meta-Llama-3-8B
 
 
9
  ---
10
 
11
+ # ProgressGym-HistLlama3-8B-C018-instruct
 
12
 
13
+ ## Overview
14
 
15
+ #### The ProgressGym Framework
 
 
16
 
17
+ ![Framework Diagram](./readme-assets/main-diagram.png)
18
 
19
+ **ProgressGym-HistLlama3-8B-C018-instruct** is part of the **ProgressGym** framework for research and experimentation on *progress alignment* - the emulation of moral progress in AI alignment algorithms, as a measure to prevent risks of societal value lock-in.
20
 
21
+ To quote the paper [*ProgressGym: Alignment with a Millennium of Moral Progress*](https://arxiv.org/abs/2406.20087):
22
 
23
+ > Frontier AI systems, including large language models (LLMs), hold increasing influence over the epistemology of human users. Such influence can reinforce prevailing societal values, potentially contributing to the lock-in of misguided moral beliefs and, consequently, the perpetuation of problematic moral practices on a broad scale.
24
+ >
25
+ > We introduce *progress alignment* as a technical solution to mitigate this imminent risk. Progress alignment algorithms learn to emulate the mechanics of human moral progress, thereby addressing the susceptibility of existing alignment methods to contemporary moral blindspots.
26
 
27
+ #### ProgressGym-HistLlama3-8B-C018-instruct
28
 
29
+ ProgressGym-HistLlama3-8B-C018-instruct is one of the **36 historical language models** in the ProgressGym framework.
30
 
31
+ **ProgressGym-HistLlama3-8B-C018-instruct is under continual iteration.** Improving upon the current version, new versions of the model are currently being trained to reflect historical moral tendencies in ever more comprehensive ways.
32
 
33
+ **ProgressGym-HistLlama3-8B-C018-instruct is a 18th-century historical language model.** Based on [Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B), It is continued-pretrained on the 18th-century text data from [ProgressGym-HistText](https://huggingface.co/datasets/PKU-Alignment/ProgressGym-HistText), using the following hyperparameters:
34
 
 
35
  - learning_rate: 1.5e-05
36
  - train_batch_size: 8
37
  - eval_batch_size: 16
 
46
  - num_epochs: 4.0
47
  - mixed_precision_training: Native AMP
48
 
49
+ ... with the following training results:
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss |
52
+ |:-------------:|:------:|:----:|:---------------:|
53
+ | 2.3701 | 0.2186 | 200 | 2.3702 |
54
+ | 2.3183 | 0.4372 | 400 | 2.3160 |
55
+ | 2.2634 | 0.6557 | 600 | 2.2863 |
56
+ | 2.2522 | 0.8743 | 800 | 2.2706 |
57
+ | 2.0306 | 1.0929 | 1000 | 2.2777 |
58
+ | 2.0095 | 1.3115 | 1200 | 2.2760 |
59
+ | 2.0539 | 1.5301 | 1400 | 2.2746 |
60
+ | 2.0338 | 1.7486 | 1600 | 2.2743 |
61
+ | 2.0648 | 1.9672 | 1800 | 2.2737 |
62
+ | 2.0297 | 2.1858 | 2000 | 2.2766 |
63
+ | 2.0487 | 2.4044 | 2200 | 2.2767 |
64
+ | 2.0329 | 2.6230 | 2400 | 2.2770 |
65
+ | 2.0213 | 2.8415 | 2600 | 2.2766 |
66
+ | 2.0559 | 3.0601 | 2800 | 2.2771 |
67
+ | 2.0543 | 3.2787 | 3000 | 2.2773 |
68
+ | 2.0317 | 3.4973 | 3200 | 2.2772 |
69
+ | 1.988 | 3.7158 | 3400 | 2.2770 |
70
+ | 2.0355 | 3.9344 | 3600 | 2.2772 |
71
+
72
+ Note that the training data volume for the continued pretraining stage is capped at 300MB. When the corresponding century's corpus exceeds this volume, the training data is randomly sampled to fit the volume.
73
+
74
+ **ProgressGym-HistLlama3-8B-C018-instruct is an instruction-tuned language model.** It is tuned on [ProgressGym-TimelessQA](https://huggingface.co/datasets/PKU-Alignment/ProgressGym-TimelessQA), using the following hyperparameters:
75
+ - learning_rate: 1.5e-05
76
+ - train_batch_size: 8
77
+ - eval_batch_size: 16
78
+ - seed: 42
79
+ - distributed_type: multi-GPU
80
+ - num_devices: 8
81
+ - total_train_batch_size: 64
82
+ - total_eval_batch_size: 128
83
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
84
+ - lr_scheduler_type: polynomial
85
+ - lr_scheduler_warmup_steps: 20
86
+ - num_epochs: 4.0
87
+ - mixed_precision_training: Native AMP
88
+
89
+ ... with the following training results:
90
 
91
  | Training Loss | Epoch | Step | Validation Loss |
92
  |:-------------:|:------:|:----:|:---------------:|
 
101
  | 0.3635 | 3.75 | 180 | 0.8676 |
102
 
103
 
104
+ ## Links
105
+
106
+ - **[Paper Preprint]** [ProgressGym: Alignment with a Millennium of Moral Progress](https://arxiv.org/abs/2406.20087)
107
+ - **[Leaderboard & Interactive Playground]** PKU-Alignment/ProgressGym-LeaderBoard *(coming soon)*
108
+ - **[Github Codebase]** PKU-Alignment/ProgressGym *(coming soon)*
109
+ - **[Huggingface Data & Model Collection]** [PKU-Alignment/ProgressGym](https://huggingface.co/collections/PKU-Alignment/progressgym-666735fcf3e4efa276226eaa)
110
+ - **[PyPI Package]** *(coming soon)*
111
+
112
+ ## Citation
113
+
114
+ If the datasets, models, or framework of ProgressGym help you in your project, please cite ProgressGym using the bibtex entry below.
115
+
116
+ ```text
117
+ @article{progressgym,
118
+ title={ProgressGym: Alignment with a Millennium of Moral Progress},
119
+ author={Tianyi Qiu and Yang Zhang and Xuchuan Huang and Jasmine Xinze Li and Jiaming Ji and Yaodong Yang},
120
+ journal={arXiv preprint arXiv:2406.20087},
121
+ eprint={2406.20087},
122
+ eprinttype = {arXiv},
123
+ year={2024}
124
+ }
125
+ ```
126
+
127
+ ## Ethics Statement
128
 
129
+ - **Copyright information of historical text data sources**:
130
+ - Project Gutenberg, one among our four source of our historical text data, consists only of texts in the public domain.
131
+ - For the text that we draw from Internet Archive, we only include those that uploaded by *Library of Congress*, which are texts freely released online by the U.S. Library of Congress for research and public use.
132
+ - The text data from Early English Books Online are, according to their publisher, "freely available to the public" and "available for access, distribution, use, or reuse by anyone".
133
+ - The last remaining source of our historical text data, the Pile of Law dataset, is released under a Creative Commons license, which we adhere to in our use.
134
+ - **Reproducibility**: To ensure reproducibility, we open-source all the code involved in the production of our main results (including the entire pipeline starting from data collection and model training), as well as the supporting infrastructure (the ProgressGym framework), making replication as easy as running a few simple script files.
135
+ - **Misuse Prevention**: In order to prevent potential misuse of progress alignment algorithms, we have carefully formulated progress alignment as strictly value-neutral, without *a priori* assumptions on the direction of progress. In the event of potential misuse of our dataset, we condemn any misuse attempt to the strongest degree possible, and will work with the research community on whistleblowing for such attempts.
136
+ - **Open-Sourcing**: We confirm that our code, data, and models are to be open-sourced under a CC-BY 4.0 license. We will continue to maintain and update our open-source repositories and models.