Downloads · 30 days
169
0% of all-time downloads
cyberagent/Llama-3.1-70B-Japanese-Instruct-2407
Llama-3.1-70B-Japanese-Instruct-2407 is a text generation model from cyberagent. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
This is a Japanese continually pre-trained model based on meta-llama/Meta-Llama-3.1-70B-Instruct.
Downloads · 30 days
169
0% of all-time downloads
All-time downloads
37.9K
Public
Parameters
70.6B
141 GB on disk
Likes
77
Public
Click a slice to open those files.
.safetensors141 GB · 100%
From the Hugging Face model README
This is a Japanese continually pre-trained model based on meta-llama/Meta-Llama-3.1-70B-Instruct.
Make sure to update your transformers installation via pip install --upgrade transformers.
from transformers import AutoModelForCausalLM, AutoTokenizer, TextStreamer
model = AutoModelForCausalLM.from_pretrained("cyberagent/Llama-3.1-70B-Japanese-Instruct-2407", device_map="auto", torch_dtype="auto")
tokenizer = AutoTokenizer.from_pretrained("cyberagent/Llama-3.1-70B-Japanese-Instruct-2407")
streamer = TextStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
messages = [
{"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,
streamer=streamer)
Llama 3.1 Format
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{{ system_prompt }}<|eot_id|><|start_header_id|>user<|end_header_id|>
{{ user_message_1 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{ assistant_message_1 }}<|eot_id|><|start_header_id|>user<|end_header_id|>
{{ user_message_2 }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Meta Llama 3.1 Community License
@misc{cyberagent-llama-3.1-70b-japanese-instruct-2407,
title={cyberagent/Llama-3.1-70B-Japanese-Instruct-2407},
url={https://huggingface.co/cyberagent/Llama-3.1-70B-Japanese-Instruct-2407},
author={Ryosuke Ishigami},
year={2024},
}
@article{llama3.1modelcard,
title = {Llama 3.1 Model Card},
author = {AI@Meta},
year = {2024},
url = {https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/MODEL_CARD.md}
}