Downloads · 30 days
6
9% of all-time downloads
beezza/sarashina2.2-3b-base-chat_template
sarashina2.2-3b-base-chat_template is a machine learning model from beezza. 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.
Downloads · 30 days
6
9% of all-time downloads
All-time downloads
68
Public
Parameters
3.4B
6.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.7 GB · 100%
From the Hugging Face model README
Added chat_template.jinja
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.2-3b", torch_dtype=torch.bfloat16, device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("sbintuitions/sarashina2.2-3b")
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)
We constructed the Sarashina2.2-3B model, which consists of about 3 billion parameters (excluding embeddings and the LM head when calculating the number of parameters), using a three-phase training process. First, we trained the model on 10 trillion tokens, including Japanese, English, and code data extracted from web corpora. Next, we trained the model using synthetic data to improve its performance on math and coding tasks. Finally, we trained the model with a small amount of data to enhance its performance on various application tasks.
The following tables show the model's performance on Japanese tasks. For reference, we also present the performance of our previous LLMs. As shown in the table, our Sarashina2.2-3B outperforms Sarashina2-7B in Japanese QA tasks such as NIILC and JMMLU. In addition, Sarashina2.2-3B outperforms Sarashina2-70B in Japanese math and coding tasks such as MGSM-ja and JHumanEval.
| Model | NIILC | JMMLU | MGSM-ja | JHumanEval |
|---|---|---|---|---|
| Sarashina2-7B | 61.4 | 42.5 | 8.4 | 12.8 |
| Sarashina2-70B | 65.4 | 62.7 | 54.0 | 22.0 |
| Sarashina2.2-0.5B | 33.9 | 28.8 | 21.6 | 15.2 |
| Sarashina2.2-1B | 47.2 | 38.2 | 39.6 | 20.7 |
| Sarashina2.2-3B | 63.0 | 52.7 | 63.6 | 39.0 |
This repository contains the pre-trained model, which has not yet been tuned to follow instructions. Therefore, this model may generate meaningless sequences, inaccurate instances, or biased/objectionable outputs. As post-trained Sarashina2.2 models, we have published Sarashina2.2-0.5B-instruct-v0.1, Sarashina2.2-1B-instruct-v0.1, and Sarashina2.2-3B-instruct-v0.1.