Instructions to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TheBloke/WizardCoder-Python-34B-V1.0-GGUF", dtype="auto") - llama-cpp-python
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="TheBloke/WizardCoder-Python-34B-V1.0-GGUF", filename="wizardcoder-python-34b-v1.0.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
Use Docker
docker model run hf.co/TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with Ollama:
ollama run hf.co/TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
- Unsloth Studio new
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheBloke/WizardCoder-Python-34B-V1.0-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for TheBloke/WizardCoder-Python-34B-V1.0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for TheBloke/WizardCoder-Python-34B-V1.0-GGUF to start chatting
- Docker Model Runner
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with Docker Model Runner:
docker model run hf.co/TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
- Lemonade
How to use TheBloke/WizardCoder-Python-34B-V1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull TheBloke/WizardCoder-Python-34B-V1.0-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.WizardCoder-Python-34B-V1.0-GGUF-Q4_K_M
List all available models
lemonade list
Update base_model formatting
Browse files
README.md
CHANGED
|
@@ -1,25 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: https://huggingface.co/WizardLM/WizardCoder-Python-34B-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.732
|
| 18 |
-
verified: false
|
| 19 |
-
task:
|
| 20 |
-
type: text-generation
|
| 21 |
model_creator: WizardLM
|
| 22 |
-
model_name: WizardCoder Python 34B 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-34B-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.732
|
| 36 |
+
name: pass@1
|
| 37 |
+
verified: false
|
| 38 |
---
|
| 39 |
|
| 40 |
<!-- header start -->
|