Model upload.
Browse files- .gitattributes +0 -2
- 4bit.safetensors +3 -0
- README.md +60 -0
- config.json +24 -0
- quantize_config.json +10 -0
- special_tokens_map.json +23 -0
- tokenizer.json +0 -0
- tokenizer.model +0 -0
- tokenizer_config.json +33 -0
.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.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43df50ae432178068e50a2db31ae64d540aed4dd561159794b840c1188457712
|
3 |
+
size 7016965584
|
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# superhot-13b-8k-4bit--1g-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-GPTQ --bits 4 --group_size -1 --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-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-GPTQ/tokenizer.model
|
42 |
+
-- Model config: /workspace/models/superhot-13b-8k-no-rlhf-test-GPTQ/config.json
|
43 |
+
-- Model: /workspace/models/superhot-13b-8k-no-rlhf-test-GPTQ/4bit.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: 3.58 seconds
|
52 |
+
** Time, Load tokenizer: 0.01 seconds
|
53 |
+
-- Groupsize (inferred): None
|
54 |
+
-- Act-order (inferred): no
|
55 |
+
!! Model has empty group index (discarded)
|
56 |
+
** VRAM, Model: [cuda:0] 6,754.74 MB
|
57 |
+
-- Loading dataset...
|
58 |
+
-- Testing 40 chunks....
|
59 |
+
** Perplexity: 5.7766
|
60 |
+
```
|
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": -1,
|
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 |
+
}
|