Jeronymous commited on
Commit
e7e496d
·
1 Parent(s): 582e1fd

Fix BOS (should be added by the tokenizer). Fix EOS (in config.json -> must be <|eot_id|>). Remove spaces that were aded after special tags (so that round-trip tests can pass and some bugs avoided when inferring with the model). More complete generation_config.json

Browse files
Lucie-7B-q4_k_m.gguf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:32ad1ff565d483ec8b6a1d16ad1b64866f7db1203568daebeb5f4d9b0d78682f
3
- size 4068731808
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d41d59729e4e0e21d6bbb41b6d146643cbe46cd49d849fbef8eb9d318255f883
3
+ size 4068731936
config.json CHANGED
@@ -1,82 +1,31 @@
1
  {
2
- "vocab_size": 65024,
3
- "max_position_embeddings": 4096,
 
 
 
 
 
 
 
 
4
  "hidden_size": 4096,
 
5
  "intermediate_size": 12288,
6
- "num_hidden_layers": 32,
 
 
7
  "num_attention_heads": 32,
 
8
  "num_key_value_heads": 8,
9
- "hidden_act": "silu",
10
- "initializer_range": 0.02,
11
- "rms_norm_eps": 1e-05,
12
  "pretraining_tp": 1,
13
- "use_cache": true,
14
- "rope_theta": 20000000,
15
  "rope_scaling": null,
16
- "attention_bias": false,
17
- "attention_dropout": 0.0,
18
- "return_dict": true,
19
- "output_hidden_states": false,
20
- "output_attentions": false,
21
- "torchscript": false,
22
- "torch_dtype": "bfloat16",
23
- "use_bfloat16": false,
24
- "tf_legacy_loss": false,
25
- "pruned_heads": {},
26
  "tie_word_embeddings": false,
27
- "is_encoder_decoder": false,
28
- "is_decoder": false,
29
- "cross_attention_hidden_size": null,
30
- "add_cross_attention": false,
31
- "tie_encoder_decoder": false,
32
- "max_length": 20,
33
- "min_length": 0,
34
- "do_sample": false,
35
- "early_stopping": false,
36
- "num_beams": 1,
37
- "num_beam_groups": 1,
38
- "diversity_penalty": 0.0,
39
- "temperature": 1.0,
40
- "top_k": 50,
41
- "top_p": 1.0,
42
- "typical_p": 1.0,
43
- "repetition_penalty": 1.0,
44
- "length_penalty": 1.0,
45
- "no_repeat_ngram_size": 0,
46
- "encoder_no_repeat_ngram_size": 0,
47
- "bad_words_ids": null,
48
- "num_return_sequences": 1,
49
- "chunk_size_feed_forward": 0,
50
- "output_scores": false,
51
- "return_dict_in_generate": false,
52
- "forced_bos_token_id": null,
53
- "forced_eos_token_id": null,
54
- "remove_invalid_values": false,
55
- "exponential_decay_length_penalty": null,
56
- "suppress_tokens": null,
57
- "begin_suppress_tokens": null,
58
- "architectures": [
59
- "LlamaForCausalLM"
60
- ],
61
- "finetuning_task": null,
62
- "id2label": {
63
- "0": "LABEL_0",
64
- "1": "LABEL_1"
65
- },
66
- "label2id": {
67
- "LABEL_0": 0,
68
- "LABEL_1": 1
69
- },
70
- "tokenizer_class": null,
71
- "prefix": null,
72
- "bos_token_id": 0,
73
- "pad_token_id": 3,
74
- "eos_token_id": 1,
75
- "sep_token_id": null,
76
- "decoder_start_token_id": null,
77
- "task_specific_params": null,
78
- "problem_type": null,
79
- "_name_or_path": "",
80
- "transformers_version": "4.36.1",
81
- "model_type": "llama"
82
- }
 
1
  {
2
+ "_name_or_path": "/data-server/models/text/llm/multilang/Lucie-7B/instruct/llama_instruct/recipe2_fullpipe/base",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 267,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
  "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
  "intermediate_size": 12288,
15
+ "max_position_embeddings": 32000,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
  "num_attention_heads": 32,
19
+ "num_hidden_layers": 32,
20
  "num_key_value_heads": 8,
21
+ "pad_token_id": 3,
 
 
22
  "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
 
24
  "rope_scaling": null,
25
+ "rope_theta": 20000000.0,
 
 
 
 
 
 
 
 
 
26
  "tie_word_embeddings": false,
27
+ "torch_dtype": "bfloat16",
28
+ "transformers_version": "4.46.3",
29
+ "use_cache": true,
30
+ "vocab_size": 65024
31
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
generation_config.json CHANGED
@@ -1,7 +1,9 @@
1
  {
2
- "_from_model_config": true,
3
  "bos_token_id": 0,
4
  "eos_token_id": 267,
5
  "pad_token_id": 3,
 
 
 
6
  "transformers_version": "4.46.3"
7
- }
 
1
  {
 
2
  "bos_token_id": 0,
3
  "eos_token_id": 267,
4
  "pad_token_id": 3,
5
+ "max_length": 32000,
6
+ "do_sample": true,
7
+ "temperature": 0.6,
8
  "transformers_version": "4.46.3"
9
+ }
tokenizer.json CHANGED
@@ -289,6 +289,27 @@
289
  {
290
  "type": "Fuse"
291
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  {
293
  "type": "Replace",
294
  "pattern": {
 
289
  {
290
  "type": "Fuse"
291
  },
292
+ {
293
+ "type": "Replace",
294
+ "pattern": {
295
+ "String": "<|start_header_id|> "
296
+ },
297
+ "content": "<|start_header_id|>"
298
+ },
299
+ {
300
+ "type": "Replace",
301
+ "pattern": {
302
+ "String": "<|end_header_id|> "
303
+ },
304
+ "content": "<|end_header_id|>"
305
+ },
306
+ {
307
+ "type": "Replace",
308
+ "pattern": {
309
+ "String": "<|eot_id|> "
310
+ },
311
+ "content": "<|eot_id|>"
312
+ },
313
  {
314
  "type": "Replace",
315
  "pattern": {
tokenizer_config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "add_bos_token": false,
3
  "add_eos_token": false,
4
  "added_tokens_decoder": {
5
  "0": {
 
1
  {
2
+ "add_bos_token": true,
3
  "add_eos_token": false,
4
  "added_tokens_decoder": {
5
  "0": {