Instructions to use TheBloke/starcoderplus-GGML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/starcoderplus-GGML with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/starcoderplus-GGML")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/starcoderplus-GGML", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TheBloke/starcoderplus-GGML with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/starcoderplus-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/starcoderplus-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/starcoderplus-GGML
- SGLang
How to use TheBloke/starcoderplus-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/starcoderplus-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/starcoderplus-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/starcoderplus-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/starcoderplus-GGML", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/starcoderplus-GGML with Docker Model Runner:
docker model run hf.co/TheBloke/starcoderplus-GGML
Update README.md
Browse files
README.md
CHANGED
|
@@ -114,7 +114,7 @@ Currently they can be used with:
|
|
| 114 |
* The ctransformers Python library, which includes LangChain support: [ctransformers](https://github.com/marella/ctransformers)
|
| 115 |
* The GPT4All-UI which uses ctransformers: [GPT4All-UI](https://github.com/ParisNeo/gpt4all-ui)
|
| 116 |
* [rustformers' llm](https://github.com/rustformers/llm)
|
| 117 |
-
* The example `
|
| 118 |
|
| 119 |
As other options become available I will endeavour to update them here (do let me know in the Community tab if I've missed something!)
|
| 120 |
|
|
|
|
| 114 |
* The ctransformers Python library, which includes LangChain support: [ctransformers](https://github.com/marella/ctransformers)
|
| 115 |
* The GPT4All-UI which uses ctransformers: [GPT4All-UI](https://github.com/ParisNeo/gpt4all-ui)
|
| 116 |
* [rustformers' llm](https://github.com/rustformers/llm)
|
| 117 |
+
* The example `starcoder` binary provided with [ggml](https://github.com/ggerganov/ggml)
|
| 118 |
|
| 119 |
As other options become available I will endeavour to update them here (do let me know in the Community tab if I've missed something!)
|
| 120 |
|