Omaratef3221 commited on
Commit
73b8047
1 Parent(s): e2e47e3

omaratef3221/Qwen2-0.5B-Instruct-SQL-generator

Browse files
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: apache-2.0
3
- base_model: core42/jais-13b
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 [core42/jais-13b](https://huggingface.co/core42/jais-13b) on the None dataset.
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": "core42/jais-13b",
3
- "activation_function": "swiglu",
4
  "architectures": [
5
- "JAISLMHeadModel"
6
  ],
7
- "attn_pdrop": 0.0,
8
- "auto_map": {
9
- "AutoConfig": "core42/jais-13b--configuration_jais.JAISConfig",
10
- "AutoModel": "core42/jais-13b--modeling_jais.JAISModel",
11
- "AutoModelForCausalLM": "core42/jais-13b--modeling_jais.JAISLMHeadModel",
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
- "layer_norm_epsilon": 1e-05,
22
- "model_type": "jais",
23
- "n_embd": 5120,
24
- "n_head": 40,
25
- "n_inner": 13653,
26
- "n_layer": 40,
27
- "n_positions": 2048,
28
- "pad_token_id": 0,
29
- "position_embedding_type": "alibi",
30
- "reorder_and_upcast_attn": false,
31
- "resid_pdrop": 0.0,
32
- "scale_attn_by_inverse_layer_idx": false,
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
- "vocab_size": 84992,
39
- "width_scale": 0.11100000000000002
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
- "_from_model_config": true,
3
- "bos_token_id": 0,
4
- "eos_token_id": 0,
5
- "pad_token_id": 0,
 
 
 
 
 
 
 
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": "<|endoftext|>",
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
- "0": {
4
  "content": "<|endoftext|>",
5
  "lstrip": false,
6
  "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  }
11
  },
12
- "clean_up_tokenization_spaces": true,
13
- "eos_token": "<|endoftext|>",
14
- "model_max_length": 2048,
 
 
 
 
 
 
 
15
  "pad_token": "<|endoftext|>",
16
- "tokenizer_class": "PreTrainedTokenizerFast",
17
- "unk_token": "<|endoftext|>"
 
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:fe57307bfab73f687004dcb7d81157d3c8b1fc061ffc6898a77c6d4f2a407c70
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