Instructions to use TheBloke/Llama-2-13B-chat-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/Llama-2-13B-chat-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/Llama-2-13B-chat-GGML")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/Llama-2-13B-chat-GGML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/Llama-2-13B-chat-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/Llama-2-13B-chat-GGML" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/Llama-2-13B-chat-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/Llama-2-13B-chat-GGML
- SGLang
How to use TheBloke/Llama-2-13B-chat-GGML 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/Llama-2-13B-chat-GGML" \ --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": "TheBloke/Llama-2-13B-chat-GGML", "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 "TheBloke/Llama-2-13B-chat-GGML" \ --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": "TheBloke/Llama-2-13B-chat-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/Llama-2-13B-chat-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/Llama-2-13B-chat-GGML
Request: DOI
1
#27 opened about 2 years ago
by
SriK007
I have to compute this LLaMA-2 model to GPU but getting errors
#26 opened over 2 years ago
by
heiskareem
Addressing Inconsistencies in Model Outputs: Understanding and Solutions
#25 opened almost 3 years ago
by
shivammehta
cuda error when loading llama 7b chat
2
#24 opened almost 3 years ago
by
rachelshalom
Number of tokens exceeded maximum context length
2
#22 opened almost 3 years ago
by
praxis-dev
Deploying with Text Generation Inference
#21 opened almost 3 years ago
by
mariiaponom
Can anyone suggest me how can i run "llama.cpp" on GPU.
1
#18 opened almost 3 years ago
by
fais4321
Prompt Template
#17 opened almost 3 years ago
by
vincenzomanzoni
Could you quant Multilingual llm such as OpenBuddy/openbuddy-llama2-70b-v10.1-bf16, thank you.
#16 opened almost 3 years ago
by
hugingfaceg
Fine Tuning this huggingface model
#15 opened almost 3 years ago
by
kohnsolution
invalid magic number: latest release of llama.cpp cannot import 13B GGML q4.0 model
❤️ 1
8
#14 opened almost 3 years ago
by
zenitica
Help needed to load model
😔 4
19
#13 opened almost 3 years ago
by
sanjay-dev-ds-28
end of sentence token in fine-tuning dataset
👍 1
1
#12 opened almost 3 years ago
by
tanner-sorensen
ValueError: Error raised by inference API: Pipeline cannot infer suitable model classes from TheBloke/Llama-2-13B-chat-GGML
1
#11 opened about 3 years ago
by
username098
is there a checksum for each of these downloads?
2
#10 opened about 3 years ago
by
kechan
difference in inference between llama_cpp and langchain's LlamaCpp wrapper
#9 opened about 3 years ago
by
YairFr
Os win error
#8 opened about 3 years ago
by
Charan5145
Prompt template wrong in the description?
1
#7 opened about 3 years ago
by
h3ndrik
Error in PrivateGPT
1
#4 opened about 3 years ago
by
zWarhammer
Notebook to test Llama 2 in Colab free tier
❤️ 6
8
#3 opened about 3 years ago
by
r3gm
Extreme levels of censorship?
🤯 8
8
#2 opened about 3 years ago
by
ceoofcapybaras
Holy stuff this is huge!!!! Cant wait for 70b GGML model!!!!
👍 4
11
#1 opened about 3 years ago
by
rombodawg