Text Generation
Transformers
PyTorch
mistral
Not-For-All-Audiences
nsfw
conversational
text-generation-inference
Inference Endpoints
Norquinal commited on
Commit
a6f99ea
1 Parent(s): 9fef858

Upload 6 files

Browse files
config (1).json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.1",
3
+ "architectures": [
4
+ "MistralForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 4096,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 14336,
12
+ "max_position_embeddings": 32768,
13
+ "model_type": "mistral",
14
+ "num_attention_heads": 32,
15
+ "num_hidden_layers": 32,
16
+ "num_key_value_heads": 8,
17
+ "rms_norm_eps": 1e-05,
18
+ "rope_theta": 10000.0,
19
+ "sliding_window": 4096,
20
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.34.0.dev0",
23
+ "use_cache": false,
24
+ "vocab_size": 32000
25
+ }
pytorch_model.bin.index.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "metadata": {
3
- "total_size": 14483464192
4
  },
5
  "weight_map": {
6
  "lm_head.weight": "pytorch_model-00002-of-00002.bin",
@@ -131,11 +131,11 @@
131
  "model.layers.20.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
132
  "model.layers.20.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin",
133
  "model.layers.20.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin",
134
- "model.layers.21.input_layernorm.weight": "pytorch_model-00001-of-00002.bin",
135
- "model.layers.21.mlp.down_proj.weight": "pytorch_model-00001-of-00002.bin",
136
  "model.layers.21.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
137
- "model.layers.21.mlp.up_proj.weight": "pytorch_model-00001-of-00002.bin",
138
- "model.layers.21.post_attention_layernorm.weight": "pytorch_model-00001-of-00002.bin",
139
  "model.layers.21.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin",
140
  "model.layers.21.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
141
  "model.layers.21.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin",
@@ -145,10 +145,10 @@
145
  "model.layers.22.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
146
  "model.layers.22.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
147
  "model.layers.22.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
148
- "model.layers.22.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin",
149
- "model.layers.22.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
150
- "model.layers.22.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin",
151
- "model.layers.22.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin",
152
  "model.layers.23.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
153
  "model.layers.23.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
154
  "model.layers.23.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
 
1
  {
2
  "metadata": {
3
+ "total_size": 15008284672
4
  },
5
  "weight_map": {
6
  "lm_head.weight": "pytorch_model-00002-of-00002.bin",
 
131
  "model.layers.20.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
132
  "model.layers.20.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin",
133
  "model.layers.20.self_attn.v_proj.weight": "pytorch_model-00001-of-00002.bin",
134
+ "model.layers.21.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
135
+ "model.layers.21.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
136
  "model.layers.21.mlp.gate_proj.weight": "pytorch_model-00001-of-00002.bin",
137
+ "model.layers.21.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
138
+ "model.layers.21.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
139
  "model.layers.21.self_attn.k_proj.weight": "pytorch_model-00001-of-00002.bin",
140
  "model.layers.21.self_attn.o_proj.weight": "pytorch_model-00001-of-00002.bin",
141
  "model.layers.21.self_attn.q_proj.weight": "pytorch_model-00001-of-00002.bin",
 
145
  "model.layers.22.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
146
  "model.layers.22.mlp.up_proj.weight": "pytorch_model-00002-of-00002.bin",
147
  "model.layers.22.post_attention_layernorm.weight": "pytorch_model-00002-of-00002.bin",
148
+ "model.layers.22.self_attn.k_proj.weight": "pytorch_model-00002-of-00002.bin",
149
+ "model.layers.22.self_attn.o_proj.weight": "pytorch_model-00002-of-00002.bin",
150
+ "model.layers.22.self_attn.q_proj.weight": "pytorch_model-00002-of-00002.bin",
151
+ "model.layers.22.self_attn.v_proj.weight": "pytorch_model-00002-of-00002.bin",
152
  "model.layers.23.input_layernorm.weight": "pytorch_model-00002-of-00002.bin",
153
  "model.layers.23.mlp.down_proj.weight": "pytorch_model-00002-of-00002.bin",
154
  "model.layers.23.mlp.gate_proj.weight": "pytorch_model-00002-of-00002.bin",
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "</s>",
5
+ "unk_token": "<unk>"
6
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": true,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": true,
16
+ "normalized": false,
17
+ "rstrip": true,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": true,
24
+ "normalized": false,
25
+ "rstrip": true,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "chat_template": "{{ bos_token }}{% 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'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": null,
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "tokenizer_file": "/workspace/.cache/hf/models--mistralai--Mistral-7B-Instruct-v0.1/snapshots/d635d39671aaceec5ef84b745bc21625b324b7f8/tokenizer.json",
42
+ "trust_remote_code": false,
43
+ "unk_token": "<unk>",
44
+ "use_default_system_prompt": true,
45
+ "use_fast": true
46
+ }