Instructions to use WizardLMTeam/WizardCoder-Python-34B-V1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WizardLMTeam/WizardCoder-Python-34B-V1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WizardLMTeam/WizardCoder-Python-34B-V1.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WizardLMTeam/WizardCoder-Python-34B-V1.0") model = AutoModelForCausalLM.from_pretrained("WizardLMTeam/WizardCoder-Python-34B-V1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WizardLMTeam/WizardCoder-Python-34B-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-Python-34B-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-Python-34B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WizardLMTeam/WizardCoder-Python-34B-V1.0
- SGLang
How to use WizardLMTeam/WizardCoder-Python-34B-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-Python-34B-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-Python-34B-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-Python-34B-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-Python-34B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WizardLMTeam/WizardCoder-Python-34B-V1.0 with Docker Model Runner:
docker model run hf.co/WizardLMTeam/WizardCoder-Python-34B-V1.0
Commit History
-
Adding Evaluation Results
This is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions61e75d6
-
Update README.md
d869ce1
-
Update README.md
5cdc34e
-
Update README.md (#10)
- Update README.md (b205bcdaaa2550fe642b0f60a4650a3e432cda1b) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>479dc62
-
Update README.md (#9)
- Update README.md (b7d61af1ed9627c8de0faa2d61d63024936141f3) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>05b63d7 -
Update README.md (#8)
- Update README.md (85f3c8a58e68080eebc286717b9fe6a8b58a674e) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>f77c6a5 -
Update README.md
9279c3a -
Update README.md (#5)
- Update README.md (cac068d1d5e909d88fa0419a3698baedc62d28c8) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>dc2636c
-
Update README.md (#3)
- Update README.md (b8258f7717ff89e8c33d9c695026cfa0c663e5a8) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>673525f -
Update README.md
0a5af5a -
Update README.md
1f7a3d3 -
Update README.md
51eb17f -
Update README.md
ab7a191 -
coder 34B
42d8085 -
Update tokenizer_config.json
41efbaf -
Update README.md
e79a3da -
Update README.md
7dcd27c -
coder 34B
d27cced -
initial commit
578a2e6