Instructions to use WizardLMTeam/WizardLM-70B-V1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WizardLMTeam/WizardLM-70B-V1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WizardLMTeam/WizardLM-70B-V1.0")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WizardLMTeam/WizardLM-70B-V1.0") model = AutoModelForCausalLM.from_pretrained("WizardLMTeam/WizardLM-70B-V1.0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WizardLMTeam/WizardLM-70B-V1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WizardLMTeam/WizardLM-70B-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/WizardLM-70B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WizardLMTeam/WizardLM-70B-V1.0
- SGLang
How to use WizardLMTeam/WizardLM-70B-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/WizardLM-70B-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/WizardLM-70B-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/WizardLM-70B-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/WizardLM-70B-V1.0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WizardLMTeam/WizardLM-70B-V1.0 with Docker Model Runner:
docker model run hf.co/WizardLMTeam/WizardLM-70B-V1.0
Commit History
-
Update README.md
54aaeca -
Update README.md
a5c5bb8 -
Update README.md
c3c5f0a -
Update README.md
bfa0ee3
-
Update README.md
2e868c4
-
Update README.md (#16)
- Update README.md (251536f590bf57ad702abdfd1bad38df994c7705) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>b476e91
-
Update README.md (#15)
- Update README.md (70a59a81fd790d68bb3a5f721754a5d0fdecfb00) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>ac5972e
-
Update README.md (#14)
- Update README.md (318c35d21b21458e3c56f24004dabf3e1c099a51) Co-authored-by: haipengluo <haipeng1@users.noreply.huggingface.co>f0a704f -
Update README.md (#13)
- Update README.md (4bc359644bed73a3e5d0829a6c15eedb7bd07475) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>019740d -
Update README.md
258bf69
-
Update README.md (#12)
- Update README.md (406bac53a7c90024fafcb6efc5505abdc2ca9c0c) Co-authored-by: Ziyang Luo <Ziyang@users.noreply.huggingface.co>765bffd
-
Update README.md (#11)
- Update README.md (af3712af4b090cf9038c93822efe201b42404636) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>75241fc -
Update README.md (#10)
- Update README.md (5dae04a1003bc22e12108519b31824f188c3e07a) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>28a6947
-
Update README.md
4dc4c31
-
update_url (#8)
- update_url (1ad0d61220f5e67e70a52ca08f07ab1a0f4f2979) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>6dae380
-
Update README.md
25033f5 -
update_url (#7)
- update_url (5d2840878394d3f95bc9ee698e759a21ea7acc4a) Co-authored-by: l <haipeng1@users.noreply.huggingface.co>7988602
-
Update README.md
a179a65 -
Update README.md
3fea143
-
Update README.md
874c80b -
Update README.md
69b28cb -
Maximum sequence length for a Llama 2 model is 4096 (#3)
- Maximum sequence length for a Llama 2 model is 4096 (d3850bcee664af47e31440c03bd13adc0a878c1a) Co-authored-by: Tom Jobbins <TheBloke@users.noreply.huggingface.co>153924a -
Update README.md
99f6021
-
Update README.md
a043ea3 -
Update README.md
05f8dc6 -
Update README.md
85a4cbc -
Update README.md
1d8f11e -
Update README.md
97759fa -
Update README.md
8ecb6cc -
Update README.md
14a8aed -
Update README.md
24c046e -
Update README.md
64b2a3d -
Update README.md
c43ff4d -
Update README.md
7cdebc2 -
Update README.md
a6e6a97 -
70B V1.0
37558d7 -
initial commit
1d9e3af