s-emanuilov commited on
Commit
520bd3f
·
verified ·
1 Parent(s): a844d7e

Model update

Browse files
chat_template.jinja CHANGED
@@ -1,4 +1,8 @@
1
- {{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '
 
 
2
  ' + message['content'] | trim + '<end_of_turn>
3
- ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model
4
- '}}{% endif %}
 
 
 
1
+ {{ bos_token }}{% if messages[0]['role'] == 'system' %}{{'<start_of_turn>user
2
+ ' + messages[0]['content'] | trim + ' ' + messages[1]['content'] | trim + '<end_of_turn>
3
+ '}}{% set messages = messages[2:] %}{% endif %}{% for message in messages %}{% if message['role'] == 'user' %}{{'<start_of_turn>user
4
  ' + message['content'] | trim + '<end_of_turn>
5
+ '}}{% elif message['role'] == 'assistant' %}{{'<start_of_turn>model
6
+ ' + message['content'] | trim + '<end_of_turn>
7
+ ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<start_of_turn>model
8
+ ' }}{% endif %}
config.json CHANGED
@@ -28,7 +28,7 @@
28
  "sliding_window": 4096,
29
  "torch_dtype": "bfloat16",
30
  "transformers_version": "4.52.4",
31
- "unsloth_version": "2025.6.1",
32
  "use_cache": true,
33
  "vocab_size": 256000
34
  }
 
28
  "sliding_window": 4096,
29
  "torch_dtype": "bfloat16",
30
  "transformers_version": "4.52.4",
31
+ "unsloth_version": "2025.6.2",
32
  "use_cache": true,
33
  "vocab_size": 256000
34
  }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4ed8476157661b15d38a4742f2df6715c156d47bd702a8acd1dc39b7788a1cf7
3
  size 4988025760
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f2dc7d68efaaf505e4f26864abfb1ad0e8698c1388c4e3cd3c2634f7186e96d
3
  size 4988025760
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:dcca7d83e9da6e90e3b9065583c4fd762bc0de13ff272df03ac4d16832904ae0
3
  size 240691728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e0244ba64ffa0577f407cf327a1ef674e0da77109f1125f1a1740a209475d56
3
  size 240691728
special_tokens_map.json CHANGED
@@ -1,8 +1,4 @@
1
  {
2
- "additional_special_tokens": [
3
- "<start_of_turn>",
4
- "<end_of_turn>"
5
- ],
6
  "bos_token": {
7
  "content": "<bos>",
8
  "lstrip": false,
@@ -11,7 +7,7 @@
11
  "single_word": false
12
  },
13
  "eos_token": {
14
- "content": "<eos>",
15
  "lstrip": false,
16
  "normalized": false,
17
  "rstrip": false,
 
1
  {
 
 
 
 
2
  "bos_token": {
3
  "content": "<bos>",
4
  "lstrip": false,
 
7
  "single_word": false
8
  },
9
  "eos_token": {
10
+ "content": "<end_of_turn>",
11
  "lstrip": false,
12
  "normalized": false,
13
  "rstrip": false,
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5f7eee611703c5ce5d1eee32d9cdcfe465647b8aff0c1dfb3bed7ad7dbb05060
3
  size 34362873
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95a6ecc0c8b61e4f65249a9da9cf0809371813500854cfee2848a793cbdfb19b
3
  size 34362873
tokenizer_config.json CHANGED
@@ -11,7 +11,7 @@
11
  "special": true
12
  },
13
  "1": {
14
- "content": "<eos>",
15
  "lstrip": false,
16
  "normalized": false,
17
  "rstrip": false,
@@ -859,7 +859,7 @@
859
  "special": true
860
  },
861
  "107": {
862
- "content": "<end_of_turn>",
863
  "lstrip": false,
864
  "normalized": false,
865
  "rstrip": false,
@@ -1995,24 +1995,17 @@
1995
  "special": false
1996
  }
1997
  },
1998
- "additional_special_tokens": [
1999
- "<start_of_turn>",
2000
- "<end_of_turn>"
2001
- ],
2002
  "bos_token": "<bos>",
2003
  "clean_up_tokenization_spaces": false,
2004
- "eos_token": "<eos>",
2005
  "extra_special_tokens": {},
2006
- "max_length": 8192,
2007
  "model_max_length": 8192,
2008
  "pad_token": "<pad>",
2009
- "padding_side": "right",
2010
- "sp_model_kwargs": {},
2011
- "spaces_between_special_tokens": false,
2012
  "stride": 0,
2013
- "tokenizer_class": "GemmaTokenizer",
2014
  "truncation_side": "right",
2015
  "truncation_strategy": "longest_first",
2016
- "unk_token": "<unk>",
2017
- "use_default_system_prompt": false
2018
  }
 
11
  "special": true
12
  },
13
  "1": {
14
+ "content": "<end_of_turn>",
15
  "lstrip": false,
16
  "normalized": false,
17
  "rstrip": false,
 
859
  "special": true
860
  },
861
  "107": {
862
+ "content": "<eos>",
863
  "lstrip": false,
864
  "normalized": false,
865
  "rstrip": false,
 
1995
  "special": false
1996
  }
1997
  },
 
 
 
 
1998
  "bos_token": "<bos>",
1999
  "clean_up_tokenization_spaces": false,
2000
+ "eos_token": "<end_of_turn>",
2001
  "extra_special_tokens": {},
2002
+ "max_length": 1024,
2003
  "model_max_length": 8192,
2004
  "pad_token": "<pad>",
2005
+ "padding_side": "left",
 
 
2006
  "stride": 0,
2007
+ "tokenizer_class": "GemmaTokenizerFast",
2008
  "truncation_side": "right",
2009
  "truncation_strategy": "longest_first",
2010
+ "unk_token": "<unk>"
 
2011
  }