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")# pip install -U transformers accelerate # 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", device_map="auto") - 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
Commit History
-
Upload compiled/c725ea2502e39be842b2.neff with huggingface_hub
Verified signature53c9e2f -
Upload compiled/5f5f81fea5c273693655.neff with huggingface_hub
Verified signature1195cf3 -
Upload compiled/c171bfa10f80b8aef631.neff with huggingface_hub
Verified signaturefe6c694 -
Upload compiled/3bc4ca178b96ce4fcb9e.neff with huggingface_hub
Verified signature95c4f71 -
Upload compiled/618623f0df854cd4df29.neff with huggingface_hub
Verified signature33f8936 -
Upload compiled/e46f7133e61a221e625d.neff with huggingface_hub
Verified signaturec45f3c1 -
Upload compiled/855025957b66cc38cf07.neff with huggingface_hub
Verified signature3027b23 -
Upload compiled/b965d4a02c872a7c40fb.neff with huggingface_hub
Verified signature9959d3c -
Upload compiled/1733a74113bb1a8c63b2.neff with huggingface_hub
Verified signature586ffd7 -
Upload config.json with huggingface_hub
Verified signatured15bc4a -
Upload folder using huggingface_hub
Verified signature4533a2e -
initial commit
Verified signature751d930