Text Generation
Transformers
PyTorch
llama
code llama
Eval Results (legacy)
text-generation-inference
Instructions to use Phind/Phind-CodeLlama-34B-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Phind/Phind-CodeLlama-34B-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Phind/Phind-CodeLlama-34B-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Phind/Phind-CodeLlama-34B-v2") model = AutoModelForCausalLM.from_pretrained("Phind/Phind-CodeLlama-34B-v2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Phind/Phind-CodeLlama-34B-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Phind/Phind-CodeLlama-34B-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Phind/Phind-CodeLlama-34B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Phind/Phind-CodeLlama-34B-v2
- SGLang
How to use Phind/Phind-CodeLlama-34B-v2 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 "Phind/Phind-CodeLlama-34B-v2" \ --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": "Phind/Phind-CodeLlama-34B-v2", "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 "Phind/Phind-CodeLlama-34B-v2" \ --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": "Phind/Phind-CodeLlama-34B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Phind/Phind-CodeLlama-34B-v2 with Docker Model Runner:
docker model run hf.co/Phind/Phind-CodeLlama-34B-v2
Still love the open-source community?
🔥 2
1
#36 opened over 1 year ago
by
jukofyork
missing prompt template?
#35 opened almost 2 years ago
by
maveriq
Adding `safetensors` variant of this model
#34 opened about 2 years ago
by
SFconvertbot
Use google?
#33 opened about 2 years ago
by
y0da
Sagemaker deployment
#32 opened over 2 years ago
by
PrajwalM
Updated prompt template
3
#31 opened over 2 years ago
by
karacayir
what's wrong with my program. i just use input() to get the prompt and give it to the generation, then i got this below.
#30 opened over 2 years ago
by
520jefferson
huggingface
#29 opened over 2 years ago
by
Rex2088
Adding Evaluation Results
#28 opened over 2 years ago
by
leaderboard-pr-bot
How to replicate HumanEval result?
#25 opened over 2 years ago
by
ebudmada
train with my data
1
#24 opened over 2 years ago
by
Asaadballa
Smaller model for fine tunning
❤️ 1
1
#23 opened over 2 years ago
by
vmirea
How can i download the model ?
2
#21 opened over 2 years ago
by
mariossssred
[AUTOMATED] Model Memory Requirements
#20 opened over 2 years ago
by
model-sizer-bot
Train on mongodb dataset
#19 opened over 2 years ago
by
Tilakraj0308
Fine tune on Solidity dataset
#17 opened over 2 years ago
by
yadheedhya
Willing to share the dataset for someone else to tune a 13b model?
👍 2
1
#16 opened over 2 years ago
by
Cypherfox
Greatest coding model I found, but censored
#15 opened over 2 years ago
by
ebudmada
Tokenization/decoding bug with "_"?
1
#13 opened over 2 years ago
by
anttip
RE: sequence length
#12 opened over 2 years ago
by
jasonwang178
(Possibly) the Highest quality coding dataset on hugging face. And its free for you to use.
❤️ 4
7
#11 opened over 2 years ago
by
rombodawg
getting RuntimeError: weight model.layers.0.self_attn.rotary_emb.inv_freq does not exist
1
#10 opened over 2 years ago
by
amangrover
OmniQuant model release?
#9 opened over 2 years ago
by
gnomealone
Smaller model sizes to allow for speculative decoding
👍 9
#8 opened over 2 years ago
by
wrtn2
Languages of the fine-tune dataset
#7 opened over 2 years ago
by
oskarhellqvist
Issue/Bug replicating HumanEval result
9
#4 opened over 2 years ago
by
emrgnt-cmplxty