Run this model with HF Jobs
Run iamtatsuki05/Llama-JP-3B-init on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/iamtatsuki05/Llama-JP-3B-init. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/iamtatsuki05/Llama-JP-3B-init on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/iamtatsuki05/Llama-JP-3B-init. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/iamtatsuki05/Llama-JP-3B-init. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use iamtatsuki05/Llama-JP-3B-init with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamtatsuki05/Llama-JP-3B-init with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iamtatsuki05/Llama-JP-3B-init")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iamtatsuki05/Llama-JP-3B-init") model = AutoModelForCausalLM.from_pretrained("iamtatsuki05/Llama-JP-3B-init", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iamtatsuki05/Llama-JP-3B-init with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iamtatsuki05/Llama-JP-3B-init" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamtatsuki05/Llama-JP-3B-init", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/iamtatsuki05/Llama-JP-3B-init
- SGLang
How to use iamtatsuki05/Llama-JP-3B-init with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "iamtatsuki05/Llama-JP-3B-init" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamtatsuki05/Llama-JP-3B-init", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "iamtatsuki05/Llama-JP-3B-init" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iamtatsuki05/Llama-JP-3B-init", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use iamtatsuki05/Llama-JP-3B-init with Docker Model Runner:
docker model run hf.co/iamtatsuki05/Llama-JP-3B-init
Llama-JP-3B-init
English / Japanese
Overview
Llama-JP-3B-init is a randomly initialized Llama checkpoint that reuses the configuration and tokenizer of sbintuitions/sarashina2.2-3b. 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-3B-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: 2560
- 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-3B-init | ModernBERT | 3309M | 3047M |
| iamtatsuki05/Llama-JP-3B-init (this model) |
Llama | 3093M | 2831M |
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}
}
- Downloads last month
- 271
