Instructions to use nuprl/MultiPL-T-CodeLlama_34b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nuprl/MultiPL-T-CodeLlama_34b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nuprl/MultiPL-T-CodeLlama_34b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nuprl/MultiPL-T-CodeLlama_34b") model = AutoModelForCausalLM.from_pretrained("nuprl/MultiPL-T-CodeLlama_34b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nuprl/MultiPL-T-CodeLlama_34b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nuprl/MultiPL-T-CodeLlama_34b" # 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-CodeLlama_34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nuprl/MultiPL-T-CodeLlama_34b
- SGLang
How to use nuprl/MultiPL-T-CodeLlama_34b 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-CodeLlama_34b" \ --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-CodeLlama_34b", "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-CodeLlama_34b" \ --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-CodeLlama_34b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nuprl/MultiPL-T-CodeLlama_34b with Docker Model Runner:
docker model run hf.co/nuprl/MultiPL-T-CodeLlama_34b
Commit History
-
Create README.md
Verified signature8f912dc
-
model_codellama_34b_multiplt_jl-epoch4
661fefe -
model_codellama_34b_multiplt_jl-epoch3
cba3b76 -
model_codellama_34b_multiplt_jl-epoch2
b891128 -
model_codellama_34b_multiplt_jl-epoch1
350046b
-
model_codellama_34b_multiplt_r-epoch4
9e5af6e -
model_codellama_34b_multiplt_r-epoch3
c1c2bef -
model_codellama_34b_multiplt_r-epoch2
cdccd9a -
model_codellama_34b_multiplt_r-epoch1
dab8dd8
-
Upload tokenizer
6883165
-
model_codellama_34b_multiplt_racket-epoch5
284286c -
model_codellama_34b_multiplt_racket-epoch4
ba339d0 -
model_codellama_34b_multiplt_racket-epoch3
1f7428a -
model_codellama_34b_multiplt_racket-epoch2
5043653 -
model_codellama_34b_multiplt_racket-epoch1
80a75f6 -
model_codellama_34b_multiplt_racket-epoch1
717a453 -
model_codellama_34b_multiplt_lua-epoch4
e47d3ac -
model_codellama_34b_multiplt_lua-epoch3
8a44895 -
model_codellama_34b_multiplt_lua-epoch2
b147e33 -
model_codellama_34b_multiplt_lua-epoch1
f158403 -
Upload tokenizer
72653a6
-
model_codellama_34b_multiplt_ocaml-epoch4
35ef3c8 -
model_codellama_34b_multiplt_ocaml-epoch3
0a0596b -
model_codellama_34b_multiplt_ocaml-epoch2
f80fd1e -
model_codellama_34b_multiplt_ocaml-epoch1
9eb3df7 -
initial commit
0e80a50