mohammedqarnuon commited on
Commit
72471f1
·
verified ·
1 Parent(s): d20043d

Add Qarnon-Ultra-V3.5 Moroccan Assistant

Browse files
Files changed (3) hide show
  1. config.json +67 -32
  2. generation_config.json +11 -3
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,41 +1,76 @@
1
  {
2
- "activation_function": "gelu_new",
3
- "add_cross_attention": false,
4
  "architectures": [
5
- "GPT2LMHeadModel"
6
  ],
7
- "attn_pdrop": 0.1,
8
- "bos_token_id": 50256,
9
- "dtype": "float32",
10
- "embd_pdrop": 0.1,
11
- "eos_token_id": 50256,
 
12
  "initializer_range": 0.02,
13
- "layer_norm_epsilon": 1e-05,
14
- "model_type": "gpt2",
15
- "n_ctx": 1024,
16
- "n_embd": 768,
17
- "n_head": 12,
18
- "n_inner": null,
19
- "n_layer": 12,
20
- "n_positions": 1024,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  "pad_token_id": null,
22
- "reorder_and_upcast_attn": false,
23
- "resid_pdrop": 0.1,
24
- "scale_attn_by_inverse_layer_idx": false,
25
- "scale_attn_weights": true,
26
- "summary_activation": null,
27
- "summary_first_dropout": 0.1,
28
- "summary_proj_to_labels": true,
29
- "summary_type": "cls_index",
30
- "summary_use_proj": true,
31
- "task_specific_params": {
32
- "text-generation": {
33
- "do_sample": true,
34
- "max_length": 50
35
- }
 
 
 
 
 
36
  },
 
37
  "tie_word_embeddings": true,
38
  "transformers_version": "5.12.0",
39
- "use_cache": false,
40
- "vocab_size": 50257
 
41
  }
 
1
  {
 
 
2
  "architectures": [
3
+ "Qwen2ForCausalLM"
4
  ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
  "initializer_range": 0.02,
12
+ "intermediate_size": 8960,
13
+ "layer_types": [
14
+ "full_attention",
15
+ "full_attention",
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention"
42
+ ],
43
+ "max_position_embeddings": 32768,
44
+ "max_window_layers": 28,
45
+ "model_type": "qwen2",
46
+ "num_attention_heads": 12,
47
+ "num_hidden_layers": 28,
48
+ "num_key_value_heads": 2,
49
  "pad_token_id": null,
50
+ "quantization_config": {
51
+ "_load_in_4bit": true,
52
+ "_load_in_8bit": false,
53
+ "bnb_4bit_compute_dtype": "float16",
54
+ "bnb_4bit_quant_storage": "uint8",
55
+ "bnb_4bit_quant_type": "nf4",
56
+ "bnb_4bit_use_double_quant": true,
57
+ "llm_int8_enable_fp32_cpu_offload": false,
58
+ "llm_int8_has_fp16_weight": false,
59
+ "llm_int8_skip_modules": null,
60
+ "llm_int8_threshold": 6.0,
61
+ "load_in_4bit": true,
62
+ "load_in_8bit": false,
63
+ "quant_method": "bitsandbytes"
64
+ },
65
+ "rms_norm_eps": 1e-06,
66
+ "rope_parameters": {
67
+ "rope_theta": 1000000.0,
68
+ "rope_type": "default"
69
  },
70
+ "sliding_window": null,
71
  "tie_word_embeddings": true,
72
  "transformers_version": "5.12.0",
73
+ "use_cache": true,
74
+ "use_sliding_window": false,
75
+ "vocab_size": 151936
76
  }
generation_config.json CHANGED
@@ -1,6 +1,14 @@
1
  {
2
- "_from_model_config": true,
3
- "bos_token_id": 50256,
4
- "eos_token_id": 50256,
 
 
 
 
 
 
 
 
5
  "transformers_version": "5.12.0"
6
  }
 
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": "5.12.0"
14
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c7d00560d8910fbed77ffad4065dee5011c41ba401b1064e749c498ba9e20373
3
- size 497774208
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e632b087349312fab39ce258e83e1211d44635b6ad6e19ed7666203db9a75bb2
3
+ size 1143327538