Downloads · 30 days
112
0% of all-time downloads
sbintuitions/sarashina2-70b
sarashina2-70b is a machine learning model from sbintuitions. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository provides large language models trained by SB Intuitions.
Downloads · 30 days
112
0% of all-time downloads
All-time downloads
23K
Public
Parameters
70.1B
140 GB on disk
Likes
17
Public
Click a slice to open those files.
.safetensors140 GB · 100%
From the Hugging Face model README
This repository provides large language models trained by SB Intuitions.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline, set_seed
model = AutoModelForCausalLM.from_pretrained("sbintuitions/sarashina2-70b", torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("sbintuitions/sarashina2-70b")
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
set_seed(123)
text = generator(
"おはようございます、今日の天気は",
max_length=30,
do_sample=True,
pad_token_id=tokenizer.pad_token_id,
num_return_sequences=3,
)
for t in text:
print(t)
| Parameters | Vocab size | Training tokens | Architecture | Position type | Layers | Hidden dim | Attention heads |
|---|---|---|---|---|---|---|---|
| 7B | 102400 | 2.1T | Llama2 | RoPE | 32 | 4096 | 32 |
| 13B | 102400 | 2.1T | Llama2 | RoPE | 40 | 5120 | 40 |
| 70B | 102400 | 2.1T | Llama2 | RoPE | 80 | 8192 | 64 |
For our Japanese training data, we used a Japanese portion of the Common Crawl corpus, which is the largest Web corpus, as our training dataset. To clean the training corpus, we used CCNet and HojiChar. After cleaning, our Japanese training data contains about 1T tokens.
For our English training data, we extracted English documents from SlimPajama but we removed books3 corpus due to copyright infringement.
We use a sentencepiece tokenizer with a unigram language model and byte-fallback. We do not apply pre-tokenization with Japanese tokenizer. Thus, a user may directly feed raw sentences into the tokenizer.
Sarashina2 has not been tuned to follow an instruction yet. Therefore, sarashina2 might generate some meaningless sequences, some inaccurate instances or biased/objectionable outputs. Before using sarashina2, we would like developers to tune models based on human preferences and safety considerations.