Instructions to use dhmeltzer/Llama-2-7b-hf-eli5-cleaned-1024_qlora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dhmeltzer/Llama-2-7b-hf-eli5-cleaned-1024_qlora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "dhmeltzer/Llama-2-7b-hf-eli5-cleaned-1024_qlora") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- README.md +14 -60
- adapter_model.safetensors +3 -0
README.md
CHANGED
|
@@ -1,67 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
tags:
|
| 4 |
-
- generated_from_trainer
|
| 5 |
-
model-index:
|
| 6 |
-
- name: Llama-2-7b-hf-eli5-cleaned-1024_qlora
|
| 7 |
-
results: []
|
| 8 |
---
|
| 9 |
-
|
| 10 |
-
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
-
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
-
|
| 13 |
-
# Llama-2-7b-hf-eli5-cleaned-1024_qlora
|
| 14 |
-
|
| 15 |
-
This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on the None dataset.
|
| 16 |
-
It achieves the following results on the evaluation set:
|
| 17 |
-
- Loss: 2.1853
|
| 18 |
-
|
| 19 |
-
## Model description
|
| 20 |
-
|
| 21 |
-
More information needed
|
| 22 |
-
|
| 23 |
-
## Intended uses & limitations
|
| 24 |
-
|
| 25 |
-
More information needed
|
| 26 |
-
|
| 27 |
-
## Training and evaluation data
|
| 28 |
-
|
| 29 |
-
More information needed
|
| 30 |
-
|
| 31 |
## Training procedure
|
| 32 |
|
| 33 |
-
### Training hyperparameters
|
| 34 |
-
|
| 35 |
-
The following hyperparameters were used during training:
|
| 36 |
-
- learning_rate: 0.0002
|
| 37 |
-
- train_batch_size: 32
|
| 38 |
-
- eval_batch_size: 32
|
| 39 |
-
- seed: 42
|
| 40 |
-
- gradient_accumulation_steps: 4
|
| 41 |
-
- total_train_batch_size: 128
|
| 42 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 43 |
-
- lr_scheduler_type: linear
|
| 44 |
-
- lr_scheduler_warmup_ratio: 0.03
|
| 45 |
-
- num_epochs: 3
|
| 46 |
-
|
| 47 |
-
### Training results
|
| 48 |
-
|
| 49 |
-
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
-
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| 2.1545 | 0.3 | 91 | 2.1962 |
|
| 52 |
-
| 2.1436 | 0.6 | 182 | 2.1883 |
|
| 53 |
-
| 2.1159 | 0.9 | 273 | 2.1853 |
|
| 54 |
-
| 2.0772 | 1.21 | 364 | 2.1907 |
|
| 55 |
-
| 2.076 | 1.51 | 455 | 2.1981 |
|
| 56 |
-
| 2.0961 | 1.81 | 546 | 2.1883 |
|
| 57 |
-
| 2.0357 | 2.11 | 637 | 2.1906 |
|
| 58 |
-
| 2.0721 | 2.41 | 728 | 2.1973 |
|
| 59 |
-
| 1.9755 | 2.71 | 819 | 2.2063 |
|
| 60 |
-
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
### Framework versions
|
| 63 |
|
| 64 |
-
|
| 65 |
-
-
|
| 66 |
-
- Datasets 2.14.5
|
| 67 |
-
- Tokenizers 0.13.3
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: peft
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
## Training procedure
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
The following `bitsandbytes` quantization config was used during training:
|
| 8 |
+
- quant_method: bitsandbytes
|
| 9 |
+
- load_in_8bit: False
|
| 10 |
+
- load_in_4bit: True
|
| 11 |
+
- llm_int8_threshold: 6.0
|
| 12 |
+
- llm_int8_skip_modules: None
|
| 13 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
| 14 |
+
- llm_int8_has_fp16_weight: False
|
| 15 |
+
- bnb_4bit_quant_type: nf4
|
| 16 |
+
- bnb_4bit_use_double_quant: True
|
| 17 |
+
- bnb_4bit_compute_dtype: bfloat16
|
| 18 |
### Framework versions
|
| 19 |
|
| 20 |
+
|
| 21 |
+
- PEFT 0.6.0.dev0
|
|
|
|
|
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01a5321c743a9d036eab925d0577486b39d910eb07c830b4b74be79914b4be12
|
| 3 |
+
size 639691872
|