Triangle104 nbeerbower commited on
Commit
12ddc46
·
verified ·
0 Parent(s):

Duplicate from nbeerbower/gutenberg2-dpo

Browse files

Co-authored-by: Nicholas Beerbower <[email protected]>

Files changed (3) hide show
  1. .gitattributes +58 -0
  2. README.md +64 -0
  3. gb2_2024_11_16.json +0 -0
.gitattributes ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
56
+ # Video files - compressed
57
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
58
+ *.webm filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ ---
6
+ ![image/png](https://huggingface.co/nbeerbower/gemma2-gutenberg-27B/resolve/main/gutenberg2-header.png?download=true)
7
+
8
+ # Gutenberg2 DPO
9
+
10
+ A DPO dataset meant to enhance the writing capabilities of LLMs using public domain books from [Project Gutenberg](https://gutenberg.org/).
11
+
12
+ Inspired by Jon Durbin's Gutenberg DPO dataset: [jondurbin/gutenberg-dpo-v0.1](https://huggingface.co/datasets/jondurbin/gutenberg-dpo-v0.1)
13
+
14
+ ## Process
15
+
16
+ Various books were selected from Project Gutenberg by personal preference and recommendation by Claude 3.5 Sonnet.
17
+
18
+ They were then parsed by chapter using [chapterize](https://github.com/JonathanReeve/chapterize). Books that failed to parse or had mangled results were dropped from consideration.
19
+
20
+ Chapters were then manually edited to remove: illustration tags, notes, etc. Superfluous line breaks were removed with a regular expression.
21
+
22
+ Each chapter had a summary generated by an LLM. The summary of the previous chapter and the text from the current chapter were then used to generate a prompt that would result in an LLM writing that chapter.
23
+
24
+ The prompts were then used to generate a "rejected" value, while the original chapter text was used as "chosen."
25
+
26
+ [nbeerbower/mistral-nemo-bophades-12B](https://huggingface.co/nbeerbower/mistral-nemo-bophades-12B) was used to generate summaries, prompts, and rejected values.
27
+
28
+ ## Code
29
+
30
+ [gutenberg-tools](https://github.com/nbeerbower/gutenberg-tools) is MIT licensed on GitHub.
31
+
32
+ ## Acknowledgements
33
+
34
+ - __Jon Durbin__ for the original idea and process, thank you for your contributions to the open source community
35
+ - __Jonathan Reeve__ for the chapterize library
36
+ - __Mistral AI__ for their state of the art, permissively licensed, open LLMs
37
+ - __Project Gutenberg__ and all their volunteers, thank you for preserving literary history and making it available to all
38
+ - __koboldcpp__ for providing a fast and easy way to run LLM inference (shoutout to the KoboldAI Discord)
39
+ - __llama.cpp__ and Georgi Gerganov for GGUF
40
+ - __Michael Radermacher__ for quantizing my models and especially the one used to generate this dataset
41
+
42
+ Dedicated to my late grandfather, George F. Beerbower, an engineer and avid reader.
43
+
44
+ ## Selected Works
45
+
46
+ - Alice's Adventures in Wonderland - Lewis Carroll
47
+ - Around the World in Eighty Days - Jules Verne
48
+ - The Awakening - Kate Chopin
49
+ - The Canterville Ghost - Oscar Wilde
50
+ - The Invisible Man - H.G. Wells
51
+ - The Island of Dr. Moreau - H.G. Wells
52
+ - The Metamorphosis - Franz Kafka
53
+ - Peter Pan - J.M. Barrie
54
+ - The Picture of Dorian Gray - Oscar Wilde
55
+ - The Red Badge of Courage - Stephen Crane
56
+ - The Secret Agent - Joseph Conrad
57
+ - The Adventures of Tom Sawyer - Mark Twain
58
+ - The Wonderful Wizard of Oz - L. Frank Baum
59
+
60
+ ## Disclaimer
61
+
62
+ This dataset is provided for free and as-is with absolutely no warranty. Some data may contain errors and be periodically modified.
63
+
64
+ You are free to modify and redistribute it as you wish.
gb2_2024_11_16.json ADDED
The diff for this file is too large to render. See raw diff