rinna / youri-7b

huggingface.co
Total runs: 1.3K
24-hour runs: 0
7-day runs: 17
30-day runs: -461
Model's Last Updated: March 23 2025
text-generation

Introduction of youri-7b

Model Details of youri-7b

rinna/youri-7b

rinna-icon

Overview

We conduct continual pre-training of llama2-7b on 40B tokens from a mixture of Japanese and English datasets. The continual pre-training significantly improves the model's performance on Japanese tasks.

The name youri comes from the Japanese word 妖狸/ようり/Youri , which is a kind of Japanese mythical creature ( 妖怪/ようかい/Youkai ).


Benchmarking

Please refer to rinna's LM benchmark page .

How to use the model

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("rinna/youri-7b")
model = AutoModelForCausalLM.from_pretrained("rinna/youri-7b")

if torch.cuda.is_available():
    model = model.to("cuda")

text = "西田幾多郎は、"
token_ids = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt")

with torch.no_grad():
    output_ids = model.generate(
        token_ids.to(model.device),
        max_new_tokens=200,
        min_new_tokens=200,
        do_sample=True,
        temperature=1.0,
        top_p=0.95,
        pad_token_id=tokenizer.pad_token_id,
        bos_token_id=tokenizer.bos_token_id,
        eos_token_id=tokenizer.eos_token_id
    )

output = tokenizer.decode(output_ids.tolist()[0])
print(output)
"""
西田幾多郎は、プラトンの復権を主張し、対する従来の西洋哲学は、近代の合理主義哲学に委ね、「従来の哲学は破 壊されてしまった」と述べている。 西田幾多郎は、西洋近代哲学の「徹底的な検討」を拒んだ。それは、「現代的理解の脆弱性を補う筈の、従来のヨーロッパに伝わる哲学的な方法では到底それができなかったからである」とい
"""

Tokenization

The model uses the original llama-2 tokenizer.


How to cite

@misc{rinna-youri-7b,
    title = {rinna/youri-7b},
    author = {Zhao, Tianyu and Kaga, Akio and Sawada, Kei},
    url = {https://huggingface.co/rinna/youri-7b}
}

@inproceedings{sawada2024release,
    title = {Release of Pre-Trained Models for the {J}apanese Language},
    author = {Sawada, Kei and Zhao, Tianyu and Shing, Makoto and Mitsui, Kentaro and Kaga, Akio and Hono, Yukiya and Wakatsuki, Toshiaki and Mitsuda, Koh},
    booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
    month = {5},
    year = {2024},
    pages = {13898--13905},
    url = {https://aclanthology.org/2024.lrec-main.1213},
    note = {\url{https://arxiv.org/abs/2404.01657}}
}

References

@software{gpt-neox-library,
    title = {{GPT}-{N}eo{X}: Large Scale Autoregressive Language Modeling in {P}y{T}orch},
    author = {Andonian, Alex and Anthony, Quentin and Biderman, Stella and Black, Sid and Gali, Preetham and Gao, Leo and Hallahan, Eric and Levy-Kramer, Josh and Leahy, Connor and Nestler, Lucas and Parker, Kip and Pieler, Michael and Purohit, Shivanshu and Songz, Tri and Phil, Wang and Weinbach, Samuel},
    doi = {10.5281/zenodo.5879544},
    month = {8},
    year = {2021},
    version = {0.0.1},
    url = {https://www.github.com/eleutherai/gpt-neox}
}

License

The llama2 license

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 47.11
AI2 Reasoning Challenge (25-Shot) 49.06
HellaSwag (10-Shot) 74.89
MMLU (5-Shot) 42.22
TruthfulQA (0-shot) 36.03
Winogrande (5-shot) 71.82
GSM8k (5-shot) 8.64

Runs of rinna youri-7b on huggingface.co

1.3K
Total runs
0
24-hour runs
0
3-day runs
17
7-day runs
-461
30-day runs

More Information About youri-7b huggingface.co Model

More youri-7b license Visit here:

https://choosealicense.com/licenses/llama2

youri-7b huggingface.co

youri-7b huggingface.co is an AI model on huggingface.co that provides youri-7b's model effect (), which can be used instantly with this rinna youri-7b model. huggingface.co supports a free trial of the youri-7b model, and also provides paid use of the youri-7b. Support call youri-7b model through api, including Node.js, Python, http.

youri-7b huggingface.co Url

https://huggingface.co/rinna/youri-7b

rinna youri-7b online free

youri-7b huggingface.co is an online trial and call api platform, which integrates youri-7b's modeling effects, including api services, and provides a free online trial of youri-7b, you can try youri-7b online for free by clicking the link below.

rinna youri-7b online free url in huggingface.co:

https://huggingface.co/rinna/youri-7b

youri-7b install

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

youri-7b install url in huggingface.co:

https://huggingface.co/rinna/youri-7b

Url of youri-7b

youri-7b huggingface.co Url

Provider of youri-7b huggingface.co

rinna
ORGANIZATIONS

Other API from rinna

huggingface.co

Total runs: 1.3K
Run Growth: -801
Growth Rate: -59.78%
Updated:March 23 2025
huggingface.co

Total runs: 278
Run Growth: 163
Growth Rate: 58.63%
Updated:March 23 2025
huggingface.co

Total runs: 33
Run Growth: -1
Growth Rate: -3.03%
Updated:March 23 2025
huggingface.co

Total runs: 14
Run Growth: 1
Growth Rate: 7.14%
Updated:March 23 2025
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:March 23 2025