29thDay commited on
Commit
2b8cd7e
·
verified ·
1 Parent(s): 66a418a

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: other
4
+ base_model: tiiuae/Falcon3-1B-Instruct
5
+ tags:
6
+ - base_model:adapter:tiiuae/Falcon3-1B-Instruct
7
+ - transformers
8
+ pipeline_tag: text-generation
9
+ model-index:
10
+ - name: Falcon3-1B-Instruct-tuned
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # Falcon3-1B-Instruct-tuned
18
+
19
+ This model is a fine-tuned version of [tiiuae/Falcon3-1B-Instruct](https://huggingface.co/tiiuae/Falcon3-1B-Instruct) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.7228
22
+ - Perplexity: 5.6001
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 0.003
42
+ - train_batch_size: 12
43
+ - eval_batch_size: 12
44
+ - seed: 42
45
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - num_epochs: 3
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Perplexity |
52
+ |:-------------:|:------:|:----:|:---------------:|:----------:|
53
+ | No log | 0 | 0 | 3.5178 | 33.7116 |
54
+ | No log | 0.6011 | 333 | 1.8889 | 6.6122 |
55
+ | 1.9189 | 1.2022 | 666 | 1.8092 | 6.1057 |
56
+ | 1.9189 | 1.8032 | 999 | 1.7672 | 5.8541 |
57
+ | 1.7617 | 2.4043 | 1332 | 1.7440 | 5.7203 |
58
+
59
+
60
+ ### Framework versions
61
+
62
+ - PEFT 0.16.0
63
+ - Transformers 4.54.1
64
+ - Pytorch 2.7.1+cu128
65
+ - Datasets 4.0.0
66
+ - Tokenizers 0.21.4
adapter_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": "tiiuae/Falcon3-1B-Instruct",
4
+ "encoder_dropout": 0.0,
5
+ "encoder_hidden_size": 128,
6
+ "encoder_num_layers": 2,
7
+ "encoder_reparameterization_type": "MLP",
8
+ "inference_mode": true,
9
+ "num_attention_heads": 8,
10
+ "num_layers": 18,
11
+ "num_transformer_submodules": 1,
12
+ "num_virtual_tokens": 20,
13
+ "peft_type": "P_TUNING",
14
+ "revision": null,
15
+ "task_type": "CAUSAL_LM",
16
+ "token_dim": 2048
17
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c947cf37af31eaafbb0fc2939cd2361a1bdebcf3228c8cd6d301abcf17dfe710
3
+ size 163960
chat_template.jinja ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|system|>\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- set remaining_messages = messages[1:] %}
6
+ {%- else %}
7
+ {%- set remaining_messages = messages %}
8
+ {%- endif %}
9
+ {{- 'You are a Falcon assistant skilled in function calling. You are helpful, respectful, and concise.\n\n# Tools\n\nYou have access to the following functions. You MUST use them to answer questions when needed. For each function call, you MUST return a JSON object inside <tool_call></tool_call> tags.\n\n<tools>' + tools|tojson(indent=2) + '</tools>\n\n# Output Format\n\nYour response MUST follow this format when making function calls:\n<tool_call>\n[\n {"name": "function_name", "arguments": {"arg1": "value1", "arg2": "value2"}},\n {"name": "another_function", "arguments": {"arg": "value"}}\n]\n</tool_call>\nIf no function calls are needed, respond normally without the tool_call tags.\n' }}
10
+ {%- for message in remaining_messages %}
11
+ {%- if message['role'] == 'user' %}
12
+ {{- '<|user|>\n' + message['content'] + '\n' }}
13
+ {%- elif message['role'] == 'assistant' %}
14
+ {%- if message.content %}
15
+ {{- '<|assistant|>\n' + message['content'] }}
16
+ {%- endif %}
17
+ {%- if message.tool_calls %}
18
+ {{- '\n<tool_call>\n' }}
19
+ {{- message.tool_calls|tojson(indent=2) }}
20
+ {{- '\n</tool_call>' }}
21
+ {%- endif %}
22
+ {{- eos_token + '\n' }}
23
+ {%- elif message['role'] == 'tool' %}
24
+ {{- '<|assistant|>\n<tool_response>\n' + message['content'] + '\n</tool_response>\n' }}
25
+ {%- endif %}
26
+ {%- endfor %}
27
+ {{- '<|assistant|>\n' if add_generation_prompt }}
28
+ {%- else %}
29
+ {%- for message in messages %}
30
+ {%- if message['role'] == 'system' %}
31
+ {{- '<|system|>\n' + message['content'] + '\n' }}
32
+ {%- elif message['role'] == 'user' %}
33
+ {{- '<|user|>\n' + message['content'] + '\n' }}
34
+ {%- elif message['role'] == 'assistant' %}
35
+ {%- if not loop.last %}
36
+ {{- '<|assistant|>\n' + message['content'] + eos_token + '\n' }}
37
+ {%- else %}
38
+ {{- '<|assistant|>\n' + message['content'] + eos_token }}
39
+ {%- endif %}
40
+ {%- endif %}
41
+ {%- if loop.last and add_generation_prompt %}
42
+ {{- '<|assistant|>\n' }}
43
+ {%- endif %}
44
+ {%- endfor %}
45
+ {%- endif %}
special_tokens_map.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ ">>TITLE<<",
4
+ ">>ABSTRACT<<",
5
+ ">>INTRODUCTION<<",
6
+ ">>SUMMARY<<",
7
+ ">>COMMENT<<",
8
+ ">>ANSWER<<",
9
+ ">>QUESTION<<",
10
+ ">>DOMAIN<<",
11
+ ">>EMAIL_ADDRESS<<",
12
+ ">>IP_ADDRESS<<",
13
+ "<|startoftext|>",
14
+ ">>IP_ADDRESS_0<<",
15
+ ">>IP_ADDRESS_1<<",
16
+ ">>IP_ADDRESS_2<<",
17
+ ">>IP_ADDRESS_3<<",
18
+ ">>IP_ADDRESS_4<<",
19
+ ">>IP_ADDRESS_5<<",
20
+ ">>IP_ADDRESS_6<<",
21
+ ">>IP_ADDRESS_7<<",
22
+ ">>IP_ADDRESS_8<<",
23
+ ">>IP_ADDRESS_9<<",
24
+ ">>PASSWORD<<",
25
+ ">>KEY<<"
26
+ ],
27
+ "eos_token": {
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ },
34
+ "pad_token": {
35
+ "content": "<|pad|>",
36
+ "lstrip": false,
37
+ "normalized": false,
38
+ "rstrip": false,
39
+ "single_word": false
40
+ }
41
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d98584e0461e502f549b7bde34f31699e91dd101d049334a5151592f036cf72
3
+ size 5841