Instructions to use TheBloke/CodeLlama-13B-Instruct-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/CodeLlama-13B-Instruct-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/CodeLlama-13B-Instruct-GGML")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/CodeLlama-13B-Instruct-GGML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/CodeLlama-13B-Instruct-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/CodeLlama-13B-Instruct-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/CodeLlama-13B-Instruct-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/CodeLlama-13B-Instruct-GGML
- SGLang
How to use TheBloke/CodeLlama-13B-Instruct-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/CodeLlama-13B-Instruct-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/CodeLlama-13B-Instruct-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/CodeLlama-13B-Instruct-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/CodeLlama-13B-Instruct-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/CodeLlama-13B-Instruct-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/CodeLlama-13B-Instruct-GGML
Commit History
-
Update base_model formatting
b49747b
-
Upload README.md
b3dc9d8
-
Initial GGML model commit
78d3a32 -
Initial GGML model commit
fd1a083 -
Add Llama 2 license files
8389bdc -
Add Llama 2 license files
c1a8d65 -
Add Llama 2 license files
1ab43d9 -
Initial GGML model commit
dd0d386 -
Initial GGML model commit
5f52e62 -
Add Llama 2 license files
d6c2a6d -
Add Llama 2 license files
da25dd2 -
Add Llama 2 license files
a997f2c -
Initial GGML model commit
1a1e1b0 -
Initial GGML model commit
eb4367a -
Add Llama 2 license files
80b365d -
Add Llama 2 license files
10310bc -
Add Llama 2 license files
c8b7e59
-
Initial GGML model commit
0776d47 -
Initial GGML model commit
76ab375 -
Add Llama 2 license files
8fdb9b0 -
Add Llama 2 license files
40605e0 -
Add Llama 2 license files
18315be -
Initial GGML model commit
2a51edc -
Initial GGML model commit
0f1c9c5 -
Initial GGML model commit
ed40e9f -
Initial GGML model commit
fa5ff3a -
Initial GGML model commit
12bed9e -
Initial GGML model commit
88e661c -
Initial GGML model commit
cf0252f -
Initial GGML model commit
9967e14 -
Initial GGML model commit
4c51f36 -
Initial GGML model commit
a014e57 -
Initial GGML model commit
bcb9f54 -
Initial GGML model commit
7fa14dd -
Initial GGML model commit
9537229 -
Initial GGML model commit
3d50015 -
initial commit
d3b9e06