Rakutenai 7b Chat
| Entity Passport | |
| Registry ID | hf-model--rakuten--rakutenai-7b-chat |
| License | Apache-2.0 |
| Provider | huggingface |
Compute Threshold
~6.5GB VRAM
* Static estimation for 4-Bit Quantization.
Cite this model
Academic & Research Attribution
@misc{hf_model__rakuten__rakutenai_7b_chat,
author = {Rakuten},
title = {Rakutenai 7b Chat Model},
year = {2026},
howpublished = {\url{https://huggingface.co/rakuten/rakutenai-7b-chat}},
note = {Accessed via Free2AITools Knowledge Fortress}
} π¬Technical Deep Dive
Full Specifications [+]βΎ
Quick Commands
ollama run rakutenai-7b-chat huggingface-cli download rakuten/rakutenai-7b-chat pip install -U transformers βοΈ Nexus Index V2.0
π¬ Index Insight
FNI V2.0 for Rakutenai 7b Chat: Semantic (S:50), Authority (A:0), Popularity (P:32), Recency (R:41), Quality (Q:65).
Verification Authority
π What's Next?
Technical Deep Dive
RakutenAI-7B-chat
Model Description
RakutenAI-7B is a systematic initiative that brings the latest technologies to the world of Japanese LLMs. RakutenAI-7B achieves the best scores on the Japanese language understanding benchmarks while maintaining a competitive performance on the English test sets among similar models such as OpenCalm, Elyza, Youri, Nekomata and Swallow. RakutenAI-7B leverages the Mistral model architecture and is based on Mistral-7B-v0.1 pre-trained checkpoint, exemplifying a successful retrofitting of the pre-trained model weights. Moreover, we extend Mistral's vocabulary from 32k to 48k to offer a better character-per-token rate for Japanese.
The technical report can be accessed at arXiv.
If you are looking for a foundation model, check RakutenAI-7B.
If you are looking for an instruction-tuned model, check RakutenAI-7B-instruct.
An independent evaluation by Kamata et.al. for Nejumi LLMγͺγΌγγΌγγΌγ Neo using a weighted average of llm-jp-eval and Japanese MT-bench also confirms the highest performance of chat/instruct versions of RakutenAI-7B among Open LLMs of similar sizes, with a score of 0.393/0.331 respectively, as of 22nd March 2024.
Usage
# With RakutenAI-7B-Chat's custom chat template.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "Rakuten/RakutenAI-7B-chat"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype="auto", device_map="auto")
model.eval()
chat = [
{"role": "system", "content": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions."},
{"role": "user", "content": "How to make an authentic Spanish Omelette?"},
]
input_ids = tokenizer.apply_chat_template(chat, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(device=model.device)
tokens = model.generate(
input_ids,
max_length=4096,
do_sample=False,
num_beams=1,
pad_token_id=tokenizer.eos_token_id,
)
out = tokenizer.decode(tokens[0][len(input_ids[0]):], skip_special_tokens=True)
print("ASSISTANT:\n" + out)
print()
# Without using custom chat template.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "Rakuten/RakutenAI-7B-chat"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype="auto", device_map="auto")
model.eval()
requests = [
"γ馬γεγγγ―γ©γθ¨γζε³γ§γγ",
"How to make an authentic Spanish Omelette?",
]
system_message = "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: {user_input} ASSISTANT:"
for req in requests:
input_req = system_message.format(user_input=req)
input_ids = tokenizer.encode(input_req, return_tensors="pt").to(device=model.device)
tokens = model.generate(
input_ids,
max_new_tokens=1024,
do_sample=True,
pad_token_id=tokenizer.eos_token_id,
)
out = tokenizer.decode(tokens[0][len(input_ids[0]):], skip_special_tokens=True)
print("USER:\n" + req)
print("ASSISTANT:\n" + out)
print()
print()
Model Details
- Developed by: Rakuten Group, Inc.
- Language(s): Japanese, English
- License: This model is licensed under Apache License, Version 2.0.
- Instruction-Tuning Dataset: We fine-tune our foundation model to create RakutenAI-7B-instruct and RakutenAI-7B-chat using a mix of open source and internally hand-crafted datasets. We use
trainpart of the following datasets (CC by-SA License) for instruction-tuned and chat-tuned models:
Limitations and Bias
The suite of RakutenAI-7B models is capable of generating human-like text on a wide range of topics. However, like all LLMs, they have limitations and can produce biased, inaccurate, or unsafe outputs. Please exercise caution and judgement while interacting with them.
Citation
For citing our work on the suite of RakutenAI-7B models, please use:
@misc{rakutengroup2024rakutenai7b,
title={RakutenAI-7B: Extending Large Language Models for Japanese},
author={{Rakuten Group, Inc.} and Aaron Levine and Connie Huang and Chenguang Wang and Eduardo Batista and Ewa Szymanska and Hongyi Ding and Hou Wei Chou and Jean-FranΓ§ois Pessiot and Johanes Effendi and Justin Chiu and Kai Torben Ohlhus and Karan Chopra and Keiji Shinzato and Koji Murakami and Lee Xiong and Lei Chen and Maki Kubota and Maksim Tkachenko and Miroku Lee and Naoki Takahashi and Prathyusha Jwalapuram and Ryutaro Tatsushima and Saurabh Jain and Sunil Kumar Yadav and Ting Cai and Wei-Te Chen and Yandi Xia and Yuki Nakayama and Yutaka Higashiyama},
year={2024},
eprint={2403.15484},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
β οΈ Incomplete Data
Some information about this model is not available. Use with Caution - Verify details from the original source before relying on this data.
View Original Source βπ Limitations & Considerations
- β’ Benchmark scores may vary based on evaluation methodology and hardware configuration.
- β’ VRAM requirements are estimates; actual usage depends on quantization and batch size.
- β’ FNI scores are relative rankings and may change as new models are added.
- β License Unknown: Verify licensing terms before commercial use.
Social Proof
AI Summary: Based on Hugging Face metadata. Not a recommendation.
π‘οΈ Model Transparency Report
Technical metadata sourced from upstream repositories.
π Identity & Source
- id
- hf-model--rakuten--rakutenai-7b-chat
- slug
- rakuten--rakutenai-7b-chat
- source
- huggingface
- author
- Rakuten
- license
- Apache-2.0
- tags
- transformers, pytorch, safetensors, mistral, text-generation, conversational, en, ja, arxiv:2403.15484, base_model:rakuten/rakutenai-7b, base_model:finetune:rakuten/rakutenai-7b, license:apache-2.0, text-generation-inference, endpoints_compatible, deploy:azure, region:us
βοΈ Technical Specs
- architecture
- null
- params billions
- 7
- context length
- 4,096
- pipeline tag
- text-generation
- vram gb
- 6.5
- vram is estimated
- true
- vram formula
- VRAM β (params * 0.75) + 0.8GB (KV) + 0.5GB (OS)
π Engagement & Metrics
- downloads
- 2,520
- stars
- 0
- forks
- 0
Data indexed from public sources. Updated daily.