Instructions to use nuprl/MultiPL-T-StarCoder2_15B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nuprl/MultiPL-T-StarCoder2_15B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nuprl/MultiPL-T-StarCoder2_15B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nuprl/MultiPL-T-StarCoder2_15B") model = AutoModelForCausalLM.from_pretrained("nuprl/MultiPL-T-StarCoder2_15B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nuprl/MultiPL-T-StarCoder2_15B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nuprl/MultiPL-T-StarCoder2_15B" # 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-StarCoder2_15B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nuprl/MultiPL-T-StarCoder2_15B
- SGLang
How to use nuprl/MultiPL-T-StarCoder2_15B 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-StarCoder2_15B" \ --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-StarCoder2_15B", "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-StarCoder2_15B" \ --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-StarCoder2_15B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nuprl/MultiPL-T-StarCoder2_15B with Docker Model Runner:
docker model run hf.co/nuprl/MultiPL-T-StarCoder2_15B
Commit History
-
Pushed model to hub
Verified signaturefa5e4b1 -
tokenizer
Verified signature758aaa7 -
Update README.md
Verified signaturee25e033 -
Update README.md
Verified signaturee7a6f85 -
Update README.md
Verified signature89f2357
-
Update README.md
Verified signature9ca02c6 -
StarCoder2_15b_lua_checkpoint_945
Verified signature2eddddf -
StarCoder2_15b_lua_checkpoint_826
Verified signature2606e22
-
StarCoder2_15b_lua_checkpoint_708
Verified signaturee3161cf -
StarCoder2_15b_lua_checkpoint_590
Verified signatureb2cb7af -
StarCoder2_15b_lua_checkpoint_472
Verified signature0e869de -
StarCoder2_15b_lua_checkpoint_354
Verified signaturecfc5d82 -
StarCoder2_15b_lua_checkpoint_236
Verified signature712a854 -
StarCoder2_15b_lua_checkpoint_118
Verified signature7da1cc7
-
StarCoder2_15b_ml_checkpoint_950
Verified signature62ce674 -
StarCoder2_15b_ml_checkpoint_95
Verified signature3a8dce7 -
StarCoder2_15b_ml_checkpoint_857
Verified signature6664d37 -
StarCoder2_15b_ml_checkpoint_762
Verified signature77b1bc3 -
StarCoder2_15b_ml_checkpoint_667
Verified signature07b669c -
StarCoder2_15b_ml_checkpoint_571
Verified signaturefbaaf71 -
StarCoder2_15b_ml_checkpoint_476
Verified signature0d0a7ca -
StarCoder2_15b_ml_checkpoint_381
Verified signature13b3adb -
StarCoder2_15b_ml_checkpoint_285
Verified signature18298a5 -
StarCoder2_15b_ml_checkpoint_190
Verified signaturefc306ed -
StarCoder2_15b_jl_checkpoint_860
Verified signaturea301db4 -
StarCoder2_15b_jl_checkpoint_86
Verified signatureddff5af -
StarCoder2_15b_jl_checkpoint_777
Verified signature8506724 -
StarCoder2_15b_jl_checkpoint_691
Verified signature0f10059 -
StarCoder2_15b_jl_checkpoint_604
Verified signature4f61f7f -
StarCoder2_15b_jl_checkpoint_518
Verified signature398cbdb -
StarCoder2_15b_jl_checkpoint_431
Verified signature62b2a81 -
StarCoder2_15b_jl_checkpoint_345
Verified signature80ef357 -
StarCoder2_15b_jl_checkpoint_259
Verified signature6634097 -
StarCoder2_15b_jl_checkpoint_172
Verified signature6a0f35d -
initial commit
Verified signature49ba269