Instructions to use gsantopaolo/openchat_3.5_minecraft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gsantopaolo/openchat_3.5_minecraft with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gsantopaolo/openchat_3.5_minecraft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files
README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: openchat/openchat_3.5
|
| 3 |
+
library_name: transformers
|
| 4 |
+
model_name: openchat_3.5_minecraft
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- trl
|
| 8 |
+
- sft
|
| 9 |
+
licence: license
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Model Card for openchat_3.5_minecraft
|
| 13 |
+
|
| 14 |
+
This model is a fine-tuned version of [openchat/openchat_3.5](https://huggingface.co/openchat/openchat_3.5).
|
| 15 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 16 |
+
|
| 17 |
+
## Quick start
|
| 18 |
+
|
| 19 |
+
```python
|
| 20 |
+
from transformers import pipeline
|
| 21 |
+
|
| 22 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 23 |
+
generator = pipeline("text-generation", model="gsantopaolo/openchat_3.5_minecraft", device="cuda")
|
| 24 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 25 |
+
print(output["generated_text"])
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Training procedure
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
This model was trained with SFT.
|
| 34 |
+
|
| 35 |
+
### Framework versions
|
| 36 |
+
|
| 37 |
+
- TRL: 0.15.0
|
| 38 |
+
- Transformers: 4.46.3
|
| 39 |
+
- Pytorch: 2.4.1
|
| 40 |
+
- Datasets: 3.1.0
|
| 41 |
+
- Tokenizers: 0.20.3
|
| 42 |
+
|
| 43 |
+
## Citations
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
Cite TRL as:
|
| 48 |
+
|
| 49 |
+
```bibtex
|
| 50 |
+
@misc{vonwerra2022trl,
|
| 51 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 52 |
+
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édec},
|
| 53 |
+
year = 2020,
|
| 54 |
+
journal = {GitHub repository},
|
| 55 |
+
publisher = {GitHub},
|
| 56 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 57 |
+
}
|
| 58 |
+
```
|
all_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 2.076446432428032e+16,
|
| 3 |
+
"train_loss": 0.35404008832471123,
|
| 4 |
+
"train_runtime": 641.0129,
|
| 5 |
+
"train_samples": 1000,
|
| 6 |
+
"train_samples_per_second": 0.729,
|
| 7 |
+
"train_steps_per_second": 0.045
|
| 8 |
+
}
|
runs/Feb26_23-08-42_Ubuntu-2204-jammy-amd64-base/events.out.tfevents.1740611328.Ubuntu-2204-jammy-amd64-base.3880085.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e29b0b56e7230d33dc2e65e0139dffe5b6a7ca0bbf6e027c347f73179bc6b9bc
|
| 3 |
+
size 7265
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"total_flos": 2.076446432428032e+16,
|
| 3 |
+
"train_loss": 0.35404008832471123,
|
| 4 |
+
"train_runtime": 641.0129,
|
| 5 |
+
"train_samples": 1000,
|
| 6 |
+
"train_samples_per_second": 0.729,
|
| 7 |
+
"train_steps_per_second": 0.045
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.9914529914529915,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 29,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.17094017094017094,
|
| 13 |
+
"grad_norm": 9.959121704101562,
|
| 14 |
+
"learning_rate": 0.0002,
|
| 15 |
+
"loss": 0.6806,
|
| 16 |
+
"step": 5
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.3418803418803419,
|
| 20 |
+
"grad_norm": 5.6184234619140625,
|
| 21 |
+
"learning_rate": 0.0002,
|
| 22 |
+
"loss": 0.3159,
|
| 23 |
+
"step": 10
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.5128205128205128,
|
| 27 |
+
"grad_norm": 4.505366802215576,
|
| 28 |
+
"learning_rate": 0.0002,
|
| 29 |
+
"loss": 0.3051,
|
| 30 |
+
"step": 15
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.6837606837606838,
|
| 34 |
+
"grad_norm": 225.4312286376953,
|
| 35 |
+
"learning_rate": 0.0002,
|
| 36 |
+
"loss": 0.2811,
|
| 37 |
+
"step": 20
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.8547008547008547,
|
| 41 |
+
"grad_norm": 2.728710889816284,
|
| 42 |
+
"learning_rate": 0.0002,
|
| 43 |
+
"loss": 0.2533,
|
| 44 |
+
"step": 25
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.9914529914529915,
|
| 48 |
+
"step": 29,
|
| 49 |
+
"total_flos": 2.076446432428032e+16,
|
| 50 |
+
"train_loss": 0.35404008832471123,
|
| 51 |
+
"train_runtime": 641.0129,
|
| 52 |
+
"train_samples_per_second": 0.729,
|
| 53 |
+
"train_steps_per_second": 0.045
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"logging_steps": 5,
|
| 57 |
+
"max_steps": 29,
|
| 58 |
+
"num_input_tokens_seen": 0,
|
| 59 |
+
"num_train_epochs": 1,
|
| 60 |
+
"save_steps": 500,
|
| 61 |
+
"stateful_callbacks": {
|
| 62 |
+
"TrainerControl": {
|
| 63 |
+
"args": {
|
| 64 |
+
"should_epoch_stop": false,
|
| 65 |
+
"should_evaluate": false,
|
| 66 |
+
"should_log": false,
|
| 67 |
+
"should_save": true,
|
| 68 |
+
"should_training_stop": true
|
| 69 |
+
},
|
| 70 |
+
"attributes": {}
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
"total_flos": 2.076446432428032e+16,
|
| 74 |
+
"train_batch_size": 4,
|
| 75 |
+
"trial_name": null,
|
| 76 |
+
"trial_params": null
|
| 77 |
+
}
|