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

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

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

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

  • Libraries
  • Transformers

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

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

    How to use harishvs/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 "harishvs/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": "harishvs/llama-2-13b-chat-neuron",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/harishvs/llama-2-13b-chat-neuron
  • SGLang

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

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

    docker model run hf.co/harishvs/llama-2-13b-chat-neuron
llama-2-13b-chat-neuron / compiled
26.8 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
harishvs's picture
harishvs
Upload folder using huggingface_hub
7333e37 verified over 2 years ago
  • 1ae9d8cd40ed9b47f09c.neff
    6.36 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 1dc92a5b79a0c35630d7.neff
    2.03 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 22c0b4fc68fc1ef57606.neff
    1.99 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 7d086a50ba36c08fe9d2.neff
    2.29 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • 83ac58a5875f83ca2ba8.neff
    2.03 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • a2f960c7ca48a4f00da0.neff
    2.35 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • e013f4b215a67d470b88.neff
    2.86 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • ec434565d3be1a74c685.neff
    2.22 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • ee34ad64f9d35fd7a21f.neff
    2.53 MB
    xet
    Upload folder using huggingface_hub over 2 years ago
  • f77bee7b9e6f9358d858.neff
    2.11 MB
    xet
    Upload folder using huggingface_hub over 2 years ago