atsuki-yamaguchi
commited on
Upload folder using huggingface_hub
Browse files- README.md +15 -29
- adapter_config.json +1 -26
- config.json +2 -2
- model.safetensors +2 -2
- optimizer.pt +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +4 -28
- tokenizer.json +0 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,35 +1,21 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
language:
|
4 |
-
- ja
|
5 |
---
|
6 |
-
|
7 |
-
===
|
8 |
|
9 |
-
## How to use
|
10 |
-
```python
|
11 |
-
from peft import AutoPeftModelForCausalLM
|
12 |
-
from transformers import AutoTokenizer
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
-
## Citation
|
23 |
-
```
|
24 |
-
@article{yamaguchi2024empirical,
|
25 |
-
title={An Empirical Study on Cross-lingual Vocabulary Adaptation for Efficient Generative {LLM} Inference},
|
26 |
-
author={Atsuki Yamaguchi and Aline Villavicencio and Nikolaos Aletras},
|
27 |
-
journal={ArXiv},
|
28 |
-
year={2024},
|
29 |
-
volume={abs/2402.10712},
|
30 |
-
url={https://arxiv.org/abs/2402.10712}
|
31 |
-
}
|
32 |
-
```
|
33 |
|
34 |
-
|
35 |
-
For more details, please visit https://github.com/gucci-j/llm-cva
|
|
|
1 |
---
|
2 |
+
library_name: peft
|
|
|
|
|
3 |
---
|
4 |
+
## Training procedure
|
|
|
5 |
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
The following `bitsandbytes` quantization config was used during training:
|
8 |
+
- quant_method: bitsandbytes
|
9 |
+
- load_in_8bit: True
|
10 |
+
- load_in_4bit: False
|
11 |
+
- llm_int8_threshold: 6.0
|
12 |
+
- llm_int8_skip_modules: None
|
13 |
+
- llm_int8_enable_fp32_cpu_offload: False
|
14 |
+
- llm_int8_has_fp16_weight: False
|
15 |
+
- bnb_4bit_quant_type: fp4
|
16 |
+
- bnb_4bit_use_double_quant: False
|
17 |
+
- bnb_4bit_compute_dtype: float32
|
18 |
+
### Framework versions
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
- PEFT 0.5.0
|
|
adapter_config.json
CHANGED
@@ -1,26 +1 @@
|
|
1 |
-
{
|
2 |
-
"auto_mapping": null,
|
3 |
-
"base_model_name_or_path": "atsuki-yamaguchi/bloom-1b1-clp-ja",
|
4 |
-
"bias": "none",
|
5 |
-
"fan_in_fan_out": false,
|
6 |
-
"inference_mode": true,
|
7 |
-
"init_lora_weights": true,
|
8 |
-
"layers_pattern": null,
|
9 |
-
"layers_to_transform": null,
|
10 |
-
"lora_alpha": 32,
|
11 |
-
"lora_dropout": 0.05,
|
12 |
-
"modules_to_save": [
|
13 |
-
"lm_head",
|
14 |
-
"word_embeddings"
|
15 |
-
],
|
16 |
-
"peft_type": "LORA",
|
17 |
-
"r": 8,
|
18 |
-
"revision": null,
|
19 |
-
"target_modules": [
|
20 |
-
"query_key_value",
|
21 |
-
"dense",
|
22 |
-
"dense_h_to_4h",
|
23 |
-
"dense_4h_to_h"
|
24 |
-
],
|
25 |
-
"task_type": "CAUSAL_LM"
|
26 |
-
}
|
|
|
1 |
+
{"auto_mapping": null, "base_model_name_or_path": "atsuki-yamaguchi/bloom-1b1-clp-ja", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "lora_alpha": 32, "lora_dropout": 0.05, "modules_to_save": ["lm_head", "word_embeddings"], "peft_type": "LORA", "r": 8, "revision": null, "target_modules": ["query_key_value", "dense", "dense_h_to_4h", "dense_4h_to_h"], "task_type": "CAUSAL_LM"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/
|
3 |
"apply_residual_connection_post_layernorm": false,
|
4 |
"architectures": [
|
5 |
"BloomForCausalLM"
|
@@ -24,7 +24,7 @@
|
|
24 |
"skip_bias_add": true,
|
25 |
"skip_bias_add_qkv": false,
|
26 |
"slow_but_exact": false,
|
27 |
-
"torch_dtype": "
|
28 |
"transformers_version": "4.35.0.dev0",
|
29 |
"unk_token_id": 0,
|
30 |
"use_cache": true,
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "bigscience/bloom-1b1",
|
3 |
"apply_residual_connection_post_layernorm": false,
|
4 |
"architectures": [
|
5 |
"BloomForCausalLM"
|
|
|
24 |
"skip_bias_add": true,
|
25 |
"skip_bias_add_qkv": false,
|
26 |
"slow_but_exact": false,
|
27 |
+
"torch_dtype": "float64",
|
28 |
"transformers_version": "4.35.0.dev0",
|
29 |
"unk_token_id": 0,
|
30 |
"use_cache": true,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a6f96a239413d41689e7f241cce924e1dd3607852a987e14c76f7599ae68e09
|
3 |
+
size 3113100848
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64524e39df2f48b8e8bc20337891bafa0d45de6d40ed65a5a2fdd30cd3591925
|
3 |
+
size 206666106
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6275b7f04e2ea5763fdc0513bc31cfe69630568d27ac044cf8acfc8fe5e60f6
|
3 |
+
size 14244
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d8b152021e8555ba0ad15820c864745c0c80de2561833df325f8e9342abc8ef
|
3 |
+
size 1064
|
special_tokens_map.json
CHANGED
@@ -1,18 +1,6 @@
|
|
1 |
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
"lstrip": false,
|
5 |
-
"normalized": false,
|
6 |
-
"rstrip": false,
|
7 |
-
"single_word": false
|
8 |
-
},
|
9 |
-
"cls_token": {
|
10 |
-
"content": "[CLS]",
|
11 |
-
"lstrip": false,
|
12 |
-
"normalized": false,
|
13 |
-
"rstrip": false,
|
14 |
-
"single_word": false
|
15 |
-
},
|
16 |
"eos_token": {
|
17 |
"content": "</s>",
|
18 |
"lstrip": false,
|
@@ -20,13 +8,7 @@
|
|
20 |
"rstrip": false,
|
21 |
"single_word": false
|
22 |
},
|
23 |
-
"mask_token":
|
24 |
-
"content": "[MASK]",
|
25 |
-
"lstrip": false,
|
26 |
-
"normalized": false,
|
27 |
-
"rstrip": false,
|
28 |
-
"single_word": false
|
29 |
-
},
|
30 |
"pad_token": {
|
31 |
"content": "[PAD]",
|
32 |
"lstrip": false,
|
@@ -34,13 +16,7 @@
|
|
34 |
"rstrip": false,
|
35 |
"single_word": false
|
36 |
},
|
37 |
-
"sep_token":
|
38 |
-
"content": "[SEP]",
|
39 |
-
"lstrip": false,
|
40 |
-
"normalized": false,
|
41 |
-
"rstrip": false,
|
42 |
-
"single_word": false
|
43 |
-
},
|
44 |
"unk_token": {
|
45 |
"content": "[UNK]",
|
46 |
"lstrip": false,
|
|
|
1 |
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "[CLS]",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
"eos_token": {
|
5 |
"content": "</s>",
|
6 |
"lstrip": false,
|
|
|
8 |
"rstrip": false,
|
9 |
"single_word": false
|
10 |
},
|
11 |
+
"mask_token": "[MASK]",
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"pad_token": {
|
13 |
"content": "[PAD]",
|
14 |
"lstrip": false,
|
|
|
16 |
"rstrip": false,
|
17 |
"single_word": false
|
18 |
},
|
19 |
+
"sep_token": "[SEP]",
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
"unk_token": {
|
21 |
"content": "[UNK]",
|
22 |
"lstrip": false,
|
tokenizer.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:612a480e3e465ac49365053a8e9e7bfdefc5f71ffd72fbe043f5aa20d73eb0c3
|
3 |
+
size 4664
|