Llama-JP-1B-init
English / Japanese
Overview
Llama-JP-1B-init is a randomly initialized Llama checkpoint that reuses the configuration and tokenizer of sbintuitions/sarashina2.2-1b. It is a starting point for pre-training, not a usable model.

Usage
Requirements
transformers>=4.51.0
accelerate>=1.6.0
sentencepiece>=0.2.0
flash-attn>=2.7.3
Sample Code
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "iamtatsuki05/Llama-JP-1B-init"
model_kwargs = {
"torch_dtype": torch.bfloat16,
"attn_implementation": "flash_attention_2",
"device_map": "auto",
}
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, **model_kwargs)
prompt = "ちいかわのハチワレは"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.8,
top_p=0.9,
do_sample=True,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
Model Details
- Architecture: Llama
- Maximum sequence length: 8,192 tokens
- Embedding dimension: 1792
- Tokenizer: SentencePiece / vocabulary size 102,400
- Positional encoding: RoPE
- Supported languages: Japanese
Model Series
This table lists the initialization checkpoints prior to any training. All variants share the sarashina2.2 tokenizer.
| ID | Architecture | #Param. | #Param.w/o Emb. |
|---|---|---|---|
| iamtatsuki05/ModernBERT-JP-1B-init | ModernBERT | 1304M | 1120M |
| iamtatsuki05/Llama-JP-1B-init(this model) | Llama | 1224M | 1040M |
Licence
This model is distributed under the MIT License.
How to Cite
@article{MIREI
title={同一条件下における Encoder/Decoder アーキテクチャによる文埋め込みの性能分析},
author={岡田 龍樹 and 杉本 徹},
journal={言語処理学会第 32 回年次大会 (NLP2026)},
year={2026}
}
@misc{okada2026decoder,
title={What Makes Decoder-Based Sentence Embeddings Strong? Rethinking Encoder and Decoder Architectures for Sentence Embeddings},
author={Tatsuki Okada and Toru Sugimoto and Yusuke Sakai and Taro Watanabe},
year={2026},
eprint={2611.41554},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2611.41554}
}