santiadavani commited on
Commit
90fc1a2
1 Parent(s): ac67b86

Model save

Browse files
README.md CHANGED
@@ -1,6 +1,5 @@
1
  ---
2
- license: other
3
- base_model: facebook/opt-350m
4
  tags:
5
  - trl
6
  - sft
@@ -17,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  # alpaca-gpt4-conversation-opt-350m
19
 
20
- This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) on the generator dataset.
21
 
22
  ## Model description
23
 
@@ -44,10 +43,6 @@ The following hyperparameters were used during training:
44
  - lr_scheduler_type: linear
45
  - num_epochs: 1
46
 
47
- ### Training results
48
-
49
-
50
-
51
  ### Framework versions
52
 
53
  - Transformers 4.37.2
 
1
  ---
2
+ base_model: meta-llama/Llama-2-7b-chat-hf
 
3
  tags:
4
  - trl
5
  - sft
 
16
 
17
  # alpaca-gpt4-conversation-opt-350m
18
 
19
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the generator dataset.
20
 
21
  ## Model description
22
 
 
43
  - lr_scheduler_type: linear
44
  - num_epochs: 1
45
 
 
 
 
 
46
  ### Framework versions
47
 
48
  - Transformers 4.37.2
adapter_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
- "base_model_name_or_path": "facebook/opt-350m",
5
  "bias": "none",
6
  "fan_in_fan_out": false,
7
  "inference_mode": false,
 
1
  {
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
5
  "bias": "none",
6
  "fan_in_fan_out": false,
7
  "inference_mode": false,
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e89f0f73374c24f68b02a65477bd79cd11c38e588e85d7f2afa7522632ab9e4e
3
- size 799656
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35f73f5a4a53be14f33739d097986bb6a595e65b3d78e3fe752949700a532e5d
3
+ size 4211128
generation_config.json CHANGED
@@ -1,7 +1,10 @@
1
  {
2
- "_from_model_config": true,
3
- "bos_token_id": 2,
4
  "eos_token_id": 2,
5
- "pad_token_id": 1,
 
 
 
6
  "transformers_version": "4.37.2"
7
  }
 
1
  {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
  "eos_token_id": 2,
5
+ "max_length": 4096,
6
+ "pad_token_id": 0,
7
+ "temperature": 0.6,
8
+ "top_p": 0.9,
9
  "transformers_version": "4.37.2"
10
  }
special_tokens_map.json CHANGED
@@ -1,29 +1,23 @@
1
  {
2
  "bos_token": {
3
- "content": "</s>",
4
  "lstrip": false,
5
- "normalized": true,
6
  "rstrip": false,
7
  "single_word": false
8
  },
9
  "eos_token": {
10
  "content": "</s>",
11
  "lstrip": false,
12
- "normalized": true,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": {
17
- "content": "<pad>",
18
- "lstrip": false,
19
- "normalized": true,
20
  "rstrip": false,
21
  "single_word": false
22
  },
 
23
  "unk_token": {
24
- "content": "</s>",
25
  "lstrip": false,
26
- "normalized": true,
27
  "rstrip": false,
28
  "single_word": false
29
  }
 
1
  {
2
  "bos_token": {
3
+ "content": "<s>",
4
  "lstrip": false,
5
+ "normalized": false,
6
  "rstrip": false,
7
  "single_word": false
8
  },
9
  "eos_token": {
10
  "content": "</s>",
11
  "lstrip": false,
12
+ "normalized": false,
 
 
 
 
 
 
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
+ "pad_token": "</s>",
17
  "unk_token": {
18
+ "content": "<unk>",
19
  "lstrip": false,
20
+ "normalized": false,
21
  "rstrip": false,
22
  "single_word": false
23
  }
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json CHANGED
@@ -1,11 +1,19 @@
1
  {
2
  "add_bos_token": true,
3
- "add_prefix_space": false,
4
  "added_tokens_decoder": {
 
 
 
 
 
 
 
 
5
  "1": {
6
- "content": "<pad>",
7
  "lstrip": false,
8
- "normalized": true,
9
  "rstrip": false,
10
  "single_word": false,
11
  "special": true
@@ -13,18 +21,22 @@
13
  "2": {
14
  "content": "</s>",
15
  "lstrip": false,
16
- "normalized": true,
17
  "rstrip": false,
18
  "single_word": false,
19
  "special": true
20
  }
21
  },
22
- "bos_token": "</s>",
23
- "clean_up_tokenization_spaces": true,
 
24
  "eos_token": "</s>",
25
- "errors": "replace",
26
  "model_max_length": 1000000000000000019884624838656,
27
- "pad_token": "<pad>",
28
- "tokenizer_class": "GPT2Tokenizer",
29
- "unk_token": "</s>"
 
 
 
30
  }
 
1
  {
2
  "add_bos_token": true,
3
+ "add_eos_token": false,
4
  "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
  "1": {
14
+ "content": "<s>",
15
  "lstrip": false,
16
+ "normalized": false,
17
  "rstrip": false,
18
  "single_word": false,
19
  "special": true
 
21
  "2": {
22
  "content": "</s>",
23
  "lstrip": false,
24
+ "normalized": false,
25
  "rstrip": false,
26
  "single_word": false,
27
  "special": true
28
  }
29
  },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
  "eos_token": "</s>",
34
+ "legacy": false,
35
  "model_max_length": 1000000000000000019884624838656,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d62756a3d681d08b914ddd87f55e6faffd2245e4e72ebf3f122468fad9facab
3
  size 4728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8c8d4e27ff159ccc9f7a3c409747488f144be76a1eda3861dadb0941b7318d9
3
  size 4728