Instructions to use TheBloke/CodeLlama-13B-Python-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/CodeLlama-13B-Python-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/CodeLlama-13B-Python-GGML")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/CodeLlama-13B-Python-GGML", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/CodeLlama-13B-Python-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-Python-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-Python-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/CodeLlama-13B-Python-GGML
- SGLang
How to use TheBloke/CodeLlama-13B-Python-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-Python-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-Python-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-Python-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-Python-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/CodeLlama-13B-Python-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/CodeLlama-13B-Python-GGML
Commit History
-
Add Llama 2 license files
bf9e79d -
Add Llama 2 license files
b99a534 -
Initial GGML model commit
567bb5a -
Initial GGML model commit
413439c -
Add Llama 2 license files
86a4089 -
Add Llama 2 license files
4e48f1d -
Add Llama 2 license files
01b6d55 -
Update README.md (#1)
- Update README.md (9c9d7130d92cf3c24b0a01aafadb3ed351f06397) Co-authored-by: rombo dawg <rombodawg@users.noreply.huggingface.co>84a9d8e
-
Initial GGML model commit
c65e309 -
Initial GGML model commit
214c2e3 -
Add Llama 2 license files
2850039 -
Add Llama 2 license files
5ff02ca -
Add Llama 2 license files
7818ec9 -
Initial GGML model commit
813beed -
Initial GGML model commit
80380c7 -
Initial GGML model commit
2eadee4 -
Initial GGML model commit
8f276f6 -
Initial GGML model commit
beafd81 -
Initial GGML model commit
0c95006 -
Initial GGML model commit
ea1353e -
Initial GGML model commit
0be8024 -
Initial GGML model commit
6486b96 -
Initial GGML model commit
be6f4ed -
Initial GGML model commit
a8dce13 -
Initial GGML model commit
7a1a106 -
Initial GGML model commit
cbc6685 -
Initial GGML model commit
e44cc6e -
initial commit
1644932