Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
+
---
|
| 7 |
+
# About
|
| 8 |
+
|
| 9 |
+
Hi, this is the Readme.
|
| 10 |
+
|
| 11 |
+
This Model was created as a study experiment, to re-create alpaca on my end.
|
| 12 |
+
It uses the gururise/AlpacaDataCleaned Dataset ( From April 7 )
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
# Specifications
|
| 16 |
+
|
| 17 |
+
**Base Model**:
|
| 18 |
+
ββLLaMA 7B
|
| 19 |
+
|
| 20 |
+
**Training Parameters**:
|
| 21 |
+
ββMicro_Batch_Size = 8
|
| 22 |
+
ββBatch_Size = 128
|
| 23 |
+
ββGradient_Accumulation_Steps = Batch_Size / Micro_Batch_Sizeβββ# ( 0.0625 )
|
| 24 |
+
ββEpochs = 2
|
| 25 |
+
ββLearning_Rate = 2e-5
|
| 26 |
+
ββCutoff_Len = 256βββ# This ( 256 ) accounts for about 96% of all data
|
| 27 |
+
ββLora_R = 4
|
| 28 |
+
ββLora_Alpha = 16
|
| 29 |
+
ββLora_Dropout = 0.05
|
| 30 |
+
|
| 31 |
+
β
|
| 32 |
+
β
|
| 33 |
+
# Files
|
| 34 |
+
ββadapter_model.binβ
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
*# This is the Fine-tuned Weights that goes over the base LLaMA Model.*
|
| 35 |
+
ββadapter_config.binβ
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
*# This is Config File for the adapter_model file.*
|
| 36 |
+
|
| 37 |
+
ββconsolidated.00.pthβ
β
β
β
β
β
β
β
β
β
β
β
β
β
*# This File is the Base Model File ( LLaMA 7B ), merged with the fine-tuned weights ( adapter_model.bin ).*
|
| 38 |
+
ββtokenizer.modelβ
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
*# This is the tokenizer file, it converts the input text ( prompt ) to tokens that the NN can understand.*
|
| 39 |
+
ββparams.jsonβ
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
*# Parameters of the Model.*
|
| 40 |
+
|
| 41 |
+
ββggml_model_f16.binβ
β
β
β
β
β
β
β
β
β
β
β
*# This is the same model ( consolidated.00.pth ), but now it's in 'ggml f16' format. We need this format to quantize it with llama.cpp.*
|
| 42 |
+
ββ**llama-hf-7b**β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
β
*# This folder contains the same model ( consolidated.00.pth ), but now it's in 'huggingface' format. We need this format to quantize it with GPTQ.*
|
| 43 |
+
|
| 44 |
+
ββ**quantized-model**:
|
| 45 |
+
ββββggml-model-q4_0.binβ
β
β
*# This is the 4-bit Quantized Model by llama.cpp, I found this to be better than GPTQ.*
|
| 46 |
+
ββββllama7b-4bit-128g.ptβ
β
β
β
*# This is the Quantized Model by GPTQ. It takes longer to train and gives worse results compared to llama.cpp, but it does have a ( 7.6% ) smaller file size.*
|
| 47 |
+
|
| 48 |
+
|