Text Generation
Transformers
Safetensors
English
llama
fireplace
function-calling
code
code-instruct
valiant
valiant-labs
llama-2
llama-2-chat
13b
text-generation-inference
Instructions to use ValiantLabs/CodeLlama-13B-Fireplace with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ValiantLabs/CodeLlama-13B-Fireplace with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ValiantLabs/CodeLlama-13B-Fireplace")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ValiantLabs/CodeLlama-13B-Fireplace") model = AutoModelForCausalLM.from_pretrained("ValiantLabs/CodeLlama-13B-Fireplace", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ValiantLabs/CodeLlama-13B-Fireplace with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ValiantLabs/CodeLlama-13B-Fireplace" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ValiantLabs/CodeLlama-13B-Fireplace", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ValiantLabs/CodeLlama-13B-Fireplace
- SGLang
How to use ValiantLabs/CodeLlama-13B-Fireplace 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 "ValiantLabs/CodeLlama-13B-Fireplace" \ --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": "ValiantLabs/CodeLlama-13B-Fireplace", "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 "ValiantLabs/CodeLlama-13B-Fireplace" \ --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": "ValiantLabs/CodeLlama-13B-Fireplace", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ValiantLabs/CodeLlama-13B-Fireplace with Docker Model Runner:
docker model run hf.co/ValiantLabs/CodeLlama-13B-Fireplace
Commit History
-
card
Verified signature1a83866
-
Upload folder using huggingface_hub (#2)
Verified signature- fc3f33f33f0f4ae2f1ae622ab5a4d4c1166e720852c96462db2dce7787c0fd26 (6adcac14f27494be185f489fa686bd764d610f8d) - 98952edc8cf30f9c96d381b5b61f24fb9190e0f47c244bb4e96d19598a1593ab (18cd3fa5f45575e7593ef235efa716d69411042f) - 45eeb925d078937066917344591444d4fb0dcde346ad6d0be4f1e34accb7ff17 (508e946e36fcc3b3bbbdc4b71c56c89a00d2e19d) - dec405f932eec7e6036e57f041b4a88ba3cda0244e754dca51fdcb2255dc87c2 (8d715e2171b9a34ca1da27f525b1f3fb11147319) - 06fe651bd435bf521fa9618051d54e6e29bd8a36f74c0fd951a68dc2fd6d959e (4416c9a53548f8765c6c49f9bd7f2938e4d46553) - 6b06906991d1dce99c0708ec68cb94f6eec8e7346da89c2d2f858eef730a00c6 (9e6b9b337e228cd7fd33276fdd8c6f8794b925c0) - 7dca25b6922f057efd86eabd5148e99220d454aab70b94f4fc492255110d0f65 (622207d02cfe7dcf3f582171620a1f0246dfabf9) - 240e00fba4fd8880658b0e7e2b0857580907d4a9b5033b4e658e4734e728f00b (f84746946edea75a73f60efce29641ccf231fdb5) - ef2e6451544498cc8029638c407b0bef6c2c3b7827ff99e4ff8724f42d29982c (1c17239f03c204e8d9720dd80de2e1a804653413) - af901daa…a610589
-
tags
Verified signature4a1aca9
-
Upload folder using huggingface_hub (#1)
Verified signature- a56ddae0c11b717be3336eb980fafc69bf7108d77490865cde067975c953a376 (ce8b5ce9d3b46ea8babf4977f842dd4e3f43fdac) - d83ac217244425cf243b67b36ea1d6a9d04f88f3b67fcc367d136588b2636de9 (aee3e24ede28fe7a5a8afef797f7b82b3aea7f57) - eac6c4e4f6c797db353429d7be4befb18748b9017690bf43a214130516d71e6f (b32df86b144360409b58e8cf43d3b1fa09898df4) - ac1e44890754f8e9f7a1238249f1059007a2b5cea808509ed7c4df96c9ed22ed (34c253ba7291aa7508ae8c87c421b91829a37204) - 2747e3ff8e0ab0f285689ef439cd10da35ca462f311b70184c8fc091fb7d2fca (79f13f3ea4cb2addfcbad8e6a39f352a9fa88e2d) - e47a0fad4756647ef4e95a58d632359fdeded5c8bf9bc9bcfc810b7a8a76296a (2b20b4a08eb0371df5ad4f175f5637106e66083a) - 6a54cad2f4f525b678685951033835a84f6b9d5117e041c15b1abf83f316ed7a (a1616e23acfbc3abebf336b4be1d0f1f16a84d99) - ae59ebcd51906136fc741a9fcc18ddc66a7a80ca65429a74afbc54165d50d71b (b60628c54259235b8ef278bfb57a7542f3a3aa3a) - 6d9ec3fde950ed804780b040fe9704e6db99945d433b54b37768fe486376f1bb (b9c073e473a559209423dcf033750c35411981c7) - c34b01b1…1c37006 -
banner
Verified signature1ba2484 -
update model card
Verified signatured656b66 -
fireplace-13b model card
Verified signaturef52ab9f -
initial commit
Verified signature2478f77