Instructions to use TheBloke/WizardCoder-15B-1.0-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/WizardCoder-15B-1.0-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/WizardCoder-15B-1.0-GPTQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/WizardCoder-15B-1.0-GPTQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/WizardCoder-15B-1.0-GPTQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TheBloke/WizardCoder-15B-1.0-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/WizardCoder-15B-1.0-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/WizardCoder-15B-1.0-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/WizardCoder-15B-1.0-GPTQ
- SGLang
How to use TheBloke/WizardCoder-15B-1.0-GPTQ 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 "TheBloke/WizardCoder-15B-1.0-GPTQ" \ --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": "TheBloke/WizardCoder-15B-1.0-GPTQ", "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 "TheBloke/WizardCoder-15B-1.0-GPTQ" \ --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": "TheBloke/WizardCoder-15B-1.0-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/WizardCoder-15B-1.0-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/WizardCoder-15B-1.0-GPTQ
AutoGPTQ model loader crashes in text-gen-webui
#19 opened over 2 years ago
by
KitsuCha
Update README.md
#18 opened over 2 years ago
by
luv2261
Request: DOI
#17 opened over 2 years ago
by
shubhamrgandhi
Exllama not working
3
#16 opened over 2 years ago
by
DQ83
Newbie question
1
#15 opened almost 3 years ago
by
WyldKnyght
SuperHot version
#14 opened almost 3 years ago
by
vvvvvc
keeps crashing when running on text-generation-webui
2
#13 opened almost 3 years ago
by
wesleysanjose
fine-tuning
1
#12 opened almost 3 years ago
by
VlaTal
Runtime error from Sagemaker deploy
1
#11 opened almost 3 years ago
by
kshitijyad
Unable to load using Ooobabooga on CPU, was hoping someone would know why
2
#10 opened almost 3 years ago
by
split-paradox
Request: Please quantize raven in GPTQ
#7 opened almost 3 years ago
by
rombodawg
Doesn't run in latest text-generation-webui?
2
#6 opened almost 3 years ago
by
Djsiwnckfusnwbducke
WizardCoder Windows 10 64 bit 8 GB RAM 4 GB VRAM DefaultCPUAllocator: not enough memory: you tried to allocate 301989888 bytes
1
#5 opened almost 3 years ago
by
CHRISSANTY
question about tokens limit
#4 opened almost 3 years ago
by
sunzx0810
8bit GPTQ model
👍 1
5
#3 opened almost 3 years ago
by
0dd1er
Error when loading with text gen webui
9
#2 opened almost 3 years ago
by
freakontrol
need assistance
5
#1 opened almost 3 years ago
by
Vinitrajputt