Instructions to use WizardLMTeam/WizardLM-13B-V1.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WizardLMTeam/WizardLM-13B-V1.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WizardLMTeam/WizardLM-13B-V1.2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WizardLMTeam/WizardLM-13B-V1.2") model = AutoModelForCausalLM.from_pretrained("WizardLMTeam/WizardLM-13B-V1.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WizardLMTeam/WizardLM-13B-V1.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WizardLMTeam/WizardLM-13B-V1.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WizardLMTeam/WizardLM-13B-V1.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WizardLMTeam/WizardLM-13B-V1.2
- SGLang
How to use WizardLMTeam/WizardLM-13B-V1.2 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/WizardLM-13B-V1.2" \ --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/WizardLM-13B-V1.2", "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/WizardLM-13B-V1.2" \ --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/WizardLM-13B-V1.2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WizardLMTeam/WizardLM-13B-V1.2 with Docker Model Runner:
docker model run hf.co/WizardLMTeam/WizardLM-13B-V1.2
Commit History
-
Update README.md
cf5f403
-
Update config.json (#24)
- Update config.json (37c9e5d81dd6632b7dacec58c870f9e751a19f62) Co-authored-by: Robert Caulk <rcaulk@users.noreply.huggingface.co>f7cccd7
-
Update README.md (#23)
- Update README.md (6260f3735d45464b7494361d7f9aa23d4a64acfc) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>f34c0e4
-
Update README.md (#22)
- Update README.md (4e6a6fa769dcd93a50f705302f5af4bdf1838ad2) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>a23c2c3
-
Update README.md (#21)
- Update README.md (12902584a1a050f03d9b4f8638609639ffa319d6) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>699e800 -
Update README.md (#20)
- Update README.md (b40a6d689d5be8391d208c5719b07cc08c8658ea) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>889b35a -
Update README.md
379ee38
-
Update README.md (#19)
- Update README.md (91a3e8a746c6e3a27b83247102edf665613f6580) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>e5dc13a
-
Update README.md (#17)
- Update README.md (38194161c630b19aec89efa1d81f63b26b916741) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>e51b642 -
Update README.md (#18)
- Update README.md (37dab634c20f3e8d3eb183d2824356b3ec75f26c) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>157025c
-
update_url (#15)
- update_url (a50d76d9fc44370407dd71f498798e6b0331b694) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>eb43745
-
Update README.md
b17cf5e -
update_url (#14)
- update_url (b0ced9bf64efbe6f4099ef4b2cd416f769897e16) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>5bfec24
-
Update README.md
b8c04bd -
Update README.md
38e3c76
-
Update README.md
5b00b58
-
Update README.md
d50b606 -
Update README.md
b51b4b7 -
Update README.md
5fe2735
-
Update README.md
6760d0c -
Update README.md
6614ea7
-
Update README.md
46e6f09 -
Update README.md
b3cc516 -
Create README.md
0f2a6b7 -
WizardLM 13B V1.2
c9a49e6 -
Create README.md
40647ad -
initial commit
e7326ad