Instructions to use shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA") 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("shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA", device_map="auto") - RWKV
How to use shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA 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 shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA
- SGLang
How to use shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA 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 "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA" \ --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": "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA", "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 "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA" \ --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": "shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA with Docker Model Runner:
docker model run hf.co/shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA
Download config.json from shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA/resolve/main/config.json
- Command line
-
hf download hf://shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA/config.json
-
curl -L -o config.json https://huggingface.co/shoumenchougou/RWKV7-G1k-2.9B-20260930-FLA/resolve/main/config.json
1.24 kB
| { | |
| "a_low_rank_dim": 96, | |
| "architectures": [ | |
| "RWKV7ForCausalLM" | |
| ], | |
| "attn": null, | |
| "attn_mode": "chunk", | |
| "bos_token_id": 0, | |
| "decay_low_rank_dim": 96, | |
| "eos_token_id": 0, | |
| "fuse_cross_entropy": true, | |
| "fuse_linear_cross_entropy": false, | |
| "fuse_norm": true, | |
| "gate_low_rank_dim": 320, | |
| "head_dim": 64, | |
| "hidden_act": "sqrelu", | |
| "hidden_ratio": 4.0, | |
| "hidden_size": 2560, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 10240, | |
| "max_position_embeddings": 25600, | |
| "model_type": "rwkv7", | |
| "norm_bias": true, | |
| "norm_eps": 1e-05, | |
| "norm_first": true, | |
| "num_heads": 40, | |
| "num_hidden_layers": 32, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.50.2", | |
| "use_cache": true, | |
| "use_l2warp": true, | |
| "v_low_rank_dim": 64, | |
| "value_dim": [ | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560, | |
| 2560 | |
| ], | |
| "vocab_size": 65536, | |
| "pad_token_id": 0 | |
| } | |