Downloads · 30 days
2.7K
5% of all-time downloads
cyberagent/Mistral-Nemo-Japanese-Instruct-2408
Mistral-Nemo-Japanese-Instruct-2408 is a text generation model from cyberagent. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a Japanese continually pre-trained model based on mistralai/Mistral-Nemo-Instruct-2407.
Downloads · 30 days
2.7K
5% of all-time downloads
All-time downloads
55.7K
Public
Parameters
12.2B
24.5 GB on disk
Likes
49
Public
Click a slice to open those files.
.safetensors24.5 GB · 100%
From the Hugging Face model README
This is a Japanese continually pre-trained model based on mistralai/Mistral-Nemo-Instruct-2407.
Make sure to update your transformers installation via pip install --upgrade transformers.
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model = AutoModelForCausalLM.from_pretrained("cyberagent/Mistral-Nemo-Japanese-Instruct-2408", device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("cyberagent/Mistral-Nemo-Japanese-Instruct-2408")
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
messages = [
{"role": "system", "content": "あなたは親切なAIアシスタントです。"},
{"role": "user", "content": "AIによって私たちの暮らしはどのように変わりますか?"}
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
output_ids = model.generate(input_ids,
max_new_tokens=1024,
temperature=0.5,
streamer=streamer)
ChatML Format
<s><|im_start|>system
あなたは親切なAIアシスタントです。<|im_end|>
<|im_start|>user
AIによって私たちの暮らしはどのように変わりますか?<|im_end|>
<|im_start|>assistant
Apache-2.0
@misc{cyberagent-mistral-nemo-japanese-instruct-2408,
title={Mistral-Nemo-Japanese-Instruct-2408},
url={https://huggingface.co/cyberagent/Mistral-Nemo-Japanese-Instruct-2408},
author={Ryosuke Ishigami},
year={2024},
}