GIGAParviz commited on
Commit
9a829bf
·
verified ·
1 Parent(s): 90a84f2

Upload model trained with Unsloth

Browse files

Upload model trained with Unsloth 2x faster

chat_template.jinja CHANGED
@@ -1,45 +1 @@
1
-
2
- {%- for message in messages %}
3
- {#-- Validate role is a stringified integer --#}
4
- {%- if not message['role'] is string or not message['role'].isdigit() %}
5
- {{- raise_exception("The role must be an integer or a stringified integer (e.g. '0') designating the speaker id") }}
6
- {%- endif %}
7
-
8
- {#-- Validate content is a list --#}
9
- {%- set content = message['content'] %}
10
- {%- if content is not iterable or content is string %}
11
- {{- raise_exception("The content must be a list") }}
12
- {%- endif %}
13
-
14
- {#-- Collect content types --#}
15
- {%- set content_types = content | map(attribute='type') | list %}
16
- {%- set is_last = loop.last %}
17
-
18
- {#-- Last message validation --#}
19
- {%- if is_last %}
20
- {%- if 'text' not in content_types %}
21
- {{- raise_exception("The last message must include one item of type 'text'") }}
22
- {%- elif (content_types | select('equalto', 'text') | list | length > 1) or (content_types | select('equalto', 'audio') | list | length > 1) %}
23
- {{- raise_exception("At most two items are allowed in the last message: one 'text' and one 'audio'") }}
24
- {%- endif %}
25
-
26
- {#-- All other messages validation --#}
27
- {%- else %}
28
- {%- if content_types | select('equalto', 'text') | list | length != 1
29
- or content_types | select('equalto', 'audio') | list | length != 1 %}
30
- {{- raise_exception("Each message (except the last) must contain exactly one 'text' and one 'audio' item") }}
31
- {%- elif content_types | reject('in', ['text', 'audio']) | list | length > 0 %}
32
- {{- raise_exception("Only 'text' and 'audio' types are allowed in content") }}
33
- {%- endif %}
34
- {%- endif %}
35
- {%- endfor %}
36
-
37
- {%- for message in messages %}
38
- {{- bos_token }}
39
- {{- '[' + message['role'] + ']' }}
40
- {{- message['content'][0]['text'] }}
41
- {{- eos_token }}
42
- {%- if message['content']|length > 1 %}
43
- {{- '<|AUDIO|><|audio_eos|>' }}
44
- {%- endif %}
45
- {%- endfor %}
 
1
+ outetts-1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
special_tokens_map.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:529d18ee0f18a8a446ae0b4310c6675823231b366a7ea3fddfc488cf7f2277d6
3
- size 17210149
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec54a55e3c6fc7318ea02cbd1a6eb1fb180bff1b58acbf068504a25f1b407b7b
3
+ size 18366636
tokenizer_config.json CHANGED
The diff for this file is too large to render. See raw diff