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, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pierreqi/starcoderbase-3b-cont-r") model = AutoModelForCausalLM.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 6500
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:63c6af08636cbad0a8dcde536e3ba08873e715cb95b59ccb9dac6e8d1fda1b44
|
| 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:db228f62b6f729c2740e1c17f0784abed6d408a4d7f39fa15635b0082dc10dee
|
| 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:25fa9483cfd1d3cc1cc76b07b55d6d43f4009ea48d7c50041eaf2e839d3a84c9
|
| 3 |
+
size 19068
|