Instructions to use ncoop57/code-clippy-125M-py with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ncoop57/code-clippy-125M-py with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ncoop57/code-clippy-125M-py")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ncoop57/code-clippy-125M-py") model = AutoModelForCausalLM.from_pretrained("ncoop57/code-clippy-125M-py", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ncoop57/code-clippy-125M-py with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ncoop57/code-clippy-125M-py" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ncoop57/code-clippy-125M-py", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ncoop57/code-clippy-125M-py
- SGLang
How to use ncoop57/code-clippy-125M-py 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 "ncoop57/code-clippy-125M-py" \ --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": "ncoop57/code-clippy-125M-py", "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 "ncoop57/code-clippy-125M-py" \ --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": "ncoop57/code-clippy-125M-py", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ncoop57/code-clippy-125M-py with Docker Model Runner:
docker model run hf.co/ncoop57/code-clippy-125M-py
Commit History
-
final model
8b49d56 -
step 50000
f24b640 -
step 47500
74b1a56
-
step 45000
25eab71 -
step 42500
9badd88 -
step 40000
617d134
-
step 37500
2ce1483 -
step 35000
3c99b34 -
step 32500
5a87bfc
-
step 30000
2603811 -
step 27500
021f53b -
step 25000
68f9b6c
-
step 22500
c9998d6 -
step 20000
e2e966b -
step 17500
505441e
-
step 15000
cb6a4ed -
step 12500
82eb3d4 -
step 10000
9f6a57b
-
step 7500
7abef16 -
Add last log that hanged
025a9dc
-
step 5000
bc509d8
-
step 2500
3cd156d