buzzCraft commited on
Commit
4144c40
β€’
1 Parent(s): 3d8ca67

Removing adapter - Moving merged to root

Browse files
Modelfile DELETED
@@ -1,19 +0,0 @@
1
- FROM ./norskGpt-7b-v1-q5_K_M.gguf
2
-
3
- TEMPLATE """
4
- {{- if .First }}
5
- ### Instruction:
6
- {{ .System }}
7
- {{- end }}
8
-
9
- ### Input:
10
- {{ .Prompt }}
11
-
12
- ### Response:
13
- """
14
- PARAMETER temperature 1
15
-
16
- # set the system prompt
17
- SYSTEM """
18
- You are a norwegian language model called NorskGPT. You reply only in norwegian.
19
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adapter_config.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "alpha_pattern": {},
3
- "auto_mapping": null,
4
- "base_model_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
5
- "bias": "none",
6
- "fan_in_fan_out": null,
7
- "inference_mode": true,
8
- "init_lora_weights": true,
9
- "layers_pattern": null,
10
- "layers_to_transform": null,
11
- "lora_alpha": 16,
12
- "lora_dropout": 0.05,
13
- "modules_to_save": null,
14
- "peft_type": "LORA",
15
- "r": 32,
16
- "rank_pattern": {},
17
- "revision": null,
18
- "target_modules": [
19
- "o_proj",
20
- "gate_proj",
21
- "up_proj",
22
- "v_proj",
23
- "down_proj",
24
- "k_proj",
25
- "q_proj"
26
- ],
27
- "task_type": "CAUSAL_LM"
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adapter_model.bin DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5cd24bc8006cb151cf5eccc3459773814b6efebe2e5afea14fe80be086b02fae
3
- size 319977229
 
 
 
 
config.json CHANGED
@@ -16,18 +16,6 @@
16
  "num_hidden_layers": 32,
17
  "num_key_value_heads": 32,
18
  "pretraining_tp": 1,
19
- "quantization_config": {
20
- "bnb_4bit_compute_dtype": "bfloat16",
21
- "bnb_4bit_quant_type": "nf4",
22
- "bnb_4bit_use_double_quant": true,
23
- "llm_int8_enable_fp32_cpu_offload": false,
24
- "llm_int8_has_fp16_weight": false,
25
- "llm_int8_skip_modules": null,
26
- "llm_int8_threshold": 6.0,
27
- "load_in_4bit": true,
28
- "load_in_8bit": false,
29
- "quant_method": "bitsandbytes"
30
- },
31
  "rms_norm_eps": 1e-05,
32
  "rope_scaling": null,
33
  "rope_theta": 10000.0,
 
16
  "num_hidden_layers": 32,
17
  "num_key_value_heads": 32,
18
  "pretraining_tp": 1,
 
 
 
 
 
 
 
 
 
 
 
 
19
  "rms_norm_eps": 1e-05,
20
  "rope_scaling": null,
21
  "rope_theta": 10000.0,
merged/generation_config.json β†’ generation_config.json RENAMED
File without changes
merged/config.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "_name_or_path": "meta-llama/Llama-2-7b-chat-hf",
3
- "architectures": [
4
- "LlamaForCausalLM"
5
- ],
6
- "attention_bias": false,
7
- "bos_token_id": 1,
8
- "eos_token_id": 2,
9
- "hidden_act": "silu",
10
- "hidden_size": 4096,
11
- "initializer_range": 0.02,
12
- "intermediate_size": 11008,
13
- "max_position_embeddings": 4096,
14
- "model_type": "llama",
15
- "num_attention_heads": 32,
16
- "num_hidden_layers": 32,
17
- "num_key_value_heads": 32,
18
- "pretraining_tp": 1,
19
- "rms_norm_eps": 1e-05,
20
- "rope_scaling": null,
21
- "rope_theta": 10000.0,
22
- "tie_word_embeddings": false,
23
- "torch_dtype": "float16",
24
- "transformers_version": "4.34.1",
25
- "use_cache": false,
26
- "vocab_size": 32000
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
merged/special_tokens_map.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "bos_token": {
3
- "content": "<s>",
4
- "lstrip": false,
5
- "normalized": false,
6
- "rstrip": false,
7
- "single_word": false
8
- },
9
- "eos_token": {
10
- "content": "</s>",
11
- "lstrip": false,
12
- "normalized": false,
13
- "rstrip": false,
14
- "single_word": false
15
- },
16
- "pad_token": "</s>",
17
- "unk_token": {
18
- "content": "<unk>",
19
- "lstrip": false,
20
- "normalized": false,
21
- "rstrip": false,
22
- "single_word": false
23
- }
24
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
merged/tokenizer.model DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
- size 499723
 
 
 
 
merged/tokenizer_config.json DELETED
@@ -1,45 +0,0 @@
1
- {
2
- "add_bos_token": true,
3
- "add_eos_token": false,
4
- "added_tokens_decoder": {
5
- "0": {
6
- "content": "<unk>",
7
- "lstrip": false,
8
- "normalized": false,
9
- "rstrip": false,
10
- "single_word": false,
11
- "special": true
12
- },
13
- "1": {
14
- "content": "<s>",
15
- "lstrip": false,
16
- "normalized": false,
17
- "rstrip": false,
18
- "single_word": false,
19
- "special": true
20
- },
21
- "2": {
22
- "content": "</s>",
23
- "lstrip": false,
24
- "normalized": false,
25
- "rstrip": false,
26
- "single_word": false,
27
- "special": true
28
- }
29
- },
30
- "bos_token": "<s>",
31
- "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\\n' + system_message + '\\n<</SYS>>\\n\\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ bos_token + '[INST] ' + content.strip() + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + content.strip() + ' ' + eos_token }}{% endif %}{% endfor %}",
32
- "clean_up_tokenization_spaces": false,
33
- "eos_token": "</s>",
34
- "legacy": false,
35
- "model_max_length": 1000000000000000019884624838656,
36
- "pad_token": "</s>",
37
- "padding_side": "right",
38
- "sp_model_kwargs": {},
39
- "spaces_between_special_tokens": false,
40
- "tokenizer_class": "LlamaTokenizer",
41
- "trust_remote_code": false,
42
- "unk_token": "<unk>",
43
- "use_default_system_prompt": true,
44
- "use_fast": true
45
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
merged/pytorch_model-00001-of-00002.bin β†’ pytorch_model-00001-of-00002.bin RENAMED
File without changes
merged/pytorch_model-00002-of-00002.bin β†’ pytorch_model-00002-of-00002.bin RENAMED
File without changes
merged/pytorch_model.bin.index.json β†’ pytorch_model.bin.index.json RENAMED
File without changes