Text Generation
Transformers
Safetensors
llama
code
Eval Results (legacy)
text-generation-inference
4-bit precision
awq
Instructions to use TheBloke/WizardCoder-Python-7B-V1.0-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/WizardCoder-Python-7B-V1.0-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/WizardCoder-Python-7B-V1.0-AWQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/WizardCoder-Python-7B-V1.0-AWQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/WizardCoder-Python-7B-V1.0-AWQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use TheBloke/WizardCoder-Python-7B-V1.0-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/WizardCoder-Python-7B-V1.0-AWQ" # 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-Python-7B-V1.0-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/WizardCoder-Python-7B-V1.0-AWQ
- SGLang
How to use TheBloke/WizardCoder-Python-7B-V1.0-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 "TheBloke/WizardCoder-Python-7B-V1.0-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": "TheBloke/WizardCoder-Python-7B-V1.0-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 "TheBloke/WizardCoder-Python-7B-V1.0-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": "TheBloke/WizardCoder-Python-7B-V1.0-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/WizardCoder-Python-7B-V1.0-AWQ with Docker Model Runner:
docker model run hf.co/TheBloke/WizardCoder-Python-7B-V1.0-AWQ
Update base_model formatting
Browse files
README.md
CHANGED
|
@@ -1,25 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: https://huggingface.co/WizardLM/WizardCoder-Python-7b-V1.0
|
| 3 |
-
inference: false
|
| 4 |
-
library_name: transformers
|
| 5 |
license: llama2
|
|
|
|
|
|
|
|
|
|
| 6 |
metrics:
|
| 7 |
- code_eval
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
results:
|
| 11 |
-
- dataset:
|
| 12 |
-
name: HumanEval
|
| 13 |
-
type: openai_humaneval
|
| 14 |
-
metrics:
|
| 15 |
-
- name: pass@1
|
| 16 |
-
type: pass@1
|
| 17 |
-
value: 0.555
|
| 18 |
-
verified: false
|
| 19 |
-
task:
|
| 20 |
-
type: text-generation
|
| 21 |
model_creator: WizardLM
|
| 22 |
-
model_name: WizardCoder Python 7B V1.0
|
| 23 |
model_type: llama
|
| 24 |
prompt_template: 'Below is an instruction that describes a task. Write a response
|
| 25 |
that appropriately completes the request.
|
|
@@ -34,8 +22,19 @@ prompt_template: 'Below is an instruction that describes a task. Write a respons
|
|
| 34 |
|
| 35 |
'
|
| 36 |
quantized_by: TheBloke
|
| 37 |
-
|
| 38 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
---
|
| 40 |
|
| 41 |
<!-- header start -->
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
license: llama2
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
metrics:
|
| 7 |
- code_eval
|
| 8 |
+
base_model: WizardLM/WizardCoder-Python-7b-V1.0
|
| 9 |
+
inference: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
model_creator: WizardLM
|
|
|
|
| 11 |
model_type: llama
|
| 12 |
prompt_template: 'Below is an instruction that describes a task. Write a response
|
| 13 |
that appropriately completes the request.
|
|
|
|
| 22 |
|
| 23 |
'
|
| 24 |
quantized_by: TheBloke
|
| 25 |
+
model-index:
|
| 26 |
+
- name: WizardCoder-Python-34B-V1.0
|
| 27 |
+
results:
|
| 28 |
+
- task:
|
| 29 |
+
type: text-generation
|
| 30 |
+
dataset:
|
| 31 |
+
name: HumanEval
|
| 32 |
+
type: openai_humaneval
|
| 33 |
+
metrics:
|
| 34 |
+
- type: pass@1
|
| 35 |
+
value: 0.555
|
| 36 |
+
name: pass@1
|
| 37 |
+
verified: false
|
| 38 |
---
|
| 39 |
|
| 40 |
<!-- header start -->
|