Text Generation
Transformers
PyTorch
gpt_bigcode
code
Eval Results (legacy)
text-generation-inference
Instructions to use WizardLMTeam/WizardCoder-15B-V1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WizardLMTeam/WizardCoder-15B-V1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WizardLMTeam/WizardCoder-15B-V1.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WizardLMTeam/WizardCoder-15B-V1.0") model = AutoModelForCausalLM.from_pretrained("WizardLMTeam/WizardCoder-15B-V1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WizardLMTeam/WizardCoder-15B-V1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WizardLMTeam/WizardCoder-15B-V1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WizardLMTeam/WizardCoder-15B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WizardLMTeam/WizardCoder-15B-V1.0
- SGLang
How to use WizardLMTeam/WizardCoder-15B-V1.0 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 "WizardLMTeam/WizardCoder-15B-V1.0" \ --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": "WizardLMTeam/WizardCoder-15B-V1.0", "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 "WizardLMTeam/WizardCoder-15B-V1.0" \ --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": "WizardLMTeam/WizardCoder-15B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WizardLMTeam/WizardCoder-15B-V1.0 with Docker Model Runner:
docker model run hf.co/WizardLMTeam/WizardCoder-15B-V1.0
Commit History
-
Update README.md (#42)
Verified signature- Update README.md (0ce4617a797f79691d3e0df633aa45cd2fb65849) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>9c17758
-
Update README.md
ca03e97
-
Update README.md
63f325b
-
update 7B result (#36)
- update 7B result (9340b1224ddea21353d4b19c5e7ecb9cd18f7042) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>c7abd62
-
Update README.md
4574b72
-
Update README.md (#35)
- Update README.md (6520392ebd99271235f61868225f434eec32d70d) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>3ff36ac
-
Update README.md (#34)
- Update README.md (020915a6cbdd50bdd5e9272c1eb9b4f313165bb8) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>78e0378 -
Update README.md (#33)
- Update README.md (d70270c97f24631cb175f4a44ace2bb01617e5ee) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>858729f -
Update README.md (#32)
- Update README.md (484445203f8790838d3279e874282365103b93c6) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>af1285e
-
Update README.md (#31)
- Update README.md (7e053bd2cf3f4a209e7ae6f00e481cf00e0255bf) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>5c26407
-
Update README.md (#29)
- Update README.md (eeecf72ca1fb9fe1f2ad350f53d00d7d03d94d06) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>84554f1 -
Update README.md (#30)
- Update README.md (9a10564af5cb4ef406a5837467dac67cff20fea9) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>bba1302
-
update HumanEval score (#24)
- update HumanEval score (be767e0da07633c160766b9b5df25650da3feb02) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>93f09ae -
Update README.md (#25)
- Update README.md (1ccdb9cbe7c550c5c56c4a14570470d59f4d2ea8) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>ce17c94
-
update_url (#23)
- update_url (4945c8651a38b0b896fe51f2d2500b567f6712a1) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>4936fd9
-
Update README.md
14d5f13 -
update_url (#22)
- update_url (cc6126bd3a6bffb2d5fd43521d73e63d2c7daccf) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>5b05331
-
Update README.md
9032fbf
-
Update README.md
4d56635 -
Update README.md
39cda0e
-
update license (#13)
- update license (76207af350c9f94c5fb83caf4e7c06ef55c9c92a) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>926ca1b
-
Update README.md
69e8773 -
Update README.md
97766a2
-
update use_cache=true (#9)
- update use_cache=true (442dc061c9998ae6ce9138124c609915a84ebdea) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>b0ec729
-
Update README.md
f6ce295 -
Update README.md
d1ddbb0 -
Update README.md
eb9089b -
Update README.md
bd9a4a1 -
Update README.md
76b530c -
Update README.md
5b2640b
-
Update README.md
7d2894a -
Update README.md
a407009 -
Update README.md
3d02821 -
Update README.md
650609c -
Update README.md
019ee51 -
Create README.md
This is the Full-Weight of WizardCoder. Repository: https://github.com/nlpxucan/WizardLM Paper:eeca2ab -
WizardCoder 15B V1.0 Full-weight
0fc1295 -
initial commit
effaf4b