elyza / Llama-3-ELYZA-JP-8B

huggingface.co
Total runs: 6.1K
24-hour runs: 0
7-day runs: 182
30-day runs: -352
Model's Last Updated: June 26 2024
text-generation

Introduction of Llama-3-ELYZA-JP-8B

Model Details of Llama-3-ELYZA-JP-8B

Llama-3-ELYZA-JP-8B

Llama-3-ELYZA-JP-8B-image

Model Description

Llama-3-ELYZA-JP-8B is a large language model trained by ELYZA, Inc . Based on meta-llama/Meta-Llama-3-8B-Instruct , it has been enhanced for Japanese usage through additional pre-training and instruction tuning. (Built with Meta Llama3)

For more details, please refer to our blog post .

Usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

DEFAULT_SYSTEM_PROMPT = "あなたは誠実で優秀な日本人のアシスタントです。特に指示が無い場合は、常に日本語で回答してください。"
text = "仕事の熱意を取り戻すためのアイデアを5つ挙げてください。"

model_name = "elyza/Llama-3-ELYZA-JP-8B"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
)
model.eval()

messages = [
    {"role": "system", "content": DEFAULT_SYSTEM_PROMPT},
    {"role": "user", "content": text},
]
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
token_ids = tokenizer.encode(
    prompt, add_special_tokens=False, return_tensors="pt"
)

with torch.no_grad():
    output_ids = model.generate(
        token_ids.to(model.device),
        max_new_tokens=1200,
        do_sample=True,
        temperature=0.6,
        top_p=0.9,
    )
output = tokenizer.decode(
    output_ids.tolist()[0][token_ids.size(1):], skip_special_tokens=True
)
print(output)
Developers

Listed in alphabetical order.

License

Meta Llama 3 Community License

How to Cite
@misc{elyzallama2024,
      title={elyza/Llama-3-ELYZA-JP-8B},
      url={https://huggingface.co/elyza/Llama-3-ELYZA-JP-8B},
      author={Masato Hirakawa and Shintaro Horie and Tomoaki Nakamura and Daisuke Oba and Sam Passaglia and Akira Sasaki},
      year={2024},
}
Citations
@article{llama3modelcard,
    title={Llama 3 Model Card},
    author={AI@Meta},
    year={2024},
    url = {https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md}
}

Runs of elyza Llama-3-ELYZA-JP-8B on huggingface.co

6.1K
Total runs
0
24-hour runs
-75
3-day runs
182
7-day runs
-352
30-day runs

More Information About Llama-3-ELYZA-JP-8B huggingface.co Model

More Llama-3-ELYZA-JP-8B license Visit here:

https://choosealicense.com/licenses/llama3

Llama-3-ELYZA-JP-8B huggingface.co

Llama-3-ELYZA-JP-8B huggingface.co is an AI model on huggingface.co that provides Llama-3-ELYZA-JP-8B's model effect (), which can be used instantly with this elyza Llama-3-ELYZA-JP-8B model. huggingface.co supports a free trial of the Llama-3-ELYZA-JP-8B model, and also provides paid use of the Llama-3-ELYZA-JP-8B. Support call Llama-3-ELYZA-JP-8B model through api, including Node.js, Python, http.

Llama-3-ELYZA-JP-8B huggingface.co Url

https://huggingface.co/elyza/Llama-3-ELYZA-JP-8B

elyza Llama-3-ELYZA-JP-8B online free

Llama-3-ELYZA-JP-8B huggingface.co is an online trial and call api platform, which integrates Llama-3-ELYZA-JP-8B's modeling effects, including api services, and provides a free online trial of Llama-3-ELYZA-JP-8B, you can try Llama-3-ELYZA-JP-8B online for free by clicking the link below.

elyza Llama-3-ELYZA-JP-8B online free url in huggingface.co:

https://huggingface.co/elyza/Llama-3-ELYZA-JP-8B

Llama-3-ELYZA-JP-8B install

Llama-3-ELYZA-JP-8B is an open source model from GitHub that offers a free installation service, and any user can find Llama-3-ELYZA-JP-8B on GitHub to install. At the same time, huggingface.co provides the effect of Llama-3-ELYZA-JP-8B install, users can directly use Llama-3-ELYZA-JP-8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Llama-3-ELYZA-JP-8B install url in huggingface.co:

https://huggingface.co/elyza/Llama-3-ELYZA-JP-8B

Url of Llama-3-ELYZA-JP-8B

Llama-3-ELYZA-JP-8B huggingface.co Url

Provider of Llama-3-ELYZA-JP-8B huggingface.co

elyza
ORGANIZATIONS

Other API from elyza