Ba2han commited on
Commit
9d92313
·
verified ·
1 Parent(s): 0383444

Training in progress, step 722

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,18 +1,18 @@
1
  ---
2
- base_model: allenai/Olmo-3-7B-Think-SFT
3
  library_name: transformers
4
  model_name: test-gemini
5
  tags:
6
  - generated_from_trainer
7
- - unsloth
8
  - trl
9
  - sft
 
10
  licence: license
11
  ---
12
 
13
  # Model Card for test-gemini
14
 
15
- This model is a fine-tuned version of [allenai/Olmo-3-7B-Think-SFT](https://huggingface.co/allenai/Olmo-3-7B-Think-SFT).
16
  It has been trained using [TRL](https://github.com/huggingface/trl).
17
 
18
  ## Quick start
@@ -28,7 +28,7 @@ print(output["generated_text"])
28
 
29
  ## Training procedure
30
 
31
- [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/5ebkqf8x)
32
 
33
 
34
  This model was trained with SFT.
 
1
  ---
2
+ base_model: shb777/Llama-3.3-8B-Instruct-128K
3
  library_name: transformers
4
  model_name: test-gemini
5
  tags:
6
  - generated_from_trainer
 
7
  - trl
8
  - sft
9
+ - unsloth
10
  licence: license
11
  ---
12
 
13
  # Model Card for test-gemini
14
 
15
+ This model is a fine-tuned version of [shb777/Llama-3.3-8B-Instruct-128K](https://huggingface.co/shb777/Llama-3.3-8B-Instruct-128K).
16
  It has been trained using [TRL](https://github.com/huggingface/trl).
17
 
18
  ## Quick start
 
28
 
29
  ## Training procedure
30
 
31
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/43fs3x2p)
32
 
33
 
34
  This model was trained with SFT.
adapter_config.json CHANGED
@@ -3,11 +3,11 @@
3
  "alpha_pattern": {},
4
  "arrow_config": null,
5
  "auto_mapping": {
6
- "base_model_class": "Olmo3ForCausalLM",
7
- "parent_library": "transformers.models.olmo3.modeling_olmo3",
8
  "unsloth_fixed": true
9
  },
10
- "base_model_name_or_path": "allenai/Olmo-3-7B-Think-SFT",
11
  "bias": "none",
12
  "corda_config": null,
13
  "ensure_weight_tying": false,
@@ -20,7 +20,7 @@
20
  "layers_pattern": null,
21
  "layers_to_transform": null,
22
  "loftq_config": {},
23
- "lora_alpha": 32,
24
  "lora_bias": false,
25
  "lora_dropout": 0,
26
  "megatron_config": null,
@@ -29,22 +29,22 @@
29
  "peft_type": "LORA",
30
  "peft_version": "0.18.1",
31
  "qalora_group_size": 16,
32
- "r": 256,
33
  "rank_pattern": {},
34
  "revision": null,
35
  "target_modules": [
36
- "up_proj",
37
- "gate_proj",
38
  "k_proj",
39
- "o_proj",
40
- "v_proj",
41
  "q_proj",
42
- "down_proj"
 
 
 
43
  ],
44
  "target_parameters": null,
45
  "task_type": "CAUSAL_LM",
46
  "trainable_token_indices": null,
47
- "use_dora": false,
48
  "use_qalora": false,
49
- "use_rslora": true
50
  }
 
3
  "alpha_pattern": {},
4
  "arrow_config": null,
5
  "auto_mapping": {
6
+ "base_model_class": "LlamaForCausalLM",
7
+ "parent_library": "transformers.models.llama.modeling_llama",
8
  "unsloth_fixed": true
9
  },
10
+ "base_model_name_or_path": "shb777/Llama-3.3-8B-Instruct-128K",
11
  "bias": "none",
12
  "corda_config": null,
13
  "ensure_weight_tying": false,
 
20
  "layers_pattern": null,
21
  "layers_to_transform": null,
22
  "loftq_config": {},
23
+ "lora_alpha": 256,
24
  "lora_bias": false,
25
  "lora_dropout": 0,
26
  "megatron_config": null,
 
29
  "peft_type": "LORA",
30
  "peft_version": "0.18.1",
31
  "qalora_group_size": 16,
32
+ "r": 128,
33
  "rank_pattern": {},
34
  "revision": null,
35
  "target_modules": [
 
 
36
  "k_proj",
37
+ "down_proj",
 
38
  "q_proj",
39
+ "o_proj",
40
+ "up_proj",
41
+ "gate_proj",
42
+ "v_proj"
43
  ],
44
  "target_parameters": null,
45
  "task_type": "CAUSAL_LM",
46
  "trainable_token_indices": null,
47
+ "use_dora": true,
48
  "use_qalora": false,
49
+ "use_rslora": false
50
  }
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:75f053d90c5e7c0b8df0d2d7b5c520c0a3f29632cf5e9b62a6fa24b0263385e7
3
- size 2558587064
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b39753ef7b2aee2833462cb36c5ff539bfbc532dc2b021aaa85cf764fec84a8
3
+ size 1347775120
chat_template.jinja CHANGED
@@ -1,16 +1,105 @@
1
- {% set has_system = messages|selectattr('role', 'equalto', 'system')|list|length > 0 %}{% if not has_system %}{{ '<|im_start|>system
2
- You are Olmo, a helpful AI assistant built by Ai2. Your date cutoff is December 2024, and your model weights are available at https://huggingface.co/allenai.<|im_end|>
3
- ' }}{% endif %}{% for message in messages %}{% if message['role'] == 'system' %}{{ '<|im_start|>system
4
- ' + message['content'] }}{% if message.get('functions', none) is not none %}{{ ' <functions>' + message['functions'] + '</functions><|im_end|>
5
- ' }}{% else %}{{ ' You do not currently have access to any functions. <functions></functions><|im_end|>
6
- ' }}{% endif %}{% elif message['role'] == 'user' %}{% if message.get('functions', none) is not none %}{{ '<|im_start|>user
7
- ' + message['content'] + '
8
- ' + '<functions>' + message['functions'] + '</functions><|im_end|>
9
- ' }}{% else %}{{ '<|im_start|>user
10
- ' + message['content'] + '<|im_end|>
11
- ' }}{% endif %}{% elif message['role'] == 'assistant' %}{{ '<|im_start|>assistant
12
- ' }}{% if message.get('content', none) is not none %}{{ message['content'] }}{% endif %}{% if message.get('function_calls', none) is not none %}{{ '<function_calls>' + message['function_calls'] + '</function_calls>' }}{% endif %}{% if not loop.last %}{{ '<|im_end|>' + '
13
- ' }}{% else %}{{ eos_token }}{% endif %}{% elif message['role'] == 'environment' %}{{ '<|im_start|>environment
14
- ' + message['content'] + '<|im_end|>
15
- ' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|im_start|>assistant
16
- <think>' }}{% endif %}{% endfor %}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- set date_string = "30 Dec 2025" %}
10
+ {%- endif %}
11
+ {%- if not tools is defined %}
12
+ {%- set tools = none %}
13
+ {%- endif %}
14
+ {#- This block extracts the system message, so we can slot it into the right place. #}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {%- set system_message = messages[0]['content']|trim %}
17
+ {%- set messages = messages[1:] %}
18
+ {%- else %}
19
+ {%- set system_message = "" %}
20
+ {%- endif %}
21
+ {#- System message + builtin tools #}
22
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
23
+ {%- if builtin_tools is defined or tools is not none %}
24
+ {{- "Environment: ipython\n" }}
25
+ {%- endif %}
26
+ {%- if builtin_tools is defined %}
27
+ {{- "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
28
+ {%- endif %}
29
+ {{- "Cutting Knowledge Date: December 2023\n" }}
30
+ {{- "Today Date: " + date_string + "\n\n" }}
31
+ {%- if tools is not none and not tools_in_user_message %}
32
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
33
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
34
+ {{- "Do not use variables.\n\n" }}
35
+ {%- for t in tools %}
36
+ {{- t | tojson(indent=4) }}
37
+ {{- "\n\n" }}
38
+ {%- endfor %}
39
+ {%- endif %}
40
+ {{- system_message }}
41
+ {{- "<|eot_id|>" }}
42
+ {#- Custom tools are passed in a user message with some extra guidance #}
43
+ {%- if tools_in_user_message and not tools is none %}
44
+ {#- Extract the first user message so we can plug it in here #}
45
+ {%- if messages | length != 0 %}
46
+ {%- set first_user_message = messages[0]['content']|trim %}
47
+ {%- set messages = messages[1:] %}
48
+ {%- else %}
49
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
50
+ {%- endif %}
51
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
52
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
53
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
54
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
55
+ {{- "Do not use variables.\n\n" }}
56
+ {%- for t in tools %}
57
+ {{- t | tojson(indent=4) }}
58
+ {{- "\n\n" }}
59
+ {%- endfor %}
60
+ {{- first_user_message + "<|eot_id|>"}}
61
+ {%- endif %}
62
+ {%- for message in messages %}
63
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
64
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
65
+ {%- elif 'tool_calls' in message %}
66
+ {%- if not message.tool_calls|length == 1 %}
67
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
68
+ {%- endif %}
69
+ {%- set tool_call = message.tool_calls[0].function %}
70
+ {%- if builtin_tools is defined and tool_call.name in builtin_tools %}
71
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
72
+ {{- "<|python_tag|>" + tool_call.name + ".call(" }}
73
+ {%- for arg_name, arg_val in tool_call.arguments | items %}
74
+ {{- arg_name + '="' + arg_val + '"' }}
75
+ {%- if not loop.last %}
76
+ {{- ", " }}
77
+ {%- endif %}
78
+ {%- endfor %}
79
+ {{- ")" }}
80
+ {%- else %}
81
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
82
+ {{- '{"name": "' + tool_call.name + '", ' }}
83
+ {{- '"parameters": ' }}
84
+ {{- tool_call.arguments | tojson }}
85
+ {{- "}" }}
86
+ {%- endif %}
87
+ {%- if builtin_tools is defined %}
88
+ {#- This means we're in ipython mode #}
89
+ {{- "<|eom_id|>" }}
90
+ {%- else %}
91
+ {{- "<|eot_id|>" }}
92
+ {%- endif %}
93
+ {%- elif message.role == "tool" or message.role == "ipython" %}
94
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
95
+ {%- if message.content is mapping or message.content is iterable %}
96
+ {{- message.content | tojson }}
97
+ {%- else %}
98
+ {{- message.content }}
99
+ {%- endif %}
100
+ {{- "<|eot_id|>" }}
101
+ {%- endif %}
102
+ {%- endfor %}
103
+ {%- if add_generation_prompt %}
104
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
105
+ {%- endif %}
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,16 +1,17 @@
1
  {
2
- "add_bos_token": false,
3
- "add_prefix_space": false,
4
  "additional_special_tokens": null,
5
  "backend": "tokenizers",
6
- "bos_token": "<|endoftext|>",
7
- "clean_up_tokenization_spaces": false,
8
- "eos_token": "<|endoftext|>",
9
- "errors": "replace",
10
  "is_local": false,
11
- "model_max_length": 65536,
12
- "pad_token": "<|pad|>",
 
 
 
 
 
13
  "padding_side": "right",
14
- "tokenizer_class": "GPT2Tokenizer",
15
- "unk_token": "<|endoftext|>"
16
  }
 
1
  {
 
 
2
  "additional_special_tokens": null,
3
  "backend": "tokenizers",
4
+ "bos_token": "<|begin_of_text|>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "eos_token": "<|eot_id|>",
 
7
  "is_local": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "model_specific_special_tokens": {},
14
+ "pad_token": "<|reserved_special_token_250|>",
15
  "padding_side": "right",
16
+ "tokenizer_class": "TokenizersBackend"
 
17
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3f0b881938c4f26525d928b5db0ab53ebf182b2789931293393f5694f33d0efd
3
  size 5713
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c30167f40d7b7a967ef44dde73679b16467d012fe5bd5a7b809f4da605df0cb
3
  size 5713