Instructions to use rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b") model = AutoModelForCausalLM.from_pretrained("rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b
- SGLang
How to use rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b with Docker Model Runner:
docker model run hf.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,6 @@ thumbnail: https://github.com/rinnakk/japanese-pretrained-models/blob/master/rin
|
|
| 3 |
license: apache-2.0
|
| 4 |
language:
|
| 5 |
- ja
|
| 6 |
-
- en
|
| 7 |
tags:
|
| 8 |
- qwen2
|
| 9 |
- conversational
|
|
@@ -25,9 +24,13 @@ library_name: transformers
|
|
| 25 |
This model is a [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) distilled variant of [rinna/qwen2.5-bakeneko-32b](https://huggingface.co/rinna/qwen2.5-bakeneko-32b), fine-tuned using Chat Vector and Odds Ratio Preference Optimization (ORPO).
|
| 26 |
It adheres to the DeepSeek-R1 chat format and is designed to deliever superior performance in Japanese language tasks.
|
| 27 |
|
| 28 |
-
|
|
| 29 |
-
| :- | :-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
* **Model architecture**
|
| 33 |
|
|
@@ -52,11 +55,27 @@ It adheres to the DeepSeek-R1 chat format and is designed to deliever superior p
|
|
| 52 |
- [Toshiaki Wakatsuki](https://huggingface.co/t-w)
|
| 53 |
- [Kei Sawada](https://huggingface.co/keisawada)
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
---
|
| 56 |
|
| 57 |
# Benchmarking
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
---
|
| 62 |
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
language:
|
| 5 |
- ja
|
|
|
|
| 6 |
tags:
|
| 7 |
- qwen2
|
| 8 |
- conversational
|
|
|
|
| 24 |
This model is a [DeepSeek-R1](https://huggingface.co/deepseek-ai/DeepSeek-R1) distilled variant of [rinna/qwen2.5-bakeneko-32b](https://huggingface.co/rinna/qwen2.5-bakeneko-32b), fine-tuned using Chat Vector and Odds Ratio Preference Optimization (ORPO).
|
| 25 |
It adheres to the DeepSeek-R1 chat format and is designed to deliever superior performance in Japanese language tasks.
|
| 26 |
|
| 27 |
+
| Model Type | Model Name
|
| 28 |
+
| :- | :-
|
| 29 |
+
| Japanese Continual Pre-Training Model | Qwen2.5 Bakeneko 32B [[HF]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b)
|
| 30 |
+
| Instruction-Tuning Model | Qwen2.5 Bakeneko 32B Instruct [[HF]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct)[[AWQ]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-awq)[[GGUF]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-gguf)[[GPTQ int8]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-gptq-int8)[[GPTQ int4]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-gptq-int4)
|
| 31 |
+
| DeepSeek R1 Distill Qwen2.5 Merged Reasoning Model | DeepSeek R1 Distill Qwen2.5 Bakeneko 32B [[HF]](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b)[[AWQ]](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b-awq)[[GGUF]](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b-gguf)[[GPTQ int8]](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b-gptq-int8)[[GPTQ int4]](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b-gptq-int4)
|
| 32 |
+
| QwQ Merged Reasoning Model | QwQ Bakeneko 32B [[HF]](https://huggingface.co/rinna/qwq-bakeneko-32b)[[AWQ]](https://huggingface.co/rinna/qwq-bakeneko-32b-awq)[[GGUF]](https://huggingface.co/rinna/qwq-bakeneko-32b-gguf)[[GPTQ int8]](https://huggingface.co/rinna/qwq-bakeneko-32b-gptq-int8)[[GPTQ int4]](https://huggingface.co/rinna/qwq-bakeneko-32b-gptq-int4)
|
| 33 |
+
| QwQ Bakeneko Merged Instruction-Tuning Model | Qwen2.5 Bakeneko 32B Instruct V2 [[HF]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2)[[AWQ]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2-awq)[[GGUF]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2-gguf)[[GPTQ int8]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2-gptq-int8)[[GPTQ int4]](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2-gptq-int4)
|
| 34 |
|
| 35 |
* **Model architecture**
|
| 36 |
|
|
|
|
| 55 |
- [Toshiaki Wakatsuki](https://huggingface.co/t-w)
|
| 56 |
- [Kei Sawada](https://huggingface.co/keisawada)
|
| 57 |
|
| 58 |
+
* **Release date**
|
| 59 |
+
|
| 60 |
+
February 13, 2025
|
| 61 |
+
|
| 62 |
---
|
| 63 |
|
| 64 |
# Benchmarking
|
| 65 |
|
| 66 |
+
| Model | Japanese LM Evaluation Harness | Japanese MT-Bench (first turn) | Japanese MT-Bench (multi turn)
|
| 67 |
+
| :- | :-: | :-: | :-:
|
| 68 |
+
| [Qwen/Qwen2.5-32B](https://huggingface.co/Qwen/Qwen2.5-32B) | 79.46 | - | -
|
| 69 |
+
| [rinna/qwen2.5-bakeneko-32b](https://huggingface.co/rinna/qwen2.5-bakeneko-32b) | 79.18 | - | -
|
| 70 |
+
| [Qwen/Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) | 78.29 | 8.13 | 7.54
|
| 71 |
+
| [rinna/qwen2.5-bakeneko-32b-instruct](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct) | 79.62 | 8.17 | 7.66
|
| 72 |
+
| [rinna/qwen2.5-bakeneko-32b-instruct-v2](https://huggingface.co/rinna/qwen2.5-bakeneko-32b-instruct-v2) | 77.92 | 8.86 | 8.53
|
| 73 |
+
| [deepseek-ai/DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B) | 73.51 | 7.39 | 6.88
|
| 74 |
+
| [rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b](https://huggingface.co/rinna/deepseek-r1-distill-qwen2.5-bakeneko-32b) | 77.43 | 8.58 | 8.19
|
| 75 |
+
| [Qwen/QwQ-32B](https://huggingface.co/Qwen/QwQ-32B) | 76.12 | 8.58 | 8.25
|
| 76 |
+
| [rinna/qwq-bakeneko-32b](https://huggingface.co/rinna/qwq-bakeneko-32b) | 78.31 | 8.81 | 8.52
|
| 77 |
+
|
| 78 |
+
For detailed benchmarking results, please refer to [rinna's LM benchmark page (Sheet 20250213)](https://rinnakk.github.io/research/benchmarks/lm/index.html).
|
| 79 |
|
| 80 |
---
|
| 81 |
|