Ubuntu commited on
Commit
ea022ad
1 Parent(s): 609389f
README.md ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - tatsu-lab/alpaca
4
+ - wbbbbb/pclue
5
+ language:
6
+ - en
7
+ widget:
8
+ - text: |-
9
+ ### Instruction:
10
+ 我們如何減少空氣污染
11
+
12
+ ### Response:
13
+ tags:
14
+ - text-generation-inference
15
+ ---
16
+
17
+ 具備繁體中文指令遵循能力的bloomz
18
+
19
+ 請搭配Alpaca模板使用
20
+ ```python
21
+ PROMPT_DICT = {
22
+ "prompt_input": (
23
+ "Below is an instruction that describes a task, paired with an input that provides further context. "
24
+ "Write a response that appropriately completes the request.\n\n"
25
+ "### Instruction:\n{instruction}\n\n### Input:\n{input}\n\n### Response:"
26
+ ),
27
+ "prompt_no_input": (
28
+ "Below is an instruction that describes a task. "
29
+ "Write a response that appropriately completes the request.\n\n"
30
+ "### Instruction:\n{instruction}\n\n### Response:"
31
+ ),
32
+ }
33
+ ```
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bigscience/bloomz-560m",
3
+ "apply_residual_connection_post_layernorm": false,
4
+ "architectures": [
5
+ "BloomForCausalLM"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "attention_softmax_in_fp32": true,
9
+ "bias_dropout_fusion": true,
10
+ "bos_token_id": 1,
11
+ "eos_token_id": 2,
12
+ "hidden_dropout": 0.0,
13
+ "hidden_size": 1024,
14
+ "initializer_range": 0.02,
15
+ "layer_norm_epsilon": 1e-05,
16
+ "masked_softmax_fusion": true,
17
+ "model_type": "bloom",
18
+ "n_head": 16,
19
+ "n_inner": null,
20
+ "n_layer": 24,
21
+ "offset_alibi": 100,
22
+ "pad_token_id": 3,
23
+ "pretraining_tp": 1,
24
+ "seq_length": 2048,
25
+ "skip_bias_add": true,
26
+ "skip_bias_add_qkv": false,
27
+ "slow_but_exact": false,
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.28.1",
30
+ "unk_token_id": 0,
31
+ "use_cache": true,
32
+ "vocab_size": 250681
33
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 3,
6
+ "transformers_version": "4.28.1"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d123ae898b88a85b8f58c5be116d5cbc27ac9e3e9f21b6ad7f2464d0632ffe0
3
+ size 2236142433
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "eos_token": "</s>",
4
+ "pad_token": "<pad>",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "<unk>"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "</s>",
6
+ "model_max_length": 1000000000000000019884624838656,
7
+ "pad_token": "<pad>",
8
+ "padding_side": "left",
9
+ "tokenizer_class": "BloomTokenizer",
10
+ "unk_token": "<unk>"
11
+ }