Upload folder using huggingface_hub
Browse files- README.md +4 -22
- config.json +30 -0
- output-00001-of-00008.safetensors +3 -0
- output-00002-of-00008.safetensors +3 -0
- output-00003-of-00008.safetensors +3 -0
- output-00004-of-00008.safetensors +3 -0
- output-00005-of-00008.safetensors +3 -0
- output-00006-of-00008.safetensors +3 -0
- output-00007-of-00008.safetensors +3 -0
- output-00008-of-00008.safetensors +3 -0
- special_tokens_map.json +35 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +47 -0
README.md
CHANGED
|
@@ -2,28 +2,10 @@
|
|
| 2 |
license: llama2
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
-
|
| 10 |
-
[2.65bpw](https://huggingface.co/aikitoria/Goliath-longLORA-120b-rope8-32k-exl2/tree/2.65bpw) using default dataset
|
| 11 |
-
[4.35bpw](https://huggingface.co/aikitoria/Goliath-longLORA-120b-rope8-32k-exl2/tree/4.35bpw) using default dataset
|
| 12 |
-
[4.35bpw-rpcal](https://huggingface.co/aikitoria/Goliath-longLORA-120b-rope8-32k-exl2/tree/4.35bpw-rpcal) using PIPPA dataset
|
| 13 |
|
| 14 |
-
|
| 15 |
-
# Memory usage tests
|
| 16 |
-
|
| 17 |
-
### 2.65bpw
|
| 18 |
-
context 16k, cache 16: 46.9GiB (fits in 2x 3090)
|
| 19 |
-
context 32k, cache 8: 47GiB (fits in 2x 3090)
|
| 20 |
-
|
| 21 |
-
### 4.35bpw
|
| 22 |
-
context 16k, cache 16: 70.1GiB (fits in 3x 3090)
|
| 23 |
-
context 32k, cache 8: 70.3GiB (fits in 3x 3090)
|
| 24 |
-
context 32k, cache 16: 78.7GiB (fits in A100 80GB)
|
| 25 |
-
|
| 26 |
-
# Super epic scientific test results
|
| 27 |
-
The 2.65bpw version suffered greatly, it's not completely broken, but it's not good either.
|
| 28 |
-
The 4.35bpw version is worse than normal goliath but better than goliath with rope scale applied for long context.
|
| 29 |
-
The version using the PIPPA dataset produces worse results than the one using the default dataset on any context length.
|
|
|
|
| 2 |
license: llama2
|
| 3 |
---
|
| 4 |
|
| 5 |
+
This is an interleaved merge of [Xwin-longLORA-70b-rope8-32k-fp16](https://huggingface.co/grimulkan/Xwin-longLORA-70b-rope8-32k-fp16) and [Euryale-1.3-longLORA-70b-rope8-32k-fp16](https://huggingface.co/grimulkan/Euryale-1.3-longLORA-70b-rope8-32k-fp16), using the same merge formula as alpindale's [goliath-120b](https://huggingface.co/alpindale/goliath-120b).
|
| 6 |
|
| 7 |
+
There is no additional fine-tuning. The resulting model seems to not be broken... you can test whether it is truly the original model + 32K capability (use linear rope scaling 8).
|
| 8 |
|
| 9 |
+
A 6-bit EXL2 quantization is available [here](https://huggingface.co/grimulkan/Goliath-longLORA-120b-rope8-2k-6bpw_h8_exl2).
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
See [this discussion](https://huggingface.co/grimulkan/aurelian-v0.5-70b-rope8-32K-fp16/discussions/2) for how the original 70B merges were created with longLORA.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Goliath-longLORA-120b-rope8-32k-4.35bpw-exl2-rpcal",
|
| 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": 8192,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 28672,
|
| 13 |
+
"max_position_embeddings": 32768,
|
| 14 |
+
"model_type": "llama",
|
| 15 |
+
"num_attention_heads": 64,
|
| 16 |
+
"num_hidden_layers": 137,
|
| 17 |
+
"num_key_value_heads": 8,
|
| 18 |
+
"pretraining_tp": 1,
|
| 19 |
+
"rms_norm_eps": 1e-05,
|
| 20 |
+
"rope_scaling": {
|
| 21 |
+
"factor": 8.0,
|
| 22 |
+
"type": "linear"
|
| 23 |
+
},
|
| 24 |
+
"rope_theta": 10000.0,
|
| 25 |
+
"tie_word_embeddings": false,
|
| 26 |
+
"torch_dtype": "float16",
|
| 27 |
+
"transformers_version": "4.34.1",
|
| 28 |
+
"use_cache": true,
|
| 29 |
+
"vocab_size": 32000
|
| 30 |
+
}
|
output-00001-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d820d9c79510e53403c504ae1e3f287be62a7492acf7e0bc0b30710432c82e9
|
| 3 |
+
size 8540164670
|
output-00002-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2eb6edd32be5873a86384c8899dc86074f6e2adfc320004debb0ee04d6b5ed38
|
| 3 |
+
size 8577683146
|
output-00003-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a777de894cd1fecc3083925ff62841a3ac82e0087b51e1b128f184b14f4e10d
|
| 3 |
+
size 8586901052
|
output-00004-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f95882dc642f7301dee530a9d4b64612b982aaf965ee2acc9c790da7ef166a3
|
| 3 |
+
size 8562986136
|
output-00005-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97fc0cf4a09431d8b1dd95c66fafe2330fc8e047625e3ef471bd2789837d3ba0
|
| 3 |
+
size 8587774632
|
output-00006-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edd04cfe0a98f09d7684f4c6e5ae0d2a98bd9343ab15c204f9951200d8a082be
|
| 3 |
+
size 8486402280
|
output-00007-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:089c536cce0b33edac0595c585f970680295ccb19a882898162fc8e3285831ee
|
| 3 |
+
size 8587320272
|
output-00008-of-00008.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f2ed6252eb70db95b90ae23cc2b5f0ae653cb3a00dd4bf7150482067f0710a9
|
| 3 |
+
size 4587118672
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<unk>",
|
| 4 |
+
"<s>",
|
| 5 |
+
"</s>"
|
| 6 |
+
],
|
| 7 |
+
"bos_token": {
|
| 8 |
+
"content": "<s>",
|
| 9 |
+
"lstrip": false,
|
| 10 |
+
"normalized": false,
|
| 11 |
+
"rstrip": false,
|
| 12 |
+
"single_word": false
|
| 13 |
+
},
|
| 14 |
+
"eos_token": {
|
| 15 |
+
"content": "</s>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"pad_token": {
|
| 22 |
+
"content": "<unk>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false
|
| 27 |
+
},
|
| 28 |
+
"unk_token": {
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false
|
| 34 |
+
}
|
| 35 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
| 3 |
+
size 499723
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"additional_special_tokens": [
|
| 31 |
+
"<unk>",
|
| 32 |
+
"<s>",
|
| 33 |
+
"</s>"
|
| 34 |
+
],
|
| 35 |
+
"bos_token": "<s>",
|
| 36 |
+
"clean_up_tokenization_spaces": false,
|
| 37 |
+
"eos_token": "</s>",
|
| 38 |
+
"legacy": false,
|
| 39 |
+
"model_max_length": 32768,
|
| 40 |
+
"pad_token": "<unk>",
|
| 41 |
+
"padding_side": "right",
|
| 42 |
+
"sp_model_kwargs": {},
|
| 43 |
+
"spaces_between_special_tokens": false,
|
| 44 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 45 |
+
"unk_token": "<unk>",
|
| 46 |
+
"use_default_system_prompt": true
|
| 47 |
+
}
|