hf-transformers-bot commited on
Commit
756a2e6
·
verified ·
1 Parent(s): 90be960

Update tiny models for FalconH1ForCausalLM

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,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FalconH1ForCausalLM"
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
+ "is_decoder": true,
23
+ "key_multiplier": 1.0,
24
+ "lm_head_multiplier": 1.0,
25
+ "mamba_chunk_size": 16,
26
+ "mamba_conv_bias": true,
27
+ "mamba_d_conv": 4,
28
+ "mamba_d_head": 64,
29
+ "mamba_d_ssm": 1024,
30
+ "mamba_d_state": 16,
31
+ "mamba_expand": 2,
32
+ "mamba_n_groups": 1,
33
+ "mamba_n_heads": 16,
34
+ "mamba_norm_before_gate": true,
35
+ "mamba_proj_bias": false,
36
+ "mamba_rms_norm": false,
37
+ "max_position_embeddings": 512,
38
+ "mlp_bias": false,
39
+ "mlp_multipliers": [
40
+ 1.0,
41
+ 1.0
42
+ ],
43
+ "model_type": "falcon_h1",
44
+ "num_attention_heads": 4,
45
+ "num_hidden_layers": 4,
46
+ "num_key_value_heads": 2,
47
+ "num_logits_to_keep": 1,
48
+ "pad_token_id": 65536,
49
+ "projectors_bias": false,
50
+ "rms_norm_eps": 1e-05,
51
+ "rope_parameters": {
52
+ "rope_theta": 10000.0,
53
+ "rope_type": "default"
54
+ },
55
+ "ssm_in_multiplier": 1.0,
56
+ "ssm_multipliers": [
57
+ 1.0,
58
+ 1.0,
59
+ 1.0,
60
+ 1.0,
61
+ 1.0
62
+ ],
63
+ "ssm_out_multiplier": 1.0,
64
+ "tie_word_embeddings": false,
65
+ "time_step_limit": [
66
+ 0.0,
67
+ {
68
+ "__float__": "Infinity"
69
+ }
70
+ ],
71
+ "transformers_version": "5.16.0.dev0",
72
+ "use_cache": true,
73
+ "vocab_size": 65537
74
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 17,
4
+ "eos_token_id": 11,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 65536,
8
+ "transformers_version": "5.16.0.dev0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3c9c2146f50b2fc3441ff139a04c057bbddeeadd747a416b059a0a198bb4c23
3
+ size 18615808
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
+ }