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
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

QwenQKing
/
Prompt-R1

Text Generation
Transformers
Safetensors
English
reinforcement-learning
nlp
Model card Files Files and versions
xet
Community

Instructions to use QwenQKing/Prompt-R1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use QwenQKing/Prompt-R1 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="QwenQKing/Prompt-R1")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("QwenQKing/Prompt-R1", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use QwenQKing/Prompt-R1 with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "QwenQKing/Prompt-R1"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "QwenQKing/Prompt-R1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/QwenQKing/Prompt-R1
  • SGLang

    How to use QwenQKing/Prompt-R1 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 "QwenQKing/Prompt-R1" \
        --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": "QwenQKing/Prompt-R1",
    		"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 "QwenQKing/Prompt-R1" \
            --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": "QwenQKing/Prompt-R1",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use QwenQKing/Prompt-R1 with Docker Model Runner:

    docker model run hf.co/QwenQKing/Prompt-R1
Prompt-R1 / image
2.6 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
QwenQKing's picture
QwenQKing
Upload 9 files
386838e verified 6 months ago
  • 1-overview.png
    430 kB
    xet
    Upload 9 files 6 months ago
  • 2-QA.png
    302 kB
    xet
    Upload 9 files 6 months ago
  • 3-Comparison.png
    467 kB
    xet
    Upload 9 files 6 months ago
  • 4-table1.png
    322 kB
    xet
    Upload 9 files 6 months ago
  • 5-table2.png
    210 kB
    xet
    Upload 9 files 6 months ago
  • 6-radar.png
    306 kB
    xet
    Upload 9 files 6 months ago
  • 7-avg.png
    146 kB
    xet
    Upload 9 files 6 months ago
  • 8-ablation.png
    154 kB
    xet
    Upload 9 files 6 months ago
  • 9-training.png
    264 kB
    xet
    Upload 9 files 6 months ago