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

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

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

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

  • Libraries
  • Transformers

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

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

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

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

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

    docker model run hf.co/atheanchu/llama-2-13b-chat-neuron
llama-2-13b-chat-neuron / compiled
38 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
atheanchu's picture
atheanchu
Upload folder using huggingface_hub
4533a2e verified about 2 years ago
  • 1733a74113bb1a8c63b2.neff
    8.55 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • 3bc4ca178b96ce4fcb9e.neff
    2.82 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • 4530405feeffd41f13ce.neff
    2.95 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • 5f5f81fea5c273693655.neff
    3.15 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • 618623f0df854cd4df29.neff
    2.88 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • 855025957b66cc38cf07.neff
    4.63 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • b965d4a02c872a7c40fb.neff
    3.11 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • c171bfa10f80b8aef631.neff
    3.37 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • c725ea2502e39be842b2.neff
    3.68 MB
    xet
    Upload folder using huggingface_hub about 2 years ago
  • e46f7133e61a221e625d.neff
    2.83 MB
    xet
    Upload folder using huggingface_hub about 2 years ago