Instructions to use aabbdev/RWKV7-1.5B-SMI-20260822 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aabbdev/RWKV7-1.5B-SMI-20260822 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aabbdev/RWKV7-1.5B-SMI-20260822", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("aabbdev/RWKV7-1.5B-SMI-20260822", trust_remote_code=True, device_map="auto") - RWKV
How to use aabbdev/RWKV7-1.5B-SMI-20260822 with RWKV:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aabbdev/RWKV7-1.5B-SMI-20260822 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aabbdev/RWKV7-1.5B-SMI-20260822" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aabbdev/RWKV7-1.5B-SMI-20260822", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aabbdev/RWKV7-1.5B-SMI-20260822
- SGLang
How to use aabbdev/RWKV7-1.5B-SMI-20260822 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 "aabbdev/RWKV7-1.5B-SMI-20260822" \ --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": "aabbdev/RWKV7-1.5B-SMI-20260822", "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 "aabbdev/RWKV7-1.5B-SMI-20260822" \ --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": "aabbdev/RWKV7-1.5B-SMI-20260822", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aabbdev/RWKV7-1.5B-SMI-20260822 with Docker Model Runner:
docker model run hf.co/aabbdev/RWKV7-1.5B-SMI-20260822
Download tokenizer_config.json from aabbdev/RWKV7-1.5B-SMI-20260822: direct link, hf CLI and curl.
- Browser
- Download file 3 kB
-
https://huggingface.co/aabbdev/RWKV7-1.5B-SMI-20260822/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://aabbdev/RWKV7-1.5B-SMI-20260822/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/aabbdev/RWKV7-1.5B-SMI-20260822/resolve/main/tokenizer_config.json
3 kB
| { | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65536": { | |
| "content": "<|ctrl|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65537": { | |
| "content": "<|sys|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65538": { | |
| "content": "<|dev|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65539": { | |
| "content": "<|caps|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65540": { | |
| "content": "<|usr|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65541": { | |
| "content": "<|obs|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65542": { | |
| "content": "<|think|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65543": { | |
| "content": "<|out|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65544": { | |
| "content": "<|act|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "65545": { | |
| "content": "<|eot|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|ctrl|>", | |
| "<|sys|>", | |
| "<|dev|>", | |
| "<|caps|>", | |
| "<|usr|>", | |
| "<|obs|>", | |
| "<|think|>", | |
| "<|out|>", | |
| "<|act|>", | |
| "<|eot|>" | |
| ], | |
| "backend": "tokenizers", | |
| "eos_token": "<|endoftext|>", | |
| "pad_token": "<|endoftext|>", | |
| "padding_side": "left", | |
| "response_template": { | |
| "defaults": { | |
| "role": "assistant" | |
| }, | |
| "fields": { | |
| "content": { | |
| "close": "<|eot|>", | |
| "content": "text", | |
| "open": "<|out|>\n" | |
| }, | |
| "thinking": { | |
| "close_pattern": "(?=<\\|out\\|>|<\\|act\\|>|<\\|eot\\|>)", | |
| "content": "text", | |
| "open": "<|think|>\n" | |
| }, | |
| "tool_calls": { | |
| "close_pattern": "(?=<\\|act\\|>|<\\|eot\\|>)", | |
| "content": "json", | |
| "open": "<|act|>\n", | |
| "repeats": true, | |
| "transform": { | |
| "function": "{content}", | |
| "type": "function" | |
| } | |
| } | |
| }, | |
| "start_anchor": "<|eot|>\n" | |
| }, | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "unk_token": "<|endoftext|>" | |
| } | |