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

clowman
/
Llama-3.1-8B-Instruct-AWQ-Int4

Text Generation
Safetensors
PyTorch
llama
facebook
meta
llama-3
conversational
4-bit precision
awq
Model card Files Files and versions
xet
Community

Instructions to use clowman/Llama-3.1-8B-Instruct-AWQ-Int4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Local Apps
  • vLLM

    How to use clowman/Llama-3.1-8B-Instruct-AWQ-Int4 with vLLM:

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

    How to use clowman/Llama-3.1-8B-Instruct-AWQ-Int4 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 "clowman/Llama-3.1-8B-Instruct-AWQ-Int4" \
        --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": "clowman/Llama-3.1-8B-Instruct-AWQ-Int4",
    		"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 "clowman/Llama-3.1-8B-Instruct-AWQ-Int4" \
            --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": "clowman/Llama-3.1-8B-Instruct-AWQ-Int4",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use clowman/Llama-3.1-8B-Instruct-AWQ-Int4 with Docker Model Runner:

    docker model run hf.co/clowman/Llama-3.1-8B-Instruct-AWQ-Int4
Llama-3.1-8B-Instruct-AWQ-Int4
5.75 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
clowman's picture
clowman
Update README.md
40eed9d verified about 1 year ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub about 1 year ago
  • README.md
    44.7 kB
    Update README.md about 1 year ago
  • USE_POLICY.md
    4.69 kB
    Upload folder using huggingface_hub about 1 year ago
  • args-lambda-quant.json
    257 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • config.json
    1.21 kB
    Upload folder using huggingface_hub about 1 year ago
  • generation_config.json
    184 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • model-00001-of-00002.safetensors
    4.68 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model-00002-of-00002.safetensors
    1.05 GB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • model.safetensors.index.json
    60.5 kB
    Upload folder using huggingface_hub about 1 year ago
  • requirements-lambda-quant.txt
    1.6 kB
    Upload folder using huggingface_hub about 1 year ago
  • special_tokens_map.json
    296 Bytes
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer.json
    17.2 MB
    xet
    Upload folder using huggingface_hub about 1 year ago
  • tokenizer_config.json
    55.4 kB
    Upload folder using huggingface_hub about 1 year ago