sho-takase commited on
Commit
6438a04
1 Parent(s): 464981d

initial commit

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2024 SB Intuitions
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -1,3 +1,64 @@
1
  ---
2
  license: mit
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ language:
4
+ - ja
5
  ---
6
+
7
+ # Sarashina1-65B
8
+
9
+ This repository provides Japanese language models trained by [SB Intuitions](https://www.sbintuitions.co.jp/).
10
+
11
+
12
+ ## How to use
13
+
14
+ ```
15
+ import torch
16
+ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline, set_seed
17
+
18
+ model = AutoModelForCausalLM.from_pretrained("sbintuitions/sarashina1-65b", torch_dtype=torch.float16)
19
+ tokenizer = AutoTokenizer.from_pretrained("sbintuitions/sarashina1-65b", use_fast=False)
20
+ generator = pipeline("text-generation", model=model, tokenizer=tokenizer, device_map="auto")
21
+ set_seed(123)
22
+
23
+ text = generator(
24
+ "おはようございます、今日の天気は",
25
+ max_length=30,
26
+ do_sample=True,
27
+ pad_token_id=tokenizer.pad_token_id,
28
+ num_return_sequences=3,
29
+ )
30
+
31
+ for t in text:
32
+ print(t)
33
+
34
+ ```
35
+
36
+ ## Configuration
37
+
38
+ | Parameters | Vocab size | Trainning tokens | Architecture | Position type | Layers | Hidden dim | Attention heads |
39
+ | :-----: | :-----------: | :-------------: | :----------- | :-----------: | :----: | :--------: | :-------------: |
40
+ | [7B](https://huggingface.co/sbintuitions/sarashina1-7b) | 51200 | 1.0T | GPTNeoX | RoPE | 32 | 4096 | 32 |
41
+ | [13B](https://huggingface.co/sbintuitions/sarashina1-13b) | 51200 | 1.0T | GPTNeoX | RoPE | 40 | 5120 | 40 |
42
+ | [65B](https://huggingface.co/sbintuitions/sarashina1-65b) | 51200 | 800B | GPTNeoX | RoPE | 80 | 8192 | 64 |
43
+
44
+ ## Training Corpus
45
+
46
+ We used a Japanese portion of the [Common Crawl corpus](https://commoncrawl.org/), which is the largest Web corpus, as our training dataset.
47
+ To clean the training corpus, we used [CCNet](https://github.com/facebookresearch/cc_net) and [HojiChar](https://github.com/HojiChar/HojiChar).
48
+ After cleaning, our corpus contains about 550B tokens.
49
+
50
+ ## Tokenization
51
+
52
+ We use a [sentencepiece](https://github.com/google/sentencepiece) tokenizer with a unigram language model and byte-fallback.
53
+ We do not apply pre-tokenization with Japanese tokenizer.
54
+ Thus, a user may directly feed raw sentences into the tokenizer.
55
+
56
+
57
+ ## Ethical Considerations and Limitations
58
+ Sarashina1 has not been tuned to follow an instruction yet.
59
+ Therefore, sarashina1 might generate some meaningless sequences, some inaccurate instances or biased/objectionable outputs.
60
+ Before using sarashina1, we would like developers to tune models based on human preferences and safety considerations.
61
+
62
+ ## License
63
+
64
+ [MIT License](https://huggingface.co/sbintuitions/sarashina1-65b/blob/main/LICENSE)
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.30.2"
6
+ }
pytorch_model-00001-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84eb6bee9b8ed27a2fe958ad39f906751764840d3d6c301e5e25de29d76faf86
3
+ size 9992125001
pytorch_model-00002-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c875867e1b9a8d6af8f1b793074de62d1da5772064180973db67a671eafa5ce0
3
+ size 9690151899
pytorch_model-00003-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d4112c53c0e5de38baf8fc27ef47e1b869d35ce115f9759151acf6cd9f581f7
3
+ size 9690151963
pytorch_model-00004-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:877a6f7b57821a80715c8bf38c3eb37ce1f5645936b64e3ce240527d90895629
3
+ size 9690151963
pytorch_model-00005-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46a6dc01123416e7f76388f0ca28780c8df7a71534db93dd5642ab8c955514ef
3
+ size 9690151963
pytorch_model-00006-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcaf6a8ba680a21b742a8eff59e8695900527b528f375bf2eb0d0f9ff44f8865
3
+ size 9690151963
pytorch_model-00007-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf28019c7eb3cc4913e34719a4654b43b81818989aca38ee3dac741153036be5
3
+ size 9690151963
pytorch_model-00008-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d5dad37e3b7973b01db3aad57ef123383694a25045431dfe97d2ae3fd4d8fca
3
+ size 9690151963
pytorch_model-00009-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a93fa34b1b10f1524527086e9d7c79488a12024c9d864b23fb9109357f72873a
3
+ size 9690151963
pytorch_model-00010-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a73a5c570feb117fc7f8024cf08b4b92550f70c58684dbba0249ed94c8f58c77
3
+ size 9690151963
pytorch_model-00011-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abf691c3f0661c640bd5cdd2f117ffb5f1046e7129aacce58155a1baf03462b6
3
+ size 9690151963
pytorch_model-00012-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baa7ef6e4ec69d7624410623eac6bef6b3f70262e3d688dc72bde32c86e949c1
3
+ size 9690151963
pytorch_model-00013-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:129bd9c4591d055821cf960c8821ed9b0f93d844e95c8885d7fb41284a8d4eb6
3
+ size 9690151963
pytorch_model-00014-of-00014.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:088716553a3001db257b113baef3feb8c13b3053d9abcb2b296197b0423cc53e
3
+ size 4605832921
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff
 
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cc4aebe7cab049f43d2666c5250b5bfd97a13e0e7af80b584876c448d636e59
3
+ size 1198392
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "extra_ids": 0,
3
+ "do_lower_case": false,
4
+ "keep_accents": true,
5
+ "bos_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "unk_token": "<unk>",
8
+ "pad_token": "<pad>",
9
+ "mask_token": "<mask>",
10
+ "cls_token": "<cls>",
11
+ "sep_token": "<sep>",
12
+ "sp_model_kwargs": {},
13
+ "special_tokens_map_file": null,
14
+ "tokenizer_class": "T5Tokenizer"
15
+ }