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 (#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