Text Generation
Transformers
Safetensors
mistral
finetuned
4-bit precision
AWQ
text-generation-inference
chatml
arxiv:2304.12244
arxiv:2306.08568
arxiv:2308.09583
awq
Instructions to use solidrust/WizardLM-2-7B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use solidrust/WizardLM-2-7B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="solidrust/WizardLM-2-7B-AWQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("solidrust/WizardLM-2-7B-AWQ") model = AutoModelForCausalLM.from_pretrained("solidrust/WizardLM-2-7B-AWQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use solidrust/WizardLM-2-7B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "solidrust/WizardLM-2-7B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "solidrust/WizardLM-2-7B-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/solidrust/WizardLM-2-7B-AWQ
- SGLang
How to use solidrust/WizardLM-2-7B-AWQ 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 "solidrust/WizardLM-2-7B-AWQ" \ --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": "solidrust/WizardLM-2-7B-AWQ", "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 "solidrust/WizardLM-2-7B-AWQ" \ --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": "solidrust/WizardLM-2-7B-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use solidrust/WizardLM-2-7B-AWQ with Docker Model Runner:
docker model run hf.co/solidrust/WizardLM-2-7B-AWQ
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- transformers
|
| 5 |
+
- safetensors
|
| 6 |
+
- mistral
|
| 7 |
+
- finetuned
|
| 8 |
+
- 4-bit
|
| 9 |
+
- AWQ
|
| 10 |
+
- text-generation
|
| 11 |
+
- text-generation-inference
|
| 12 |
+
- autotrain_compatible
|
| 13 |
+
- endpoints_compatible
|
| 14 |
+
- chatml
|
| 15 |
+
- arxiv:2304.12244
|
| 16 |
+
- arxiv:2306.08568
|
| 17 |
+
- arxiv:2308.09583
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
# microsoft/WizardLM-2-7B AWQ
|
| 21 |
+
|
| 22 |
+
- Model creator: [microsoft](https://huggingface.co/microsoft)
|
| 23 |
+
- Original model: [WizardLM-2-7B](https://huggingface.co/microsoft/WizardLM-2-7B)
|
| 24 |
+
|
| 25 |
+
## Model Summary
|
| 26 |
+
|
| 27 |
+
We introduce and opensource WizardLM-2, our next generation state-of-the-art large language models,
|
| 28 |
+
which have improved performance on complex chat, multilingual, reasoning and agent.
|
| 29 |
+
New family includes three cutting-edge models: WizardLM-2 8x22B, WizardLM-2 70B, and WizardLM-2 7B.
|
| 30 |
+
|