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

mbley
/
google-gemma-2-27b-it-AWQ

Text Generation
Safetensors
gemma2
conversational
4-bit precision
awq
Model card Files Files and versions
xet
Community

Instructions to use mbley/google-gemma-2-27b-it-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Local Apps
  • vLLM

    How to use mbley/google-gemma-2-27b-it-AWQ with vLLM:

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

    How to use mbley/google-gemma-2-27b-it-AWQ 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 "mbley/google-gemma-2-27b-it-AWQ" \
        --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": "mbley/google-gemma-2-27b-it-AWQ",
    		"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 "mbley/google-gemma-2-27b-it-AWQ" \
            --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": "mbley/google-gemma-2-27b-it-AWQ",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use mbley/google-gemma-2-27b-it-AWQ with Docker Model Runner:

    docker model run hf.co/mbley/google-gemma-2-27b-it-AWQ
google-gemma-2-27b-it-AWQ
15.9 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
mbley's picture
mbley
Update README.md
877b460 verified about 1 year ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub about 1 year ago
  • README.md
    5.74 kB
    Update README.md about 1 year ago
  • config.json
    1.18 kB
    Upload folder using huggingface_hub about 1 year ago
  • generation_config.json
    189 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • model-00001-of-00004.safetensors
    4.92 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model-00002-of-00004.safetensors
    5 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model-00003-of-00004.safetensors
    4.92 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model-00004-of-00004.safetensors
    1.06 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors.index.json
    95.5 kB
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    636 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    34.4 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    47.1 kB
    Upload folder using huggingface_hub about 1 year ago