Run this model with HF Jobs
Run StarkWizard/codellama-cairo-instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/StarkWizard/codellama-cairo-instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/StarkWizard/codellama-cairo-instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/StarkWizard/codellama-cairo-instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/StarkWizard/codellama-cairo-instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use StarkWizard/codellama-cairo-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StarkWizard/codellama-cairo-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="StarkWizard/codellama-cairo-instruct")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("StarkWizard/codellama-cairo-instruct") model = AutoModelForCausalLM.from_pretrained("StarkWizard/codellama-cairo-instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use StarkWizard/codellama-cairo-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "StarkWizard/codellama-cairo-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StarkWizard/codellama-cairo-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/StarkWizard/codellama-cairo-instruct
- SGLang
How to use StarkWizard/codellama-cairo-instruct 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 "StarkWizard/codellama-cairo-instruct" \ --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": "StarkWizard/codellama-cairo-instruct", "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 "StarkWizard/codellama-cairo-instruct" \ --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": "StarkWizard/codellama-cairo-instruct", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use StarkWizard/codellama-cairo-instruct with Docker Model Runner:
docker model run hf.co/StarkWizard/codellama-cairo-instruct
Upload LlamaForCausalLM
Browse filesFiles changed (14)
- model-00001-of-00014.safetensors+1-1
- model-00002-of-00014.safetensors+1-1
- model-00003-of-00014.safetensors+1-1
- model-00004-of-00014.safetensors+1-1
- model-00005-of-00014.safetensors+1-1
- model-00006-of-00014.safetensors+1-1
- model-00007-of-00014.safetensors+1-1
- model-00008-of-00014.safetensors+1-1
- model-00009-of-00014.safetensors+1-1
- model-00010-of-00014.safetensors+1-1
- model-00011-of-00014.safetensors+1-1
- model-00012-of-00014.safetensors+1-1
- model-00013-of-00014.safetensors+1-1
- model-00014-of-00014.safetensors+1-1
123version https://git-lfs.github.com/spec/v1oid sha256:feebbf24d4591f0b6e0c10f405f20ccfe5388322ad4233601a8cee47cbb4d510size 981616424123version https://git-lfs.github.com/spec/v1oid sha256:8a44e84219a186c9b41634b1883439b818dae5d283c115e8130795b4693976dasize 981616424
123version https://git-lfs.github.com/spec/v1oid sha256:543bc61117135b705c0d00ff4b964b433d14c78d4b8d71899b0534b5acd6f90esize 966838840123version https://git-lfs.github.com/spec/v1oid sha256:7092cc69e467261bd161acd91078c3b0cffccfebda5a68bee89544b4e8949853size 966838840
123version https://git-lfs.github.com/spec/v1oid sha256:4223dc272514aef20bd557d6874d084885dfdb4eaa50fc34ce9d254dd0e4d7c1size 966822232123version https://git-lfs.github.com/spec/v1oid sha256:af2a985208c4bea7362bb1a5ebe077b34664c63865afc29a486485b4efaa6aa6size 966822232
123version https://git-lfs.github.com/spec/v1oid sha256:419eb1eb085bade8a53dea22b33cd571d4fd28dd817e81c7d2bd7e626a5da900size 989907400123version https://git-lfs.github.com/spec/v1oid sha256:dcb42e918b60c37e1d28b6db7f716055b34c84c21e32cf7dc0c4ad0a0192fcccsize 989907400
123version https://git-lfs.github.com/spec/v1oid sha256:c93ab86694cee26a86b8d44b673933b11fafa920e5749c18cf6c660462a6c9b0size 943753688123version https://git-lfs.github.com/spec/v1oid sha256:0757fcd0643c89d3ab44834ff390f7c73ad4d2ad5201b9979964a4a7f2400190size 943753688
123version https://git-lfs.github.com/spec/v1oid sha256:4762627fa167742fbc59c8325ee980e05a072cdd6c71b657b205ccd929ba0837size 989890808123version https://git-lfs.github.com/spec/v1oid sha256:e24eed74d5a9ff4337cdfb8367cf47ba5e71177531000edd9f136f92f0c9a2cfsize 989890808
123version https://git-lfs.github.com/spec/v1oid sha256:87084ad1cd575b6c3e76727181bde49bb31ef98bdc3518c3ce84bc146ede030fsize 966838864123version https://git-lfs.github.com/spec/v1oid sha256:dc735a8467ec8b1b8c1df6cea6459a8cfefd45500b85158fa243871e4fae37ebsize 966838864
123version https://git-lfs.github.com/spec/v1oid sha256:c23bbcd8d498b914dc91750f090ee5be3040726e77b97a1aac9a0254048885cfsize 966822256123version https://git-lfs.github.com/spec/v1oid sha256:f4a60d5e6977b97fc0394af1ead4bc21fdc5a85c0d91e32ff15a213ce557752bsize 966822256
123version https://git-lfs.github.com/spec/v1oid sha256:2b7f912b25bd134f0c1a1bf28ca493ee3aa99f89d1787baf5bdaa96383fca1basize 989907416123version https://git-lfs.github.com/spec/v1oid sha256:7f0a662fdefada34e3a649a11a22cb0505492b2a512250cadfcfc8f472950b60size 989907416
123version https://git-lfs.github.com/spec/v1oid sha256:a10d4f8a8e9180d54d4e507798ab31cb30d5674bb2e4aeaf905d48e8e94c0aa2size 943753696123version https://git-lfs.github.com/spec/v1oid sha256:f88a4ab56ffe6ce63f9956de98cdbaff53bd9213736bc67af89edfc06720e035size 943753696
123version https://git-lfs.github.com/spec/v1oid sha256:7dfd2a536446593ee4a1cf2ef48dad302a06d4a01602f694d1e8b158c43453easize 989890808123version https://git-lfs.github.com/spec/v1oid sha256:7394ce85c9af5cda705a10b059d58d524fe72d3ff5e1e0850957183447c99fadsize 989890808
123version https://git-lfs.github.com/spec/v1oid sha256:8d837c3f137e3456cf6ff58e76b9362ae73a28fde8bce7a6dd354237fd627d11size 966838864123version https://git-lfs.github.com/spec/v1oid sha256:2da515943ab79f56c04ff93c72f266d7be691bf7e30697bddab548867be2f8a7size 966838864
123version https://git-lfs.github.com/spec/v1oid sha256:e0ab4b7fba1b75140df874825563a6818daf6a5a899916c448e599c549f9b51fsize 966822256123version https://git-lfs.github.com/spec/v1oid sha256:58b4279d137b24b3187ad881841e2ea5cd440659d86a7b81e5daca56bb233464size 966822256
123version https://git-lfs.github.com/spec/v1oid sha256:6ada7779548cd74c30590da60ebbde68ca44ace43738afa801550fffd32194fasize 847423128123version https://git-lfs.github.com/spec/v1oid sha256:07d8df01b285ac6ebe6746f7de56eb0b4a24cdd4f259bc865ca4073636a05f72size 847423128
model-00001-of-00014.safetensors+1-1
model-00002-of-00014.safetensors+1-1
model-00003-of-00014.safetensors+1-1
model-00004-of-00014.safetensors+1-1
model-00005-of-00014.safetensors+1-1
model-00006-of-00014.safetensors+1-1
model-00007-of-00014.safetensors+1-1
model-00008-of-00014.safetensors+1-1
model-00009-of-00014.safetensors+1-1
model-00010-of-00014.safetensors+1-1
model-00011-of-00014.safetensors+1-1
model-00012-of-00014.safetensors+1-1
model-00013-of-00014.safetensors+1-1
model-00014-of-00014.safetensors+1-1