Text Generation
Transformers
PyTorch
Safetensors
gpt_bigcode
code
Eval Results (legacy)
text-generation-inference
Instructions to use nuprl/MultiPL-T-StarCoderBase_1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nuprl/MultiPL-T-StarCoderBase_1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nuprl/MultiPL-T-StarCoderBase_1b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nuprl/MultiPL-T-StarCoderBase_1b") model = AutoModelForCausalLM.from_pretrained("nuprl/MultiPL-T-StarCoderBase_1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nuprl/MultiPL-T-StarCoderBase_1b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nuprl/MultiPL-T-StarCoderBase_1b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nuprl/MultiPL-T-StarCoderBase_1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nuprl/MultiPL-T-StarCoderBase_1b
- SGLang
How to use nuprl/MultiPL-T-StarCoderBase_1b 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 "nuprl/MultiPL-T-StarCoderBase_1b" \ --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": "nuprl/MultiPL-T-StarCoderBase_1b", "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 "nuprl/MultiPL-T-StarCoderBase_1b" \ --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": "nuprl/MultiPL-T-StarCoderBase_1b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nuprl/MultiPL-T-StarCoderBase_1b with Docker Model Runner:
docker model run hf.co/nuprl/MultiPL-T-StarCoderBase_1b
Commit History
-
Update README.md
Verified signature8e1e7a4
-
rkt-more_stack-epoch_6
Verified signature5b8e3da -
rkt-more_stack-epoch_5
Verified signature363011e -
rkt-more_stack-epoch_4
Verified signature9da7cf8 -
rkt-more_stack-epoch_3
Verified signature27a20cf -
rkt-more_stack-epoch_2
Verified signaturecdf15c2 -
rkt-more_stack-epoch_1
Verified signature2158b4e -
ocaml-more_stack-epoch_7
Verified signature70abbf8 -
ocaml-more_stack-epoch_6
Verified signaturef89a190 -
ocaml-more_stack-epoch_5
Verified signaturef172788 -
ocaml-more_stack-epoch_4
Verified signatureba01baa -
ocaml-more_stack-epoch_3
Verified signatureb509c9e -
ocaml-more_stack-epoch_2
Verified signature459b52d -
ocaml-more_stack-epoch_1
Verified signature3b28776 -
lua-more_stack-epoch_6
Verified signatureb73b756 -
lua-more_stack-epoch_5
Verified signature7463e30 -
lua-more_stack-epoch_4
Verified signature8515595 -
lua-more_stack-epoch_3
Verified signatured04730a -
lua-more_stack-epoch_2
Verified signaturec8c8011 -
lua-more_stack-epoch_1
Verified signaturebc2cfcc
-
r_full_1b-epoch6
Verified signature448c85d -
r_full_1b-epoch2
Verified signaturec2eacc0 -
r_full_1b-epoch1
Verified signature7ac0864
-
jl_full_1b-epoch6
06ad8a5 -
jl_full_1b-epoch5
5246a0d -
jl_full_1b-epoch4
f0fa65e -
jl_full_1b-epoch3
86010ab -
jl_full_1b-epoch2
a81b229 -
jl_full_1b-epoch1
fce7e5e
-
Update README.md
1b72ffa -
Update README.md
d2f03d7 -
Update README.md
044b635 -
Update README.md
bbea327 -
Update README.md
b5a5ab9 -
Update README.md
1fc7947 -
Upload tokenizer
16cc1dc -
Create README.md
b4a4d34
-
rkt-subset-epoch7
fba8015 -
rkt-subset-epoch6
f78c171 -
rkt-subset-epoch6
f0e9cfc -
rkt-subset-epoch5
f57df91 -
rkt-subset-epoch4
c9c02e8 -
rkt-subset-epoch3
de40ca8 -
rkt-subset-epoch2
fb7825b -
rkt-subset-epoch1
8b0399e
-
rkt-full-epoch5
2cdc541 -
rkt-full-epoch4
9612971 -
rkt-full-epoch3
c68968a -
rkt-full-epoch2
687c194 -
rkt-full-epoch1
93979c6