Model save
Browse files
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/mistral-7b-v0.3-bnb-4bit
|
| 3 |
library_name: peft
|
| 4 |
-
|
|
|
|
| 5 |
tags:
|
| 6 |
- base_model:adapter:unsloth/mistral-7b-v0.3-bnb-4bit
|
| 7 |
- kto
|
|
@@ -9,64 +9,52 @@ tags:
|
|
| 9 |
- transformers
|
| 10 |
- trl
|
| 11 |
- unsloth
|
| 12 |
-
licence: license
|
| 13 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
from transformers import pipeline
|
| 25 |
|
| 26 |
-
|
| 27 |
-
generator = pipeline("text-generation", model="IoakeimE/kto_simplification_balanced", device="cuda")
|
| 28 |
-
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 29 |
-
print(output["generated_text"])
|
| 30 |
-
```
|
| 31 |
|
| 32 |
-
##
|
| 33 |
|
| 34 |
-
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
### Framework versions
|
| 40 |
|
| 41 |
-
|
| 42 |
-
- TRL: 0.24.0
|
| 43 |
-
- Transformers: 4.57.3
|
| 44 |
-
- Pytorch: 2.9.0
|
| 45 |
-
- Datasets: 4.3.0
|
| 46 |
-
- Tokenizers: 0.22.1
|
| 47 |
|
| 48 |
-
##
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
|
| 53 |
-
@article{ethayarajh2024kto,
|
| 54 |
-
title = {{KTO: Model Alignment as Prospect Theoretic Optimization}},
|
| 55 |
-
author = {Kawin Ethayarajh and Winnie Xu and Niklas Muennighoff and Dan Jurafsky and Douwe Kiela},
|
| 56 |
-
year = 2024,
|
| 57 |
-
eprint = {arXiv:2402.01306},
|
| 58 |
-
}
|
| 59 |
-
```
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
|
| 67 |
-
year = 2020,
|
| 68 |
-
journal = {GitHub repository},
|
| 69 |
-
publisher = {GitHub},
|
| 70 |
-
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 71 |
-
}
|
| 72 |
-
```
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: peft
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: unsloth/mistral-7b-v0.3-bnb-4bit
|
| 5 |
tags:
|
| 6 |
- base_model:adapter:unsloth/mistral-7b-v0.3-bnb-4bit
|
| 7 |
- kto
|
|
|
|
| 9 |
- transformers
|
| 10 |
- trl
|
| 11 |
- unsloth
|
|
|
|
| 12 |
pipeline_tag: text-generation
|
| 13 |
+
model-index:
|
| 14 |
+
- name: kto_simplification_balanced
|
| 15 |
+
results: []
|
| 16 |
---
|
| 17 |
|
| 18 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 19 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 20 |
|
| 21 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/ioakeime-aristotle-university-of-thessaloniki/kto_smiplification_balanced/runs/bpfxv7y5)
|
| 22 |
+
# kto_simplification_balanced
|
| 23 |
|
| 24 |
+
This model is a fine-tuned version of [unsloth/mistral-7b-v0.3-bnb-4bit](https://huggingface.co/unsloth/mistral-7b-v0.3-bnb-4bit) on an unknown dataset.
|
| 25 |
|
| 26 |
+
## Model description
|
|
|
|
| 27 |
|
| 28 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
## Intended uses & limitations
|
| 31 |
|
| 32 |
+
More information needed
|
| 33 |
|
| 34 |
+
## Training and evaluation data
|
| 35 |
|
| 36 |
+
More information needed
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
## Training procedure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
### Training hyperparameters
|
| 41 |
|
| 42 |
+
The following hyperparameters were used during training:
|
| 43 |
+
- learning_rate: 0.0001
|
| 44 |
+
- train_batch_size: 2
|
| 45 |
+
- eval_batch_size: 4
|
| 46 |
+
- seed: 3407
|
| 47 |
+
- gradient_accumulation_steps: 16
|
| 48 |
+
- total_train_batch_size: 32
|
| 49 |
+
- optimizer: Use paged_adamw_32bit with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 50 |
+
- lr_scheduler_type: cosine
|
| 51 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 52 |
+
- num_epochs: 3
|
| 53 |
|
| 54 |
+
### Framework versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
+
- PEFT 0.18.0
|
| 57 |
+
- Transformers 4.57.3
|
| 58 |
+
- Pytorch 2.9.0+cu128
|
| 59 |
+
- Datasets 4.3.0
|
| 60 |
+
- Tokenizers 0.22.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|