3v324v23 commited on
Commit
80c97f6
1 Parent(s): 68ef47f

Model upload.

Browse files
.gitattributes CHANGED
@@ -9,7 +9,6 @@
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
  *.msgpack filter=lfs diff=lfs merge=lfs -text
14
  *.npy filter=lfs diff=lfs merge=lfs -text
15
  *.npz filter=lfs diff=lfs merge=lfs -text
@@ -25,7 +24,6 @@
25
  *.safetensors filter=lfs diff=lfs merge=lfs -text
26
  saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
  *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
  *.tflite filter=lfs diff=lfs merge=lfs -text
30
  *.tgz filter=lfs diff=lfs merge=lfs -text
31
  *.wasm filter=lfs diff=lfs merge=lfs -text
 
9
  *.joblib filter=lfs diff=lfs merge=lfs -text
10
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
 
12
  *.msgpack filter=lfs diff=lfs merge=lfs -text
13
  *.npy filter=lfs diff=lfs merge=lfs -text
14
  *.npz filter=lfs diff=lfs merge=lfs -text
 
24
  *.safetensors filter=lfs diff=lfs merge=lfs -text
25
  saved_model/**/* filter=lfs diff=lfs merge=lfs -text
26
  *.tar.* filter=lfs diff=lfs merge=lfs -text
 
27
  *.tflite filter=lfs diff=lfs merge=lfs -text
28
  *.tgz filter=lfs diff=lfs merge=lfs -text
29
  *.wasm filter=lfs diff=lfs merge=lfs -text
4bit-32g.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c27cc2c2f3189131e271ad41c96dd2992636b6bc949ad38f414c8ba3c10c2f1
3
+ size 8002873912
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # superhot-13b-8k-4bit-32g-safetensors
2
+
3
+ Merged base LLaMA and LoRA with this:
4
+ https://github.com/tloen/alpaca-lora
5
+
6
+ Base LLaMA 13B:
7
+ https://huggingface.co/huggyllama/llama-13b
8
+
9
+ SuperCOT 13B 8k LoRA:
10
+ https://huggingface.co/kaiokendev/superhot-13b-8k-no-rlhf-test
11
+
12
+ ``` sh
13
+ BASE_MODEL=huggyllama_llama-13b LORA=kaiokendev_superhot-13b-8k-no-rlhf-test python export_hf_checkpoint.py
14
+ ```
15
+
16
+ Quantized with AutoGPTQ:
17
+ https://github.com/PanQiWei/AutoGPTQ
18
+
19
+ ``` sh
20
+ python quant_with_alpaca.py --pretrained_model_dir superhot-13b-8k-safetensors --quantized_model_dir superhot-13b-8k-no-rlhf-test-32g-GPTQ --bits 4 --group_size 32 --desc_act --num_samples 256 --save_and_reload
21
+ ```
22
+
23
+ Perplexity:
24
+ ```
25
+ CUDA_VISIBLE_DEVICES=0 python test_benchmark_inference.py \
26
+ -d /workspace/models/superhot-13b-8k-no-rlhf-test-32g-GPTQ \
27
+ -ppl \
28
+ -ppl_ds datasets/wikitext2.txt \
29
+ -l 8192 \
30
+ -cpe 4 \
31
+ -ppl_cn 40 \
32
+ -ppl_cs 8192 \
33
+ -ppl_ct 8192
34
+ -- Perplexity:
35
+ -- - Dataset: datasets/wikitext2.txt
36
+ -- - Chunks: 40
37
+ -- - Chunk size: 8192 -> 8192
38
+ -- - Chunk overlap: 0
39
+ -- - Min. chunk size: 50
40
+ -- - Key: text
41
+ -- Tokenizer: /workspace/models/superhot-13b-8k-no-rlhf-test-32g-GPTQ/tokenizer.model
42
+ -- Model config: /workspace/models/superhot-13b-8k-no-rlhf-test-32g-GPTQ/config.json
43
+ -- Model: /workspace/models/superhot-13b-8k-no-rlhf-test-32g-GPTQ/4bit-32g.safetensors
44
+ -- Sequence length: 8192
45
+ -- RoPE compression factor: 4.0
46
+ -- Tuning:
47
+ -- --matmul_recons_thd: 8
48
+ -- --fused_mlp_thd: 2
49
+ -- --sdp_thd: 8
50
+ -- Options: ['perplexity']
51
+ ** Time, Load model: 4.23 seconds
52
+ ** Time, Load tokenizer: 0.01 seconds
53
+ -- Groupsize (inferred): 32
54
+ -- Act-order (inferred): yes
55
+ ** VRAM, Model: [cuda:0] 7,732.62 MB
56
+ -- Loading dataset...
57
+ -- Testing 40 chunks....
58
+ ** Perplexity: 5.4066
59
+ ```
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "superhot-13b-8k-no-rlhf-test",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "bos_token_id": 1,
7
+ "eos_token_id": 2,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 5120,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 13824,
12
+ "max_position_embeddings": 2048,
13
+ "max_sequence_length": 2048,
14
+ "model_type": "llama",
15
+ "num_attention_heads": 40,
16
+ "num_hidden_layers": 40,
17
+ "pad_token_id": 0,
18
+ "rms_norm_eps": 1e-06,
19
+ "tie_word_embeddings": false,
20
+ "torch_dtype": "float16",
21
+ "transformers_version": "4.30.2",
22
+ "use_cache": true,
23
+ "vocab_size": 32000
24
+ }
quantize_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 32,
4
+ "damp_percent": 0.01,
5
+ "desc_act": true,
6
+ "sym": true,
7
+ "true_sequential": true,
8
+ "model_name_or_path": null,
9
+ "model_file_base_name": null
10
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
Binary file (500 kB). View file
 
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "clean_up_tokenization_spaces": false,
13
+ "eos_token": {
14
+ "__type": "AddedToken",
15
+ "content": "</s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "model_max_length": 2048,
22
+ "pad_token": null,
23
+ "sp_model_kwargs": {},
24
+ "tokenizer_class": "LlamaTokenizer",
25
+ "unk_token": {
26
+ "__type": "AddedToken",
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": true,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }