Instructions to use amrit-lal-singh/codellama-syn3k-python with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amrit-lal-singh/codellama-syn3k-python with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="amrit-lal-singh/codellama-syn3k-python")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("amrit-lal-singh/codellama-syn3k-python") model = AutoModelForCausalLM.from_pretrained("amrit-lal-singh/codellama-syn3k-python", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use amrit-lal-singh/codellama-syn3k-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-syn3k-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-syn3k-python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/amrit-lal-singh/codellama-syn3k-python
- SGLang
How to use amrit-lal-singh/codellama-syn3k-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-syn3k-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-syn3k-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-syn3k-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-syn3k-python", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use amrit-lal-singh/codellama-syn3k-python with Docker Model Runner:
docker model run hf.co/amrit-lal-singh/codellama-syn3k-python
Commit History
-
Training in progress, epoch 30
f07cb26 -
Training in progress, epoch 29
dac1a6a -
Training in progress, epoch 28
0e31ec1 -
Training in progress, epoch 27
7b99252 -
Training in progress, epoch 26
7218324 -
Training in progress, epoch 25
7e1e089 -
Training in progress, epoch 24
84a2010 -
Training in progress, epoch 23
e5b3c54 -
Training in progress, epoch 22
099e74e -
Training in progress, epoch 21
04b8413 -
Training in progress, epoch 20
b03ebe1 -
Training in progress, epoch 19
a691ed2 -
Training in progress, epoch 18
84effd8 -
Training in progress, epoch 17
8fa54cd -
Training in progress, epoch 16
930b7a4 -
Training in progress, epoch 15
7cbbc97 -
Training in progress, epoch 14
ffba600 -
Training in progress, epoch 13
b43a87c -
Training in progress, epoch 12
25e5a52 -
Training in progress, epoch 11
6c0bd63 -
Training in progress, epoch 10
01fae16 -
Training in progress, epoch 9
7111639 -
Training in progress, epoch 8
bf17b07 -
Training in progress, epoch 7
1c2289a -
Training in progress, epoch 6
e713f37 -
Training in progress, epoch 5
93f2756 -
Training in progress, epoch 4
0d2578c -
Training in progress, epoch 3
4bb5999 -
Training in progress, epoch 2
62404e0 -
Training in progress, epoch 1
d923cea -
initial commit
fd58744