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

  • Log In
  • Sign Up

3ib0n
/
Qwen2.5-7B-Math-Instruct-rkllm

Text Generation
Transformers
RKLLM
rknn
chat
rk3588
Model card Files Files and versions
xet
Community

Instructions to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="3ib0n/Qwen2.5-7B-Math-Instruct-rkllm")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("3ib0n/Qwen2.5-7B-Math-Instruct-rkllm", dtype="auto")
  • RKLLM

    How to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm with RKLLM:

    # 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
  • vLLM

    How to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm with vLLM:

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

    How to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm 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 "3ib0n/Qwen2.5-7B-Math-Instruct-rkllm" \
        --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": "3ib0n/Qwen2.5-7B-Math-Instruct-rkllm",
    		"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 "3ib0n/Qwen2.5-7B-Math-Instruct-rkllm" \
            --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": "3ib0n/Qwen2.5-7B-Math-Instruct-rkllm",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use 3ib0n/Qwen2.5-7B-Math-Instruct-rkllm with Docker Model Runner:

    docker model run hf.co/3ib0n/Qwen2.5-7B-Math-Instruct-rkllm
Qwen2.5-7B-Math-Instruct-rkllm
8.21 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
3ib0n's picture
3ib0n
Upload folder using huggingface_hub
0b6e917 verified over 1 year ago
  • demo_Linux_aarch64
    Upload folder using huggingface_hub over 1 year ago
  • .gitattributes
    1.73 kB
    Upload folder using huggingface_hub over 1 year ago
  • Qwen2.5-Math-7B-Instruct.rkllm
    8.19 GB
    xet
    Upload folder using huggingface_hub over 1 year ago
  • README.md
    3.51 kB
    Upload folder using huggingface_hub over 1 year ago