Omaratef3221
commited on
Commit
•
73b8047
1
Parent(s):
e2e47e3
omaratef3221/Qwen2-0.5B-Instruct-SQL-generator
Browse files- README.md +2 -2
- added_tokens.json +5 -0
- config.json +21 -33
- generation_config.json +11 -4
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +5 -8
- tokenizer.json +0 -0
- tokenizer_config.json +31 -6
- training_args.bin +1 -1
- vocab.json +0 -0
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
-
base_model:
|
4 |
tags:
|
5 |
- trl
|
6 |
- sft
|
@@ -15,7 +15,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
15 |
|
16 |
# tmp_trainer
|
17 |
|
18 |
-
This model is a fine-tuned version of [
|
19 |
|
20 |
## Model description
|
21 |
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
base_model: Qwen/Qwen2-0.5B-Instruct
|
4 |
tags:
|
5 |
- trl
|
6 |
- sft
|
|
|
15 |
|
16 |
# tmp_trainer
|
17 |
|
18 |
+
This model is a fine-tuned version of [Qwen/Qwen2-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2-0.5B-Instruct) on an unknown dataset.
|
19 |
|
20 |
## Model description
|
21 |
|
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
config.json
CHANGED
@@ -1,40 +1,28 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"activation_function": "swiglu",
|
4 |
"architectures": [
|
5 |
-
"
|
6 |
],
|
7 |
-
"
|
8 |
-
"
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
"AutoModelForQuestionAnswering": "core42/jais-13b--modeling_jais.JAISForQuestionAnswering",
|
13 |
-
"AutoModelForSequenceClassification": "core42/jais-13b--modeling_jais.JAISForSequenceClassification",
|
14 |
-
"AutoModelForTokenClassification": "core42/jais-13b--modeling_jais.JAISForTokenClassification"
|
15 |
-
},
|
16 |
-
"bos_token_id": 0,
|
17 |
-
"embd_pdrop": 0.0,
|
18 |
-
"embeddings_scale": 14.6,
|
19 |
-
"eos_token_id": 0,
|
20 |
"initializer_range": 0.02,
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
-
"
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
33 |
-
"scale_attn_weights": true,
|
34 |
-
"scale_qk_dot_by_d": true,
|
35 |
-
"torch_dtype": "bfloat16",
|
36 |
"transformers_version": "4.39.0",
|
37 |
"use_cache": true,
|
38 |
-
"
|
39 |
-
"
|
40 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "Qwen/Qwen2-0.5B-Instruct",
|
|
|
3 |
"architectures": [
|
4 |
+
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": 151645,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 896,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 4864,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"max_window_layers": 24,
|
15 |
+
"model_type": "qwen2",
|
16 |
+
"num_attention_heads": 14,
|
17 |
+
"num_hidden_layers": 24,
|
18 |
+
"num_key_value_heads": 2,
|
19 |
+
"rms_norm_eps": 1e-06,
|
20 |
+
"rope_theta": 1000000.0,
|
21 |
+
"sliding_window": 32768,
|
22 |
+
"tie_word_embeddings": true,
|
23 |
+
"torch_dtype": "float32",
|
|
|
|
|
|
|
24 |
"transformers_version": "4.39.0",
|
25 |
"use_cache": true,
|
26 |
+
"use_sliding_window": false,
|
27 |
+
"vocab_size": 151936
|
28 |
}
|
generation_config.json
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"eos_token_id":
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
"transformers_version": "4.39.0"
|
7 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"repetition_penalty": 1.1,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
"transformers_version": "4.39.0"
|
14 |
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf351b1833c25c3388842a0775b20a0a9c82d61472e13adaa8746d735cd273d1
|
3 |
+
size 1976163472
|
special_tokens_map.json
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
2 |
"eos_token": {
|
3 |
-
"content": "<|
|
4 |
"lstrip": false,
|
5 |
"normalized": false,
|
6 |
"rstrip": false,
|
@@ -12,12 +16,5 @@
|
|
12 |
"normalized": false,
|
13 |
"rstrip": false,
|
14 |
"single_word": false
|
15 |
-
},
|
16 |
-
"unk_token": {
|
17 |
-
"content": "<|endoftext|>",
|
18 |
-
"lstrip": false,
|
19 |
-
"normalized": false,
|
20 |
-
"rstrip": false,
|
21 |
-
"single_word": false
|
22 |
}
|
23 |
}
|
|
|
1 |
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
"eos_token": {
|
7 |
+
"content": "<|im_end|>",
|
8 |
"lstrip": false,
|
9 |
"normalized": false,
|
10 |
"rstrip": false,
|
|
|
16 |
"normalized": false,
|
17 |
"rstrip": false,
|
18 |
"single_word": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
}
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
CHANGED
@@ -1,18 +1,43 @@
|
|
1 |
{
|
|
|
2 |
"added_tokens_decoder": {
|
3 |
-
"
|
4 |
"content": "<|endoftext|>",
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
},
|
12 |
-
"
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
"pad_token": "<|endoftext|>",
|
16 |
-
"
|
17 |
-
"
|
|
|
18 |
}
|
|
|
1 |
{
|
2 |
+
"add_prefix_space": false,
|
3 |
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
"content": "<|endoftext|>",
|
6 |
"lstrip": false,
|
7 |
"normalized": false,
|
8 |
"rstrip": false,
|
9 |
"single_word": false,
|
10 |
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
}
|
28 |
},
|
29 |
+
"additional_special_tokens": [
|
30 |
+
"<|im_start|>",
|
31 |
+
"<|im_end|>"
|
32 |
+
],
|
33 |
+
"bos_token": null,
|
34 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|im_end|>",
|
37 |
+
"errors": "replace",
|
38 |
+
"model_max_length": 32768,
|
39 |
"pad_token": "<|endoftext|>",
|
40 |
+
"split_special_tokens": false,
|
41 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
+
"unk_token": null
|
43 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5112
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93dc6cf82224c54f7c029286620bc3dc4f96c3b90fb90be1aaf3aa97913ae4af
|
3 |
size 5112
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|