Text Generation
Transformers
PyTorch
English
gpt_bigcode
Eval Results (legacy)
text-generation-inference
Instructions to use theblackcat102/starcoder-1b-evol with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use theblackcat102/starcoder-1b-evol with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="theblackcat102/starcoder-1b-evol")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("theblackcat102/starcoder-1b-evol") model = AutoModelForCausalLM.from_pretrained("theblackcat102/starcoder-1b-evol", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use theblackcat102/starcoder-1b-evol with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "theblackcat102/starcoder-1b-evol" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theblackcat102/starcoder-1b-evol", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/theblackcat102/starcoder-1b-evol
- SGLang
How to use theblackcat102/starcoder-1b-evol 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 "theblackcat102/starcoder-1b-evol" \ --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": "theblackcat102/starcoder-1b-evol", "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 "theblackcat102/starcoder-1b-evol" \ --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": "theblackcat102/starcoder-1b-evol", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use theblackcat102/starcoder-1b-evol with Docker Model Runner:
docker model run hf.co/theblackcat102/starcoder-1b-evol
Commit ·
3bd677b
1
Parent(s): 5ae38a0
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
datasets:
|
| 3 |
+
- theblackcat102/evol-codealpaca-v1
|
| 4 |
+
model-index:
|
| 5 |
+
- name: Starcoder-1b-evol
|
| 6 |
+
results:
|
| 7 |
+
- task:
|
| 8 |
+
type: text-generation
|
| 9 |
+
dataset:
|
| 10 |
+
type: openai_humaneval
|
| 11 |
+
name: HumanEval
|
| 12 |
+
metrics:
|
| 13 |
+
- name: pass@1
|
| 14 |
+
type: pass@1
|
| 15 |
+
value: 35.37
|
| 16 |
+
verified: false
|
| 17 |
+
- task:
|
| 18 |
+
type: text-generation
|
| 19 |
+
dataset:
|
| 20 |
+
type: mbpp
|
| 21 |
+
name: MBPP
|
| 22 |
+
metrics:
|
| 23 |
+
- name: pass@1
|
| 24 |
+
type: pass@1
|
| 25 |
+
value: 22.8
|
| 26 |
+
verified: false
|
| 27 |
+
language:
|
| 28 |
+
- en
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
starcoder 1b finetuned on evol-codealpaca-v1
|
| 32 |
+
|
| 33 |
+
Follows the OpenAssistant chat format:
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
<|prompter|>{user_prompt}<|endoftext|><|assistant|>
|
| 37 |
+
```
|