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

kctung
/
llama-2-13b-chat-neuron

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

Instructions to use kctung/llama-2-13b-chat-neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kctung/llama-2-13b-chat-neuron with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="kctung/llama-2-13b-chat-neuron")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("kctung/llama-2-13b-chat-neuron")
    model = AutoModelForCausalLM.from_pretrained("kctung/llama-2-13b-chat-neuron")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use kctung/llama-2-13b-chat-neuron with vLLM:

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

    How to use kctung/llama-2-13b-chat-neuron 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 "kctung/llama-2-13b-chat-neuron" \
        --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": "kctung/llama-2-13b-chat-neuron",
    		"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 "kctung/llama-2-13b-chat-neuron" \
            --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": "kctung/llama-2-13b-chat-neuron",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use kctung/llama-2-13b-chat-neuron with Docker Model Runner:

    docker model run hf.co/kctung/llama-2-13b-chat-neuron
llama-2-13b-chat-neuron / compiled
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
kctung's picture
kctung
Upload folder using huggingface_hub
72de4d9 verified over 2 years ago
  • 14892c3697fe75fcf5ba.neff
    2.16 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 4324bbbf2efe3b020cb0.neff
    2.6 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 6713ac5e3508807f155d.neff
    6.58 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 7930f68549763720b2a6.neff
    2.11 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 80db0227b4687a604b6d.neff
    2.4 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • a0500faabeaec34a49a2.neff
    2.12 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • a9afbefd753d1e7532db.neff
    2.43 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • b6d8960b990399119584.neff
    2.61 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • b9fd84fff0c75faa8a25.neff
    2.24 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • f19b229ae92965a53136.neff
    2.07 MB
    xet
    Upload folder using huggingface_hub over 2 years ago