Instructions to use RWKV/RWKV7-G1j-7.2B-20260831 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RWKV/RWKV7-G1j-7.2B-20260831 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RWKV/RWKV7-G1j-7.2B-20260831", 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("RWKV/RWKV7-G1j-7.2B-20260831", trust_remote_code=True, device_map="auto") - RWKV
How to use RWKV/RWKV7-G1j-7.2B-20260831 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 RWKV/RWKV7-G1j-7.2B-20260831 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RWKV/RWKV7-G1j-7.2B-20260831" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RWKV/RWKV7-G1j-7.2B-20260831", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RWKV/RWKV7-G1j-7.2B-20260831
- SGLang
How to use RWKV/RWKV7-G1j-7.2B-20260831 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 "RWKV/RWKV7-G1j-7.2B-20260831" \ --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": "RWKV/RWKV7-G1j-7.2B-20260831", "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 "RWKV/RWKV7-G1j-7.2B-20260831" \ --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": "RWKV/RWKV7-G1j-7.2B-20260831", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RWKV/RWKV7-G1j-7.2B-20260831 with Docker Model Runner:
docker model run hf.co/RWKV/RWKV7-G1j-7.2B-20260831
Fix license badge and refresh manifest
Browse files35 unmodified lines36373839404142131 unmodified lines1741751761771781793 unmodified lines18318418518618718818919019119219331 unmodified lines2252262272282292302312322332 unmodified lines23623723823924024124224324424524624724824925025125225325425525625725825926026135 unmodified lines},"README.md": {"role": "model_card","sha256": "e40d0d1e68cca4b15db99cff00f2a693e31f02331a4f6ce315f2c71ac8db212a","size_bytes": 12165},"assets/rwkv-logo.webp": {131 unmodified lines"sha256": "28fc373673b2c98805275cc55381db0dd1dd9325ec0c1b34264d49ca1bc16958","size_bytes": 59900},"tokenizer.json": {"role": "tokenizer","sha256": "1c0bc8e5f355de60a4587a1e9abb9aa4ef65508ff59641344e7f9f10f76feacf",3 unmodified lines"role": "tokenizer","sha256": "2b5e075c2c16780061ae272c9f0b52ff620ddd8e87fdf7fa82fc425661667329","size_bytes": 531},"tokenization_rwkv7.py": {"role": "model_code","sha256": "58406b0aa5f51d5ca3a698602825ae9b299f6621e6c20bb0a2915d43c9f8bf65","size_bytes": 14046}},"identity": {31 unmodified lines},"model_code": {"format_version": 5,"source_repository": "https://github.com/huggingface/transformers.git","source_revision": "4ad9ed0747ed6ba75c787e8f9040dcd64b166ee2","transformers_min_version": "5.15","patches": ["chunked-wkv-default","model-neutral-configuration-docstring",2 unmodified lines"trl-position-ids-packing-boundaries","labels-disable-recurrent-cache"],"sources": {"configuration_rwkv7.py": {"asset_path": "model_code/configuration_rwkv7.py","repository_path": "src/transformers/models/rwkv7/configuration_rwkv7.py","source_sha256": "6f5b92c5fe7498ad22b0054a2f735a7ca82e7577436f4ad32f0fc27d1e900fdd","output_sha256": "76f832fa713fd7e117273a67a86225fe2faebc6d80a6757113484def3a5671b4"},"modeling_rwkv7.py": {"asset_path": "model_code/modeling_rwkv7.py","repository_path": "src/transformers/models/rwkv7/modeling_rwkv7.py","source_sha256": "3e8e5af7c4eba0b5de1496aef44773d7ac1bb4d96756e6f55efaf29453d67952","output_sha256": "8b8a3459b40a33424b592abff360485577a8f19419be411e3dceb817a51ebe46"},"tokenization_rwkv7.py": {"asset_path": "model_code/tokenization_rwkv7.py","repository_path": "rwkv-publisher/src/rwkv_publisher/assets/model_code/tokenization_rwkv7.py","source_sha256": "20c29d0f8f27003889570f54a1cd53482dd608a034e87673f6e43cf5e7c8d173","output_sha256": "20c29d0f8f27003889570f54a1cd53482dd608a034e87673f6e43cf5e7c8d173"}}},"profile": {"checkpoint": "g1j-7.2b-20260831",35 unmodified lines36373839404142131 unmodified lines1741751761771781791801811821831843 unmodified lines18818919019119219331 unmodified lines2252262272282292302 unmodified lines23323423523623723823924024124224324424524624724824925025125225325425525625725825926026135 unmodified lines},"README.md": {"role": "model_card","sha256": "b103a989646d75d32b74c647ce3a5d6c47d5fa4ce91661b590f74d493f53a178","size_bytes": 12165},"assets/rwkv-logo.webp": {131 unmodified lines"sha256": "28fc373673b2c98805275cc55381db0dd1dd9325ec0c1b34264d49ca1bc16958","size_bytes": 59900},"tokenization_rwkv7.py": {"role": "model_code","sha256": "58406b0aa5f51d5ca3a698602825ae9b299f6621e6c20bb0a2915d43c9f8bf65","size_bytes": 14046},"tokenizer.json": {"role": "tokenizer","sha256": "1c0bc8e5f355de60a4587a1e9abb9aa4ef65508ff59641344e7f9f10f76feacf",3 unmodified lines"role": "tokenizer","sha256": "2b5e075c2c16780061ae272c9f0b52ff620ddd8e87fdf7fa82fc425661667329","size_bytes": 531}},"identity": {31 unmodified lines},"model_code": {"format_version": 5,"patches": ["chunked-wkv-default","model-neutral-configuration-docstring",2 unmodified lines"trl-position-ids-packing-boundaries","labels-disable-recurrent-cache"],"source_repository": "https://github.com/huggingface/transformers.git","source_revision": "4ad9ed0747ed6ba75c787e8f9040dcd64b166ee2","sources": {"configuration_rwkv7.py": {"asset_path": "model_code/configuration_rwkv7.py","output_sha256": "76f832fa713fd7e117273a67a86225fe2faebc6d80a6757113484def3a5671b4","repository_path": "src/transformers/models/rwkv7/configuration_rwkv7.py","source_sha256": "6f5b92c5fe7498ad22b0054a2f735a7ca82e7577436f4ad32f0fc27d1e900fdd"},"modeling_rwkv7.py": {"asset_path": "model_code/modeling_rwkv7.py","output_sha256": "8b8a3459b40a33424b592abff360485577a8f19419be411e3dceb817a51ebe46","repository_path": "src/transformers/models/rwkv7/modeling_rwkv7.py","source_sha256": "3e8e5af7c4eba0b5de1496aef44773d7ac1bb4d96756e6f55efaf29453d67952"},"tokenization_rwkv7.py": {"asset_path": "model_code/tokenization_rwkv7.py","output_sha256": "20c29d0f8f27003889570f54a1cd53482dd608a034e87673f6e43cf5e7c8d173","repository_path": "rwkv-publisher/src/rwkv_publisher/assets/model_code/tokenization_rwkv7.py","source_sha256": "20c29d0f8f27003889570f54a1cd53482dd608a034e87673f6e43cf5e7c8d173"}},"transformers_min_version": "5.15"},"profile": {"checkpoint": "g1j-7.2b-20260831",
release-manifest.json+16-16