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

Qurtana
/
Qwen2.5-0.5B-Instruct-q3f16_1-MLC

Text Generation
Transformers
English
chat
mlc-ai
MLC-Weight-Conversion
conversational
Model card Files Files and versions
xet
Community
1

Instructions to use Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC with vLLM:

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

    How to use Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC 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 "Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC" \
        --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": "Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC",
    		"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 "Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC" \
            --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": "Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC with Docker Model Runner:

    docker model run hf.co/Qurtana/Qwen2.5-0.5B-Instruct-q3f16_1-MLC
Qwen2.5-0.5B-Instruct-q3f16_1-MLC
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Qurtana's picture
Qurtana
Upload README.md with huggingface_hub
11b7446 verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    1.91 kB
    Upload README.md with huggingface_hub over 1 year ago
  • merges.txt
    1.67 MB
    Add files using upload-large-folder tool over 1 year ago
  • mlc-chat-config.json
    2.04 kB
    Add files using upload-large-folder tool over 1 year ago
  • ndarray-cache.json
    102 kB
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_0.bin
    55.9 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_1.bin
    33.5 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_2.bin
    30.2 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_3.bin
    32.3 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_4.bin
    33.4 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_5.bin
    30.2 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • params_shard_6.bin
    11.7 MB
    xet
    Add files using upload-large-folder tool over 1 year ago
  • tokenizer.json
    7.03 MB
    Add files using upload-large-folder tool over 1 year ago
  • tokenizer_config.json
    7.31 kB
    Add files using upload-large-folder tool over 1 year ago
  • vocab.json
    2.78 MB
    Add files using upload-large-folder tool over 1 year ago