Text Generation
Transformers
Safetensors
English
qwen3
causal-lm
100m-parameters
single-gpu-training
flashattention2
gqa
Eval Results (legacy)
text-generation-inference
Instructions to use raincandy-u/Rain-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use raincandy-u/Rain-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="raincandy-u/Rain-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("raincandy-u/Rain-v2") model = AutoModelForCausalLM.from_pretrained("raincandy-u/Rain-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use raincandy-u/Rain-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "raincandy-u/Rain-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "raincandy-u/Rain-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/raincandy-u/Rain-v2
- SGLang
How to use raincandy-u/Rain-v2 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 "raincandy-u/Rain-v2" \ --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": "raincandy-u/Rain-v2", "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 "raincandy-u/Rain-v2" \ --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": "raincandy-u/Rain-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use raincandy-u/Rain-v2 with Docker Model Runner:
docker model run hf.co/raincandy-u/Rain-v2
Commit History
-
Update README.md
Verified signatureea1f810
-
Update README.md
Verified signature3a3b45b -
Update README.md
Verified signature500388b -
Create README.md
Verified signatureb9c1eca -
Upload 6 files
Verified signature6a029e4 -
Delete special_tokens_map.json
Verified signature0728f64 -
Delete tokenizer_config.json
Verified signature980f33d -
Delete tokenizer.json
Verified signature4d94a1c
-
Upload 3 files
Verified signatured1748fa -
Delete tokenizer.json
Verified signature5a80708
-
Upload tokenizer.json
Verified signature174fad9 -
initial commit
Verified signature4d4d519