Text Generation
Transformers
TensorBoard
Safetensors
gpt_bigcode
Generated from Trainer
text-generation-inference
Instructions to use pierreqi/starcoderbase-3b-cont-r with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pierreqi/starcoderbase-3b-cont-r with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pierreqi/starcoderbase-3b-cont-r")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("pierreqi/starcoderbase-3b-cont-r") model = AutoModelForMultimodalLM.from_pretrained("pierreqi/starcoderbase-3b-cont-r") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pierreqi/starcoderbase-3b-cont-r with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pierreqi/starcoderbase-3b-cont-r" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pierreqi/starcoderbase-3b-cont-r", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pierreqi/starcoderbase-3b-cont-r
- SGLang
How to use pierreqi/starcoderbase-3b-cont-r 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 "pierreqi/starcoderbase-3b-cont-r" \ --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": "pierreqi/starcoderbase-3b-cont-r", "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 "pierreqi/starcoderbase-3b-cont-r" \ --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": "pierreqi/starcoderbase-3b-cont-r", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use pierreqi/starcoderbase-3b-cont-r with Docker Model Runner:
docker model run hf.co/pierreqi/starcoderbase-3b-cont-r
Training in progress, step 7350
Browse files
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999140440
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9eab0be248c0fbb2448dd89cdbb623221f852c97ff431f2c8ecf30acdf02217
|
| 3 |
size 4999140440
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1087533576
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2932911c1856cd42202d3fd291ea3edf71aedc1a819add7182aab552655117a7
|
| 3 |
size 1087533576
|
runs/May03_04-45-31_2e4687cfbd88/events.out.tfevents.1746247534.2e4687cfbd88.12397.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:533a25e8d849762b4c7133fe6ae8509246341724447ce30469fed8b34c07017c
|
| 3 |
+
size 21110
|