Instructions to use amrit-lal-singh/codellama-syn3plus3k-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amrit-lal-singh/codellama-syn3plus3k-python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amrit-lal-singh/codellama-syn3plus3k-python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("amrit-lal-singh/codellama-syn3plus3k-python") model = AutoModelForCausalLM.from_pretrained("amrit-lal-singh/codellama-syn3plus3k-python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amrit-lal-singh/codellama-syn3plus3k-python with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "amrit-lal-singh/codellama-syn3plus3k-python" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "amrit-lal-singh/codellama-syn3plus3k-python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/amrit-lal-singh/codellama-syn3plus3k-python
- SGLang
How to use amrit-lal-singh/codellama-syn3plus3k-python 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 "amrit-lal-singh/codellama-syn3plus3k-python" \ --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": "amrit-lal-singh/codellama-syn3plus3k-python", "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 "amrit-lal-singh/codellama-syn3plus3k-python" \ --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": "amrit-lal-singh/codellama-syn3plus3k-python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use amrit-lal-singh/codellama-syn3plus3k-python with Docker Model Runner:
docker model run hf.co/amrit-lal-singh/codellama-syn3plus3k-python
Download training_args.bin from amrit-lal-singh/codellama-syn3plus3k-python: direct link, hf CLI and curl.
- Browser
- Download file 4.41 kB
-
https://huggingface.co/amrit-lal-singh/codellama-syn3plus3k-python/resolve/refs%2Fpr%2F1/training_args.bin
- Command line
-
hf download hf://amrit-lal-singh/codellama-syn3plus3k-python@refs/pr/1/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/amrit-lal-singh/codellama-syn3plus3k-python/resolve/refs%2Fpr%2F1/training_args.bin
4.41 kB
- Xet hash:
- 0ae8c449160a30b2befd07711ac33d708fb348c0d3db12aa3b61040031d7b4f9
- Size of remote file:
- 4.41 kB
- SHA256:
- dde72dfbd52144f73ae3c62572cf754897d02e15142824da06f044525a0b8fb1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.