Text Generation
Transformers
PyTorch
Safetensors
Japanese
English
llama
Eval Results (legacy)
text-generation-inference
Instructions to use rinna/youri-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rinna/youri-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rinna/youri-7b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rinna/youri-7b") model = AutoModelForCausalLM.from_pretrained("rinna/youri-7b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rinna/youri-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rinna/youri-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/youri-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rinna/youri-7b
- SGLang
How to use rinna/youri-7b 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/youri-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/youri-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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/youri-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rinna/youri-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rinna/youri-7b with Docker Model Runner:
docker model run hf.co/rinna/youri-7b
Commit History
-
Update README.md
Verified signature5072655
-
Update README.md
Verified signature5931fb8
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (f80fd544e3784b0a0556db5d696f2576f412aaff) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>3275a2c
-
Update README.md
Verified signature4ffafa7 -
Update README.md
Verified signature3422b00
-
Update README.md
Verified signature72af199
-
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (5a44f4d6fe4ec9f79590b6b15536e6feb510bedb) Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>7f343d7
-
Update README.md
f7c7127
-
update
2be40b8
-
initial commit
4589ad5