Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Hakureirm
/
rwkv7-1.5b-hf

Text Generation
Transformers
Safetensors
RWKV
English
Chinese
rwkv7
goose
linear-attention
recurrent
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use Hakureirm/rwkv7-1.5b-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Hakureirm/rwkv7-1.5b-hf with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Hakureirm/rwkv7-1.5b-hf", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("Hakureirm/rwkv7-1.5b-hf", trust_remote_code=True, device_map="auto")
  • RWKV

    How to use Hakureirm/rwkv7-1.5b-hf 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 Hakureirm/rwkv7-1.5b-hf with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Hakureirm/rwkv7-1.5b-hf"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Hakureirm/rwkv7-1.5b-hf",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/Hakureirm/rwkv7-1.5b-hf
  • SGLang

    How to use Hakureirm/rwkv7-1.5b-hf 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 "Hakureirm/rwkv7-1.5b-hf" \
        --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": "Hakureirm/rwkv7-1.5b-hf",
    		"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 "Hakureirm/rwkv7-1.5b-hf" \
            --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": "Hakureirm/rwkv7-1.5b-hf",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Hakureirm/rwkv7-1.5b-hf with Docker Model Runner:

    docker model run hf.co/Hakureirm/rwkv7-1.5b-hf
rwkv7-1.5b-hf
3.06 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
Hakureirm's picture
Hakureirm
Retire the optional kernels, carry the tokenizer, drop dead config keys
ad14823 verified 2 days ago
  • .gitattributes
    1.52 kB
    initial commit 5 days ago
  • README.md
    4.17 kB
    Model card, config and the remote-code implementation (verified on the GPU box; weights uploaded from the datacenter leg) 5 days ago
  • added_tokens.json
    45 Bytes
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • config.json
    805 Bytes
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • configuration_rwkv7.py
    7.35 kB
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • hf_rwkv_tokenizer.py
    9.42 kB
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • model.safetensors
    3.06 GB
    xet
    Convert RWKV-x070-World-1.5B-v3-20250127-ctx4096.pth (bf16, source sha256 verified against the published LFS oid) 5 days ago
  • modeling_rwkv7.py
    56.2 kB
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • rwkv_vocab_v20230424.txt
    1.09 MB
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • special_tokens_map.json
    173 Bytes
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago
  • tokenizer_config.json
    1.1 kB
    Retire the optional kernels, carry the tokenizer, drop dead config keys 2 days ago