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