hf-transformers-bot commited on
Commit
5eed2af
·
verified ·
1 Parent(s): f786959

Update tiny models for FalconH1Model

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{bos_token}}
2
+ {%- if tools %}
3
+ {{- '<|im_start|>system\n' }}
4
+ {%- if messages[0].role == 'system' %}
5
+ {{- messages[0].content + '\n\n' }}
6
+ {%- endif %}
7
+ {{- "You are a function calling AI model. You are provided with function signature within <tools> </tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.\n<tools>\n" }}
8
+ {%- for tool in tools %}[{{- tool | tojson }}]{%- endfor %}
9
+ {{- "\n</tools>\nFor each function call, return a json object with function name and arguments within <tool_call> </tool_call> tags with the following schema:\n<tool_call>\n{'arguments': <args-dict>, 'name': <function-name>}\n</tool_call>\n" }}
10
+ {%- else %}
11
+ {%- if messages[0].role == 'system' %}
12
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
13
+ {%- endif %}
14
+ {%- endif %}{% for message in messages %}{%- if message.role != 'system' %}{{'<|im_start|>' + message['role'] + '
15
+ ' + message['content'] + '<|im_end|>' + '
16
+ '}}{%- endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
17
+ ' }}{% endif %}
config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FalconH1Model"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attention_in_multiplier": 1.0,
8
+ "attention_out_multiplier": 1.0,
9
+ "attn_layer_indices": [
10
+ 1,
11
+ 3
12
+ ],
13
+ "attn_rotary_emb": 8,
14
+ "bos_token_id": 17,
15
+ "dtype": "float32",
16
+ "embedding_multiplier": 1.0,
17
+ "eos_token_id": 11,
18
+ "hidden_act": "silu",
19
+ "hidden_size": 32,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 64,
22
+ "key_multiplier": 1.0,
23
+ "lm_head_multiplier": 1.0,
24
+ "mamba_chunk_size": 16,
25
+ "mamba_conv_bias": true,
26
+ "mamba_d_conv": 4,
27
+ "mamba_d_head": 64,
28
+ "mamba_d_ssm": 1024,
29
+ "mamba_d_state": 16,
30
+ "mamba_expand": 2,
31
+ "mamba_n_groups": 1,
32
+ "mamba_n_heads": 16,
33
+ "mamba_norm_before_gate": true,
34
+ "mamba_proj_bias": false,
35
+ "mamba_rms_norm": false,
36
+ "max_position_embeddings": 512,
37
+ "mlp_bias": false,
38
+ "mlp_multipliers": [
39
+ 1.0,
40
+ 1.0
41
+ ],
42
+ "model_type": "falcon_h1",
43
+ "num_attention_heads": 4,
44
+ "num_hidden_layers": 4,
45
+ "num_key_value_heads": 2,
46
+ "num_logits_to_keep": 1,
47
+ "pad_token_id": 65536,
48
+ "projectors_bias": false,
49
+ "rms_norm_eps": 1e-05,
50
+ "rope_parameters": {
51
+ "rope_theta": 10000.0,
52
+ "rope_type": "default"
53
+ },
54
+ "ssm_in_multiplier": 1.0,
55
+ "ssm_multipliers": [
56
+ 1.0,
57
+ 1.0,
58
+ 1.0,
59
+ 1.0,
60
+ 1.0
61
+ ],
62
+ "ssm_out_multiplier": 1.0,
63
+ "tie_word_embeddings": false,
64
+ "time_step_limit": [
65
+ 0.0,
66
+ {
67
+ "__float__": "Infinity"
68
+ }
69
+ ],
70
+ "transformers_version": "5.16.0.dev0",
71
+ "use_cache": true,
72
+ "vocab_size": 65537
73
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:984b23fe505c7c69f1101ff07c5da4b37dc72471d27a122f42b31d37d6bc2fa7
3
+ size 10226472
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|end_of_text|>",
6
+ "is_local": true,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 512,
13
+ "pad_token": "<pad>",
14
+ "tokenizer_class": "TokenizersBackend"
15
+ }