Downloads · 30 days
99
3% of all-time downloads
RichardErkhov/rinna_-_gemma-2-baku-2b-gguf
rinna_-_gemma-2-baku-2b-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
99
3% of all-time downloads
All-time downloads
3K
Public
Repo size
32.3 GB
Likes
0
Public
Click a slice to open those files.
.gguf37.3 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
gemma-2-baku-2b - GGUF
| Name | Quant method | Size |
|---|---|---|
| gemma-2-baku-2b.Q2_K.gguf | Q2_K | 1.15GB |
| gemma-2-baku-2b.IQ3_XS.gguf | IQ3_XS | 1.22GB |
| gemma-2-baku-2b.IQ3_S.gguf | IQ3_S | 1.27GB |
| gemma-2-baku-2b.Q3_K_S.gguf | Q3_K_S | 1.27GB |
| gemma-2-baku-2b.IQ3_M.gguf | IQ3_M | 1.3GB |
| gemma-2-baku-2b.Q3_K.gguf | Q3_K | 1.36GB |
| gemma-2-baku-2b.Q3_K_M.gguf | Q3_K_M | 1.36GB |
| gemma-2-baku-2b.Q3_K_L.gguf | Q3_K_L | 1.44GB |
| gemma-2-baku-2b.IQ4_XS.gguf | IQ4_XS | 1.47GB |
| gemma-2-baku-2b.Q4_0.gguf | Q4_0 | 1.52GB |
| gemma-2-baku-2b.IQ4_NL.gguf | IQ4_NL | 1.53GB |
| gemma-2-baku-2b.Q4_K_S.gguf | Q4_K_S | 1.53GB |
| gemma-2-baku-2b.Q4_K.gguf | Q4_K | 1.59GB |
| gemma-2-baku-2b.Q4_K_M.gguf | Q4_K_M | 1.59GB |
| gemma-2-baku-2b.Q4_1.gguf | Q4_1 | 1.64GB |
| gemma-2-baku-2b.Q5_0.gguf | Q5_0 | 1.75GB |
| gemma-2-baku-2b.Q5_K_S.gguf | Q5_K_S | 1.75GB |
| gemma-2-baku-2b.Q5_K.gguf | Q5_K | 1.79GB |
| gemma-2-baku-2b.Q5_K_M.gguf | Q5_K_M | 1.79GB |
| gemma-2-baku-2b.Q5_1.gguf | Q5_1 | 1.87GB |
| gemma-2-baku-2b.Q6_K.gguf | Q6_K | 2.0GB |
| gemma-2-baku-2b.Q8_0.gguf | Q8_0 | 2.59GB |
thumbnail: https://github.com/rinnakk/japanese-pretrained-models/blob/master/rinna.png license: gemma datasets:
Gemma 2 Baku 2B (rinna/gemma-2-baku-2b)
We conduct continual pre-training of google/gemma-2-2b on 80B tokens from a mixture of Japanese and English datasets. The continual pre-training improves the model's performance on Japanese tasks.
The name baku comes from the Japanese word 獏/ばく/Baku, which is a kind of Japanese mythical creature (妖怪/ようかい/Youkai).
Library
The model was trained using code based on Lightning-AI/litgpt.
Model architecture
A 26-layer, 2304-hidden-size transformer-based language model. Please refer to the Gemma 2 Model Card for detailed information on the model's architecture.
Training
The model was initialized with the google/gemma-2-2b model and continually trained on around 80B tokens from a mixture of the following corpora
Contributors
Please refer to rinna's LM benchmark page.
import transformers
import torch
model_id = "rinna/gemma-2-baku-2b"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16, "attn_implementation": "eager"},
device_map="auto"
)
output = pipeline(
"西田幾多郎は、",
max_new_tokens=256,
do_sample=True
)
print(output[0]["generated_text"])
It is recommended to use eager attention when conducting batch inference under bfloat16 precision. Currently, Gemma 2 yields NaN values for input sequences with padding when the default attention mechanism (torch.scaled_dot_product_attention) is employed in conjunction with bfloat16.
The model uses the original google/gemma-2-2b tokenizer.
@misc{rinna-gemma-2-baku-2b,
title = {rinna/gemma-2-baku-2b},
author = {Wakatsuki, Toshiaki and Chen, Xinqi and Sawada, Kei},
url = {https://huggingface.co/rinna/gemma-2-baku-2b}
}
@inproceedings{sawada2024release,
title = {Release of Pre-Trained Models for the {J}apanese Language},
author = {Sawada, Kei and Zhao, Tianyu and Shing, Makoto and Mitsui, Kentaro and Kaga, Akio and Hono, Yukiya and Wakatsuki, Toshiaki and Mitsuda, Koh},
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
month = {5},
year = {2024},
pages = {13898--13905},
url = {https://aclanthology.org/2024.lrec-main.1213},
note = {\url{https://arxiv.org/abs/2404.01657}}
}
@article{gemma-2-2024,
title = {Gemma 2},
url = {https://www.kaggle.com/models/google/gemma-2},
publisher = {Kaggle},
author = {Gemma Team},
year = {2024}
}
@misc{litgpt-2023,
author = {Lightning AI},
title = {LitGPT},
howpublished = {\url{https://github.com/Lightning-AI/litgpt}},
year = {2023}
}