---
library_name: transformers
model_name: shisa-v2-unphi4-14b
license: apache-2.0
datasets:
- shisa-ai/shisa-v2-sharegpt
- shisa-ai/deepseekv3-ultrafeedback-armorm-dpo
language:
- ja
- en
base_model:
- unsloth/phi-4
pipeline_tag: text-generation
---

# Shisa V2

Shisa V2 is a family of bilingual Japanese and English (JA/EN) general-purpose chat models trained by [Shisa.AI](https://shisa.ai). These models aim to excel in Japanese language tasks while retaining robust English capabilities.

Since our initial [Shisa 7B](https://huggingface.co/augmxnt/shisa-7b-v1) releases, the baseline Japanese capabilities of open-weight language models have significantly improved. New models have more Japanese pre-training tokens, higher [JA tokenizer efficiency](https://github.com/shisa-ai/shisa-v2/blob/main/eval/tokenizer-efficiency/tokenizer-eval-ja.md), and better quality Japanese outputs overall. As such, for Shisa V2 we've eschewed both tokenizer extension and costly continued pre-training and have focused entirely on optimizing post-training. We've significantly expanded and refined the synthetic-data driven approach that was pioneered with our original [Shisa 7B](https://huggingface.co/augmxnt/shisa-7b-v1) models, and have achieved substantial performance gains.

## Model Family Overview

The Shisa V2 family comprises a range of models from 7B to 70B parameters in size:

| License | Model | Parameters | Context Length | JA AVG | EN AVG |
|----|----|----|----|----|----|
| Apache 2.0 | [shisa-v2-qwen2.5-7b](https://huggingface.co/shisa-ai/shisa-v2-qwen2.5-7b) | 7B | 128K/8K | 71.06 | 54.86 |
| Llama 3.1 | [shisa-v2-llama3.1-8b](https://huggingface.co/shisa-ai/shisa-v2-llama3.1-8b)<sup>1</sup> | 8B | 128K | 70.83 | 54.75 |
| Apache 2.0 | [shisa-v2-mistral-nemo-12b](https://huggingface.co/shisa-ai/shisa-v2-mistral-nemo-12b) | 12B | 128K | 72.83 | 53.33 |
| MIT | [shisa-v2-unphi4-14b](https://huggingface.co/shisa-ai/shisa-v2-unphi4-14b) | 14B | 16K | 75.89 | 60.10 |
| Apache 2.0 | [shisa-v2-qwen2.5-32b](https://huggingface.co/shisa-ai/shisa-v2-qwen2.5-32b) | 32B | 128K/8K | 76.97 | 67.41 |
| Llama 3.3 | [shisa-v2-llama3.3-70b](https://huggingface.co/shisa-ai/shisa-v2-llama3.3-70b)<sup>1</sup> | 70B | 128K | 79.72 | 67.71 |

These Shisa V2 models were all trained using the same datasets and training recipes, except for scaling the learning rate based on model size and modifying the global batch size for the 70B model.

While most of our development and tuning was done on the Llama 3.1 8B model, we did some cross-validation during this process and we're pleased that our final recipe has shown robust scaling, improving Japanese language performance across all model sizes evaluated. We've prioritized releasing the highest-quality openly-licensed (Apache 2.0 and MIT) models in each class size.

## Performance

All Shisa V2 models demonstrate improved Japanese output quality compared to their respective base models:

**NOTE:** We actually tune from [unsloth/phi-4](https://huggingface.co/unsloth/phi-4), [Unsloth](https://unsloth.ai/)'s llamafied version of [microsoft/phi-4](https://huggingface.co/microsoft/phi-4) as that allows for faster training with [Liger Kernel](https://github.com/linkedin/Liger-Kernel) support and generally makes life easier. Benchmark results are within margin of error, so for simplicity, we just use the microsoft/phi-4 model results.

| Model Name                                                                                   | JA Avg    | EN Avg    | Shaberi Avg | ELYZA 100  | JA MT Bench | Rakuda    | Tengu     | llm-jp-eval | shisa-jp-ifeval | shisa-jp-rp-bench | shisa-jp-tl-bench | MixEval   | LiveBench  | IFEval    | EvalPlus                  |
|----------------------------------------------------------------------------------------------|----------:|----------:|------------:|-----------:|------------:|----------:|----------:|------------:|----------------:|------------------:|-------------------:|----------:|----------:|----------:|--------------------------|
| [shisa-ai/shisa-v2-unphi4-14b](https://huggingface.co/shisa-ai/shisa-v2-unphi4-14b) | **75.89** | 60.10     | **8.50**    | 8.45       | **8.84**    | 8.96    | **7.73**    | **0.62**        | **0.43**        | **4.76**          | **6.79**              | **0.53** | 40.7      | 0.67    | 0.80     |
| [microsoft/phi-4](https://huggingface.co/microsoft/phi-4)                           | 72.47     | **61.14**     | 8.48        | **8.49**   | 8.65        | **9.11**    | 7.68    | 0.58        | 0.35            | 4.55             | 5.62              | 0.52     | **42.1**      | **0.69**    | **0.81** |

The Shisa V2 models perform well against other models in their respective class sizes.

| License    | Model                                                                        | JA AVG    | EN AVG    | Shaberi AVG | ELYZA 100  | JA MT Bench | Rakuda  | Tengu   | llm-jp-eval | shisa-jp-ifeval | shisa-jp-rp-bench | shisa-jp-tl-bench | MixEval  | LiveBench | IFEval  | EvalPlus |
|------------|------------------------------------------------------------------------------------|-----------|-----------|-------------|------------|-------------|---------|---------|-------------|-----------------|-------------------|-------------------|----------|-----------|---------|----------|
| MIT        | [shisa-ai/shisa-v2-unphi4-14b](https://huggingface.co/shisa-ai/shisa-v2-unphi4-14b)          | **75.89** | 60.10     | **8.50**    | 8.45       | **8.84**    | 8.96    | 7.73    | 0.62        | **0.43**        | **4.76**          | 6.79              | **0.53** | 40.7      | 0.67    | 0.80     |
| Gemma      | google/gemma-3-12b-it                                                             | 75.15     | 62.10     | 8.48        | 8.34       | 8.67        | 9.02    | **7.88** | 0.60        | 0.35            | 4.64             | **7.40**          | 0.44     | **45.3**  | **0.83** | 0.76     |
| Apache 2.0 | [shisa-ai/shisa-v2-mistral-nemo-12b](https://huggingface.co/shisa-ai/shisa-v2-mistral-nemo-12b)    | 72.83     | 53.33     | 8.46        | 8.38       | 8.79        | 9.06    | 7.63    | 0.58        | 0.31            | 4.55             | 6.39              | 0.39     | 33.4      | 0.74    | 0.68     |
| MIT        | microsoft/phi-4                                                                   | 72.47     | 61.14     | 8.48        | **8.49**   | 8.65        | 9.11    | 7.68    | 0.58        | 0.35            | 4.55             | 5.62              | 0.52     | 42.1      | 0.69    | **0.81** |
| Apache 2.0 | cyberagent/Mistral-Nemo-Japanese-Instruct-2408                                     | 71.12     | 48.00     | 8.28        | 8.11       | 8.55        | **9.21** | 7.24    | 0.58        | 0.26            | 4.59             | 6.25              | 0.34     | 28.5      | 0.62    | 0.67     |
| Apache 2.0 | Qwen/Qwen2.5-14B-Instruct                                                         | 71.02     | **62.54** | 8.27        | 8.15       | 8.64        | 8.70    | 7.59    | **0.63**     | 0.34            | 4.51             | 5.03              | 0.52     | 41.4      | 0.81    | 0.76     |
| Apache 2.0 | mistralai/Mistral-Nemo-Instruct-2407                                              | 58.44     | 48.07     | 7.68        | 7.29       | 8.03        | 8.68    | 6.73    | 0.55        | 0.13            | 3.60             | 2.11              | 0.31     | 30.0      | 0.64    | 0.68     |

### Testing Notes

Japanese functional tests were conducted using the **[shisa-ai/shaberi](https://github.com/shisa-ai/shaberi/)** fork of the [LightBlue Shaberi](https://github.com/lightblue-tech/japanese_llm_eval) evaluation harness. Shaberi ratings were performed with a **[PoLL](https://arxiv.org/abs/2404.18796)** (LLM Jury) consisting of:

- [Athene-V2](https://huggingface.co/Nexusflow/Athene-V2-Chat)
- [Llama 3.3 70B](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct)
- [Tulu 3 405B FP8](https://huggingface.co/shisa-ai/Llama-3.1-Tulu-3-405B-FP8-Dynamic)

The results were statistically validated to be comparable to both `gpt-4-1106-preview` and human-reviewed "gold standard" ratings.

Dynamic RoPE extension was utilized when necessary for testing models with context windows smaller than 8K tokens. All tests were performed using recent versions of [vLLM](https://github.com/vllm-project/vllm) or [SGLang](https://github.com/sgl-project/sglang).

We developed a custom "multieval" harness to automate our model evaluations. Standard benchmarks include:

- [ELYZA Tasks 100](https://huggingface.co/datasets/elyza/ELYZA-tasks-100)
- [JA MT-Bench](https://github.com/Stability-AI/FastChat/tree/jp-stable/fastchat/llm_judge) ([dataset](https://huggingface.co/datasets/shisa-ai/ja-mt-bench-1shot))
- [Rakuda](https://huggingface.co/datasets/yuzuai/rakuda-questions)
- [Tengu Bench](https://huggingface.co/datasets/lightblue/tengu_bench)
- [llm-jp-eval](https://github.com/llm-jp/llm-jp-eval) (v1.4.1)
- [MixEval](https://mixeval.github.io/)
- [LiveBench](https://livebench.ai/) (2024-11-25)
- [IFEval](https://huggingface.co/datasets/google/IFEval) ([Lighteval](https://github.com/huggingface/lighteval))
- [EvalPlus](https://github.com/evalplus/evalplus)

### New Japanese Benchmarks

Over the course of model development, we also created several new evaluations to help us measure performance on important Japanese downstream tasks:

- **shisa-jp-ifeval**: Inspired by [IFEval](https://huggingface.co/datasets/google/IFEval), but evaluating instruction-following abilities specific to Japanese grammar and linguistics (closed form)
- **shisa-jp-rp-bench**: Assessing performance on Japanese role-play and character/persona-based multi-turn conversations based on [Aratako](https://huggingface.co/Aratako)'s [Japanese-RP-Bench](https://github.com/Aratako/Japanese-RP-Bench) (LLM judge)
- **shisa-jp-tl-bench**: Testing Japanese-English translation proficiency (LLM judge, BTL pairwise comparison with logistic transformation scoring)

We believe these benchmarks will be generally useful and plan to open-source them in the near future to support the Japanese LLM research community.

## Usage

All Shisa V2 models inherit the [chat templates](https://huggingface.co/docs/transformers/v4.37.1/chat_templating) of their respective base models and have been tested and validated for proper inference with both [vLLM](https://github.com/vllm-project/vllm) and [SGLang](https://github.com/sgl-project/sglang).

Running sampler sweeps, we found the models operate well across a variety of temperatures in most settings. For translation tasks specifically, we recommend a lower temperatures (0.2) to increase accuracy. For role-play and creative tasks, a higher temp (eg 1.0) seems to give good results. To prevent cross-lingual token leakage we recommend a top_p of 0.9 or min_p of 0.1.

No additional safety alignment has been done on these models, so they will largely inherit the base models' biases and safety profiles.

## Datasets

Our supervised fine-tuning (SFT) stage dataset consists of approximately 360K samples totaling roughly 420M Llama 3 tokens:

- [shisa-ai/shisa-v2-sharegpt](https://huggingface.co/datasets/shisa-ai/shisa-v2-sharegpt)
  - This is a filtered, regenerated and resampled version of the original Shisa V1 [augmxnt/ultra-orca-boros-en-ja-v1](https://huggingface.co/datasets/augmxnt/ultra-orca-boros-en-ja-v1) dataset
  - This was the backbone of our Shisa V2 training and it proved to be an extremely robust dataset, out-performing all existing mixes/additions (Tulu, Olmo, Rewild, various Magpie sets, etc.) - if you need a JA/EN dataset, we believe this new version is among the best currently available
- [shisa-ai/rewild-set-deepseek-subset](https://huggingface.co/datasets/shisa-ai/rewild-set-deepseek-subset)
  - A filtered version of [Rewild](https://arxiv.org/abs/2501.18511) ([WildChat](https://wildchat.allen.ai/)) prompts translated into Japanese, with responses generated by [DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324)
- shisa-ai/magpie-ultra-set
  - Japanese generations based on [argilla/magpie-ultra-v1.0](https://huggingface.co/datasets/argilla/magpie-ultra-v1.0)
- shisa-ai/magpie-advanced-questions-set
  - [Magpie](https://magpie-align.github.io/)-generated questions about advanced college-level topics across a variety of academic fields
- shisa-ai/japan-magpie-set
  - [Magpie](https://magpie-align.github.io/)-generated questions about Japan's economy and history as well as cultural and business practices
- shisa-ai/shisa-v2-roleplaying-sft
  - Synthetically-generated roleplaying data featuring a wide variety of characters, situations, and genres
- shisa-ai/translation_expanded_master_set_filtered
  - A synthetic dataset involving a wide range of translation tasks, including essays, conversations, and fiction
- shisa-ai/shisa-v2-instruction-following-sft
  - An instruction following dataset based on prompts from ([Aratako/Magpie-Tanuki-8B-annotated-96k](https://huggingface.co/datasets/Aratako/Magpie-Tanuki-8B-annotated-96k)) and a list of instruction-following constraints

Our final DPO mix is 113K samples totaling approximately 115M Llama 3 tokens:

- [shisa-ai/deepseekv3-ultrafeedback-armorm-dpo](https://huggingface.co/datasets/shisa-ai/deepseekv3-ultrafeedback-armorm-dpo)
  - This is a version of [princeton-nlp/gemma2-ultrafeedback-armorm](https://huggingface.co/datasets/princeton-nlp/gemma2-ultrafeedback-armorm) with `chosen` responses regenerated by [DeepSeek-V3-0324](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324)
  - Surprisingly, we found that using this relatively small DPO alignment set in English-only outperformed both JA/EN DPO sets and also much larger sets like the [Tulu 3 preference mixture](https://huggingface.co/datasets/allenai/llama-3.1-tulu-3-405b-preference-mixture)
- shisa-ai/shisa-v2-roleplaying-dpo
  - A DPO variant of the roleplaying-sft set that uses an [UltraFeedback](https://github.com/OpenBMB/UltraFeedback)-style rating system
- shisa-ai/translation-no-extra-text-dpo-dataset
  - A DPO set that aims to reduce the tendency of models to output extraneous explanatory text for translations when not wanted
- shisa-ai/shisa-v2-instruction-following-dpo
  - A DPO variant of the instruction-following-sft set to further enhance instruction-following performance
- shisa-ai/politeness-dpo-set
  - A set to allow for greater controllability of speaking style for Japanese responses

## Training

We trained over 200 models to empirically test a wide range of variables. Beyond hyper-parameter and data-mix testing, we also ran numerous tests on data ordering, multilingual-specific ordering, curriculum learning, multi-stage training, various forms of self-play, preference tuning, and some of the latest RL/verifiable reward techniques.

A full discussion of these learnings is out of scope here, but we will be updating the [shisa-v2 wiki](https://github.com/shisa-ai/shisa-v2/wiki) and the [Shisa.AI website](http://shisa.ai/) with forthcoming writeups.

Most of our training was done on a small AWS Sagemaker-deployed 4-node H100 slurm cluster. Training was mostly done with [Axolotl](https://github.com/axolotl-ai-cloud/axolotl/) with [DeepSpeed](https://www.deepspeed.ai/) and [Liger Kernels](https://github.com/linkedin/Liger-Kernel). The Phi 4 and Llama 3.3 70B versions of Shisa V2 were trained with [OpenRLHF](https://github.com/OpenRLHF/OpenRLHF). Our training logs are [publicly available on Weights and Biases](https://wandb.ai/augmxnt/shisa-v2). 

### Credits

The Shisa V2 models were developed by [Leonard Lin](https://huggingface.co/leonardlin) and Adam Lensenmayer ([Shisa.AI](http://Shisa.AI)).

Compute was provided by [Ubitus K.K.](https://ubitus.net/) and [METI GENIAC](https://www.meti.go.jp/policy/mono_info_service/geniac/).

Thanks to [Meta Llama](https://huggingface.co/meta-llama), [Microsoft Research](https://huggingface.co/microsoft), [Mistral AI](https://huggingface.co/mistralai), and [Qwen Team](https://huggingface.co/Qwen) for providing their models to the open source community, [Unsloth](https://huggingface.co/unsloth) for their [llamafied conversion of Phi-4](https://huggingface.co/unsloth/phi-4), the Tulu team, whose detailed writeups and fast responses to our questions were very helpful, and [Chanvichet Vong](https://github.com/NanoCode012) of the Axolotl team for his tireless work in the Axolotl Discord.

We also extend our thanks to all open source AI developers and researchers - without their publicly shared research, tooling, and datasets, none of our work would be possible. We hope that our own contributions will further support the broader community.

A special thanks to [Jon Durbin](https://huggingface.co/jondurbin) for his work on Shisa V1. 

For more details on our development and insights, please visit the [Shisa V2 Github repository](https://github.com/shisa-ai/shisa-v2)  and the [Shisa.AI website](https://shisa.ai/).

---

<sup>*1: Per the Llama Community License Agreements, the official names of the Llama-based models are "Llama 3.1 shisa-v2-llama3.1-8b" and "Llama 3.3 shisa-v2-llama3.3-70b"*</sup>