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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

TheBloke
/
Vicuna-13B-1.1-GPTQ

Text Generation
Transformers
llama
conversational
Model card Files Files and versions
xet
Community
18

Instructions to use TheBloke/Vicuna-13B-1.1-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use TheBloke/Vicuna-13B-1.1-GPTQ with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="TheBloke/Vicuna-13B-1.1-GPTQ")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("TheBloke/Vicuna-13B-1.1-GPTQ")
    model = AutoModelForCausalLM.from_pretrained("TheBloke/Vicuna-13B-1.1-GPTQ", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use TheBloke/Vicuna-13B-1.1-GPTQ with vLLM:

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

    How to use TheBloke/Vicuna-13B-1.1-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 "TheBloke/Vicuna-13B-1.1-GPTQ" \
        --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": "TheBloke/Vicuna-13B-1.1-GPTQ",
    		"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 "TheBloke/Vicuna-13B-1.1-GPTQ" \
            --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": "TheBloke/Vicuna-13B-1.1-GPTQ",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use TheBloke/Vicuna-13B-1.1-GPTQ with Docker Model Runner:

    docker model run hf.co/TheBloke/Vicuna-13B-1.1-GPTQ
Vicuna-13B-1.1-GPTQ
7.26 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 43 commits
TheBloke's picture
TheBloke
saattrupdan's picture
saattrupdan
Update README.md (#18)
ec8f0c1 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    9.65 kB
    Update README.md (#18) over 3 years ago
  • config.json
    576 Bytes
    Update config.json over 3 years ago
  • generation_config.json
    131 Bytes
    Update generation_config.json over 3 years ago
  • quantize_config.json
    57 Bytes
    Create quantize_config.json over 3 years ago
  • special_tokens_map.json
    411 Bytes
    Update special_tokens_map.json over 3 years ago
  • tokenizer.json
    1.84 MB
    Upload folder using huggingface_hub over 3 years ago
  • tokenizer.model
    500 kB
    xet
    Add model over 3 years ago
  • tokenizer_config.json
    700 Bytes
    Upload folder using huggingface_hub over 3 years ago
  • vicuna-13B-1.1-GPTQ-4bit-128g.compat.no-act-order.pt

    Detected Pickle imports (5)

    • "torch.HalfStorage",
    • "collections.OrderedDict",
    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.IntStorage"

    What is a pickle import?

    7.26 GB
    xet
    Rename vicuna-13B-1.1-GPTQ-4bit-128g.no-act-order.pt to vicuna-13B-1.1-GPTQ-4bit-128g.compat.no-act-order.pt over 3 years ago