GGUF
sft
maddes8cht commited on
Commit
ca3363a
·
1 Parent(s): 9d2edb4

"Update README.md"

Browse files
Files changed (1) hide show
  1. README.md +118 -4
README.md CHANGED
@@ -1,10 +1,124 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
3
  ---
4
- ![banner](https://maddes8cht.github.io/assets/buttons/Huggingface-banner.jpg)
 
5
  ## I am still building the structure of these descriptions.
6
- These will carry increasingly more content to help find the best models for a purpose.
7
 
8
- This is a gguf quantized version of
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
- https://huggingface.co/OpenAssistant/falcon-40b-sft-top1-560
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ - de
6
+ - es
7
+ - fr
8
+ tags:
9
+ - sft
10
+ inference: false
11
+ datasets:
12
+ - OpenAssistant/oasst1
13
  ---
14
+ [![banner](https://maddes8cht.github.io/assets/buttons/Huggingface-banner.jpg)]()
15
+
16
  ## I am still building the structure of these descriptions.
 
17
 
18
+ These will contain increasingly more content to help find the best models for a purpose.
19
+
20
+ # falcon-40b-sft-top1-560 - GGUF
21
+ - Model creator: [OpenAssistant](https://huggingface.co/OpenAssistant)
22
+ - Original model: [falcon-40b-sft-top1-560](https://huggingface.co/OpenAssistant/falcon-40b-sft-top1-560)
23
+
24
+
25
+
26
+ # About GGUF format
27
+
28
+ `gguf` is the current file format used by the [`ggml`](https://github.com/ggerganov/ggml) library.
29
+ A growing list of Software is using it and can therefore use this model.
30
+ The core project making use of the ggml library is the [llama.cpp](https://github.com/ggerganov/llama.cpp) project by Georgi Gerganov
31
+
32
+ # Quantization variants
33
+
34
+ There is a bunch of quantized files available. How to choose the best for you:
35
+
36
+ # legacy quants
37
+
38
+ Q4_0, Q4_1, Q5_0, Q5_1 and Q8 are `legacy` quantization types.
39
+ Nevertheless, they are fully supported, as there are several circumstances that cause certain model not to be compatible with the modern K-quants.
40
+ Falcon 7B models cannot be quantized to K-quants.
41
+
42
+ # K-quants
43
+
44
+ K-quants are based on the idea that the quantization of certain parts affects the quality in different ways. If you quantize certain parts more and others less, you get a more powerful model with the same file size, or a smaller file size and lower memory load with comparable performance.
45
+ So, if possible, use K-quants.
46
+ With a Q6_K you should find it really hard to find a quality difference to the original model - ask your model two times the same question and you may encounter bigger quality differences.
47
+
48
+
49
+
50
+ # Original Model Card:
51
+ # Open-Assistant Falcon 40B SFT OASST-TOP1 Model
52
+
53
+ This model is a fine-tuning of TII's [Falcon 40B](https://huggingface.co/tiiuae/falcon-40b) LLM.
54
+ It was trained with top-1 (high-quality) demonstrations of the OASST data set (exported on May 6, 2023) with an effective batch size of 144 for ~7.5 epochs with LIMA style dropout (p=0.3) and a context-length of 2048 tokens.
55
+
56
+ ## Model Details
57
+
58
+ - **Finetuned from:** [tiiuae/falcon-40b]((https://huggingface.co/tiiuae/falcon-40b)
59
+ - **Model type:** Causal decoder-only transformer language model
60
+ - **Language:** English, German, Spanish, French (and limited capabilities in Italian, Portuguese, Polish, Dutch, Romanian, Czech, Swedish);
61
+ - **Demo:** [Continuations for 250 random prompts](https://open-assistant.github.io/oasst-model-eval/?f=https%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Fchat-gpt%2F2023-04-11_gpt-3.5-turbo_lottery.json%0Ahttps%3A%2F%2Fraw.githubusercontent.com%2FOpen-Assistant%2Foasst-model-eval%2Fmain%2Fsampling_reports%2Foasst-sft%2F2023-06-03_OpenAssistant_falcon-40b-sft-top1-560_sampling_noprefix2.json)
62
+ - **Eval results:** [ilm-eval](https://tju01.github.io/ilm-eval/)
63
+ - **Weights & Biases**: [Training log](https://wandb.ai/open-assistant/public-sft/runs/3lr77x4h) (Checkpoint: 560 steps)
64
+ - **License:** Apache 2.0
65
+ - **Contact:** [Open-Assistant Discord](https://ykilcher.com/open-assistant-discord)
66
+
67
+
68
+ ## Prompting
69
+
70
+ Two special tokens are used to mark the beginning of user and assistant turns:
71
+ `<|prompter|>` and `<|assistant|>`. Each turn ends with a `<|endoftext|>` token.
72
+
73
+ Input prompt example:
74
+ ```
75
+ <|prompter|>What is a meme, and what's the history behind this word?<|endoftext|><|assistant|>
76
+ ```
77
+ The input ends with the `<|assistant|>` token to signal that the model should
78
+ start generating the assistant reply.
79
+
80
+ ## Configuration Details
81
+
82
+ Model:
83
+ ```
84
+ falcon-40b:
85
+ dtype: bf16
86
+ log_dir: "falcon_log_40b"
87
+ learning_rate: 5e-6
88
+ model_name: "tiiuae/falcon-40b"
89
+ deepspeed_config: configs/zero3_config_falcon.json
90
+ output_dir: falcon
91
+ weight_decay: 0.0
92
+ max_length: 2048
93
+ warmup_steps: 20
94
+ gradient_checkpointing: true
95
+ gradient_accumulation_steps: 1
96
+ per_device_train_batch_size: 18
97
+ per_device_eval_batch_size: 10
98
+ eval_steps: 80
99
+ save_steps: 80
100
+ num_train_epochs: 8
101
+ save_total_limit: 4
102
+ use_flash_attention: false
103
+ residual_dropout: 0.3
104
+ residual_dropout_lima: true
105
+ sort_by_length: false
106
+ save_strategy: steps
107
+ ```
108
 
109
+ Dataset:
110
+ ```
111
+ oasst-top1:
112
+ datasets:
113
+ - oasst_export:
114
+ lang: "bg,ca,cs,da,de,en,es,fr,hr,hu,it,nl,pl,pt,ro,ru,sl,sr,sv,uk" # sft-8.0
115
+ input_file_path: 2023-05-06_OASST_labels.jsonl.gz
116
+ val_split: 0.05
117
+ top_k: 1
118
+ ```<center>
119
+ [![GitHub](https://maddes8cht.github.io/assets/buttons/github-io-button.png)](https://maddes8cht.github.io)
120
+ [![Stack Exchange](https://stackexchange.com/users/flair/26485911.png)](https://stackexchange.com/users/26485911)
121
+ [![GitHub](https://maddes8cht.github.io/assets/buttons/github-button.png)](https://github.com/maddes8cht)
122
+ [![HuggingFace](https://maddes8cht.github.io/assets/buttons/huggingface-button.png)](https://huggingface.co/maddes8cht)
123
+ [![Twitter](https://maddes8cht.github.io/assets/buttons/twitter-button.png)](https://twitter.com/maddes1966)
124
+ </center>