nroggendorff commited on
Commit
59a95aa
1 Parent(s): 42e1ff4

End of training

Browse files
README.md CHANGED
@@ -1,70 +1,54 @@
1
  ---
2
- license: mit
3
  base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
4
  tags:
5
- - trl
6
- - sft
 
7
  model-index:
8
- - name: mayo
9
- results: []
10
- datasets:
11
- - nroggendorff/mayo
12
- language:
13
- - en
14
  ---
15
 
16
- # Mayonnaise LLM
 
17
 
18
- Mayo is a language model fine-tuned on the [Mayo dataset](https://huggingface.co/datasets/nroggendorff/mayo) using Supervised Fine-Tuning (SFT) and Teacher Reinforced Learning (TRL) techniques. It is based on the [TinyLlama/TinyLlama-1.1B-Chat-v1.0 model](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0).
19
 
20
- ## Features
21
 
22
- - Utilizes SFT and TRL techniques for improved performance
23
- - Supports English language
24
 
25
- ## Usage
26
 
27
- To use the Mayo LLM, you can load the model using the Hugging Face Transformers library:
28
 
29
- ```python
30
- from transformers import pipeline
31
 
32
- pipe = pipeline("text-generation", model="nroggendorff/mayo")
33
 
34
- question = "What color is the sky?"
35
- conv = [{"role": "system", "content": "You are a very bored real human named Noa Roggendorff."}, {"role": "user", "content": question}]
36
 
37
- response = pipe(conv, max_new_tokens=2048)[0]['generated_text'][-1]['content']
38
- print(response)
39
- ```
40
 
41
- To use the model with quantization:
42
 
43
- ```python
44
- from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
45
- import torch
 
 
 
 
 
46
 
47
- bnb_config = BitsAndBytesConfig(
48
- load_in_4bit=True,
49
- bnb_4bit_use_double_quant=True,
50
- bnb_4bit_quant_type="nf4",
51
- bnb_4bit_compute_dtype=torch.bfloat16
52
- )
53
 
54
- model_id = "nroggendorff/mayo"
55
 
56
- tokenizer = AutoTokenizer.from_pretrained(model_id)
57
- model = AutoModelForCausalLM.from_pretrained(model_id, quantization_config=bnb_config)
58
 
59
- prompt = "<|user|>What color is the sky?</s>"
60
- inputs = tokenizer(prompt, return_tensors="pt")
61
 
62
- outputs = model.generate(**inputs, max_new_tokens=10)
63
-
64
- generated_text = tokenizer.batch_decode(outputs)[0]
65
- print(generated_text)
66
- ```
67
-
68
- ## License
69
-
70
- This project is licensed under the MIT License.
 
1
  ---
2
+ license: apache-2.0
3
  base_model: TinyLlama/TinyLlama-1.1B-Chat-v1.0
4
  tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
  model-index:
9
+ - name: mayo
10
+ results: []
 
 
 
 
11
  ---
12
 
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
 
16
+ # mayo
17
 
18
+ This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0) on an unknown dataset.
19
 
20
+ ## Model description
 
21
 
22
+ More information needed
23
 
24
+ ## Intended uses & limitations
25
 
26
+ More information needed
 
27
 
28
+ ## Training and evaluation data
29
 
30
+ More information needed
 
31
 
32
+ ## Training procedure
 
 
33
 
34
+ ### Training hyperparameters
35
 
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 0.0001
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 16
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - training_steps: 2800
44
 
45
+ ### Training results
 
 
 
 
 
46
 
 
47
 
 
 
48
 
49
+ ### Framework versions
 
50
 
51
+ - Transformers 4.39.3
52
+ - Pytorch 2.1.2
53
+ - Datasets 2.18.0
54
+ - Tokenizers 0.15.2
 
 
 
 
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5278f46e22c27a62d6c4ee7f329a16bdab2ceff2a7e63bb2f2c6fd1543317bcb
3
  size 4400216536
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f62e9f0760df0a57e2adc0649781d69bf57cbf44e9df7b1f707d1ba1ecd4d0d9
3
  size 4400216536
runs/May31_17-37-23_c9e6c5b5cc52/events.out.tfevents.1717177066.c9e6c5b5cc52.34.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1e4c9a9456f6c97e05bb0385e9edbade998d5014872e2a5efcdf4ce061b6ef2
3
+ size 4639
runs/May31_17-38-33_c9e6c5b5cc52/events.out.tfevents.1717177118.c9e6c5b5cc52.34.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e8912ef615eac711c9f84502d529d586526c6e89a4212f87b6b0cb85a6f2fbe
3
+ size 6049
tokenizer.json CHANGED
@@ -1,11 +1,6 @@
1
  {
2
  "version": "1.0",
3
- "truncation": {
4
- "direction": "Right",
5
- "max_length": 2048,
6
- "strategy": "LongestFirst",
7
- "stride": 0
8
- },
9
  "padding": null,
10
  "added_tokens": [
11
  {
 
1
  {
2
  "version": "1.0",
3
+ "truncation": null,
 
 
 
 
 
4
  "padding": null,
5
  "added_tokens": [
6
  {
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bf4a078541af5d6fe7b61a31b42e7811aa2944ce63cdf1004eaaaacc3fb23f58
3
  size 4920
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b099e321dc66efe84c22bcb19968019ade0421834e952fa5298ad6b7ed352319
3
  size 4920