Text Generation
Transformers
Safetensors
Japanese
English
deepseek_v3
RakutenAI
DeepSeek-R1
task-vector-merging
japanese
multilingual
conversational
custom_code
text-generation-inference
fp8
Instructions to use Local-Novel-LLM-project/RAI-3.0-R1-VECTOR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Local-Novel-LLM-project/RAI-3.0-R1-VECTOR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", trust_remote_code=True) 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Local-Novel-LLM-project/RAI-3.0-R1-VECTOR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Local-Novel-LLM-project/RAI-3.0-R1-VECTOR
- SGLang
How to use Local-Novel-LLM-project/RAI-3.0-R1-VECTOR 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 "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR" \ --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": "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", "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 "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR" \ --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": "Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Local-Novel-LLM-project/RAI-3.0-R1-VECTOR with Docker Model Runner:
docker model run hf.co/Local-Novel-LLM-project/RAI-3.0-R1-VECTOR
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ language:
|
|
| 12 |
- en
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
-
# RAI-R1-VECTOR
|
| 16 |
<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" style="margin: 2px;">
|
| 17 |
<img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-4caf50?&color=4caf50" style="display: inline-block; vertical-align: middle;"/>
|
| 18 |
</a>
|
|
@@ -20,7 +20,7 @@ pipeline_tag: text-generation
|
|
| 20 |
---
|
| 21 |
|
| 22 |
## Model Overview
|
| 23 |
-
**RAI-R1-VECTOR** is a task-vector merged model created using the following formula:
|
| 24 |
```
|
| 25 |
DeepSeek-R1-0528 + (RakutenAI-3.0 - DeepSeek-V3-0324)
|
| 26 |
```
|
|
@@ -46,8 +46,8 @@ This architecture combines the advanced reasoning capabilities of `DeepSeek-R1-0
|
|
| 46 |
```python
|
| 47 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
|
| 49 |
-
model = AutoModelForCausalLM.from_pretrained("Local-Novel-LLM-project/RAI-R1-VECTOR", trust_remote_code=True)
|
| 50 |
-
tokenizer = AutoTokenizer.from_pretrained("Local-Novel-LLM-project/RAI-R1-VECTOR")
|
| 51 |
|
| 52 |
inputs = tokenizer("日本の文化で重要な要素は", return_tensors="pt")
|
| 53 |
outputs = model.generate(**inputs, max_length=100)
|
|
@@ -62,11 +62,11 @@ print(tokenizer.decode(outputs[0]))
|
|
| 62 |
## Citation
|
| 63 |
```bibtex
|
| 64 |
@misc{RAIR1VECTOR2026,
|
| 65 |
-
title = {RAI-R1-VECTOR: Task-Vector Merged Model},
|
| 66 |
author = {LocalNovelLLM-project},
|
| 67 |
year = {2026},
|
| 68 |
publisher = {LocalNovelLLM-project},
|
| 69 |
-
url = {https://huggingface.co/Local-Novel-LLM-project/RAI-R1-VECTOR}
|
| 70 |
}
|
| 71 |
```
|
| 72 |
|
|
|
|
| 12 |
- en
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
+
# RAI-3.0-R1-VECTOR
|
| 16 |
<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" style="margin: 2px;">
|
| 17 |
<img alt="License" src="https://img.shields.io/badge/License-Apache%202.0-4caf50?&color=4caf50" style="display: inline-block; vertical-align: middle;"/>
|
| 18 |
</a>
|
|
|
|
| 20 |
---
|
| 21 |
|
| 22 |
## Model Overview
|
| 23 |
+
**RAI-3.0-R1-VECTOR** is a task-vector merged model created using the following formula:
|
| 24 |
```
|
| 25 |
DeepSeek-R1-0528 + (RakutenAI-3.0 - DeepSeek-V3-0324)
|
| 26 |
```
|
|
|
|
| 46 |
```python
|
| 47 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 48 |
|
| 49 |
+
model = AutoModelForCausalLM.from_pretrained("Local-Novel-LLM-project/RAI-3.0-R1-VECTOR", trust_remote_code=True)
|
| 50 |
+
tokenizer = AutoTokenizer.from_pretrained("Local-Novel-LLM-project/RAI-3.0-R1-VECTOR")
|
| 51 |
|
| 52 |
inputs = tokenizer("日本の文化で重要な要素は", return_tensors="pt")
|
| 53 |
outputs = model.generate(**inputs, max_length=100)
|
|
|
|
| 62 |
## Citation
|
| 63 |
```bibtex
|
| 64 |
@misc{RAIR1VECTOR2026,
|
| 65 |
+
title = {RAI-3.0-R1-VECTOR: Task-Vector Merged Model},
|
| 66 |
author = {LocalNovelLLM-project},
|
| 67 |
year = {2026},
|
| 68 |
publisher = {LocalNovelLLM-project},
|
| 69 |
+
url = {https://huggingface.co/Local-Novel-LLM-project/RAI-3.0-R1-VECTOR}
|
| 70 |
}
|
| 71 |
```
|
| 72 |
|