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

  • Log In
  • Sign Up

support-pvelocity
/
Code-Llama-2-13B-instruct-text2sql-GPTQ

Text Generation
Transformers
English
llama
Model card Files Files and versions
xet
Community
1

Instructions to use support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ")
    model = AutoModelForCausalLM.from_pretrained("support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ
  • SGLang

    How to use support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ 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 "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ" \
        --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": "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ",
    		"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 "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ" \
            --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": "support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ with Docker Model Runner:

    docker model run hf.co/support-pvelocity/Code-Llama-2-13B-instruct-text2sql-GPTQ
Code-Llama-2-13B-instruct-text2sql-GPTQ
7.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 9 commits
support-pvelocity's picture
support-pvelocity
Update README.md
23f8d2d over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    6.22 kB
    Update README.md over 2 years ago
  • config.json
    677 Bytes
    Upload of AutoGPTQ quantized model over 2 years ago
  • gptq_model-4bit-128g.safetensors
    7.26 GB
    xet
    Upload of AutoGPTQ quantized model over 2 years ago
  • quantize_config.json
    211 Bytes
    Upload of AutoGPTQ quantized model over 2 years ago
  • special_tokens_map.json
    599 Bytes
    Upload of AutoGPTQ quantized model over 2 years ago
  • tokenizer.json
    1.84 MB
    Upload of AutoGPTQ quantized model over 2 years ago
  • tokenizer_config.json
    1.85 kB
    Upload of AutoGPTQ quantized model over 2 years ago