Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

ParScale
/
ParScale-Qwen-3B-P8-Python

Text Generation
Transformers
Safetensors
qwen2_parscale
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use ParScale/ParScale-Qwen-3B-P8-Python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ParScale/ParScale-Qwen-3B-P8-Python with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="ParScale/ParScale-Qwen-3B-P8-Python", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("ParScale/ParScale-Qwen-3B-P8-Python", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use ParScale/ParScale-Qwen-3B-P8-Python with vLLM:

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

    How to use ParScale/ParScale-Qwen-3B-P8-Python 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 "ParScale/ParScale-Qwen-3B-P8-Python" \
        --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": "ParScale/ParScale-Qwen-3B-P8-Python",
    		"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 "ParScale/ParScale-Qwen-3B-P8-Python" \
            --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": "ParScale/ParScale-Qwen-3B-P8-Python",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use ParScale/ParScale-Qwen-3B-P8-Python with Docker Model Runner:

    docker model run hf.co/ParScale/ParScale-Qwen-3B-P8-Python
ParScale-Qwen-3B-P8-Python
12.5 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
chenmouxiang's picture
chenmouxiang
Update README.md
48a1a20 verified 12 months ago
  • .gitattributes
    1.52 kB
    initial commit 12 months ago
  • README.md
    4.77 kB
    Update README.md 12 months ago
  • config.json
    947 Bytes
    Upload folder using huggingface_hub 12 months ago
  • configuration_qwen2_parscale.py
    10.2 kB
    Upload folder using huggingface_hub 12 months ago
  • generation_config.json
    138 Bytes
    Upload folder using huggingface_hub 12 months ago
  • model-00001-of-00004.safetensors
    3.94 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00002-of-00004.safetensors
    3.93 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00003-of-00004.safetensors
    3.93 GB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model-00004-of-00004.safetensors
    714 MB
    xet
    Upload folder using huggingface_hub 12 months ago
  • model.safetensors.index.json
    41.5 kB
    Upload folder using huggingface_hub 12 months ago
  • modeling_qwen2_parscale.py
    56.1 kB
    Upload folder using huggingface_hub 12 months ago
  • tokenizer.json
    7.03 MB
    Upload folder using huggingface_hub 12 months ago
  • tokenizer_config.json
    7.23 kB
    Upload folder using huggingface_hub 12 months ago