Instructions to use ncoop57/cm_code_clippy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ncoop57/cm_code_clippy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ncoop57/cm_code_clippy")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ncoop57/cm_code_clippy") model = AutoModelForCausalLM.from_pretrained("ncoop57/cm_code_clippy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ncoop57/cm_code_clippy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ncoop57/cm_code_clippy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ncoop57/cm_code_clippy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ncoop57/cm_code_clippy
- SGLang
How to use ncoop57/cm_code_clippy 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/cm_code_clippy" \ --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/cm_code_clippy", "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/cm_code_clippy" \ --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/cm_code_clippy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ncoop57/cm_code_clippy with Docker Model Runner:
docker model run hf.co/ncoop57/cm_code_clippy
Commit History
-
step 150000
5a6f60c -
step 145000
393afd9 -
step 140000
1d492aa -
step 135000
327bebb
-
step 130000
a8c27b8 -
step 125000
60c9eba -
step 120000
91b726c -
step 115000
735fa0e
-
step 110000
a328d70 -
step 105000
2997358 -
step 100000
a550c3e -
step 95000
08b33d5
-
step 90000
67cf39d -
step 85000
30f297d -
step 80000
75a7f63 -
step 75000
9be8305
-
step 70000
3d9d65d -
step 65000
686fa76 -
step 60000
80d4149 -
step 55000
04f4105 -
step 50000
23b2d73
-
step 45000
767af8e -
step 40000
7a07393 -
step 35000
eeb78f1 -
step 30000
8908229
-
step 25000
20b2be6 -
step 20000
3033721 -
step 15000
7d4fba8 -
step 10000
ad512a7
-
step 5000
5367894