Instructions to use ncoop57/multi-code-clippy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ncoop57/multi-code-clippy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ncoop57/multi-code-clippy")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ncoop57/multi-code-clippy") model = AutoModelForCausalLM.from_pretrained("ncoop57/multi-code-clippy", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ncoop57/multi-code-clippy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ncoop57/multi-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/multi-code-clippy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ncoop57/multi-code-clippy
- SGLang
How to use ncoop57/multi-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/multi-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/multi-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/multi-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/multi-code-clippy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ncoop57/multi-code-clippy with Docker Model Runner:
docker model run hf.co/ncoop57/multi-code-clippy
Commit History
-
add model
380fc62
-
step 50000
5aaf99c -
step 49000
508ef45 -
step 48000
8e26ae5 -
step 47000
2e5c310 -
step 46000
572893f -
step 45000
9a19140 -
step 44000
84c8fb0 -
step 43000
d24e10b -
step 42000
2c9f21a -
step 41000
2427a89 -
step 40000
e25c2d7 -
step 39000
d2106d5 -
step 38000
e53c3e1 -
step 37000
333cdce -
step 36000
f71b356
-
step 35000
aab1012 -
step 34000
6cccefd -
step 33000
6b82659 -
step 32000
06c1d4e -
step 31000
59d2b90 -
step 30000
af58905 -
step 29000
95f22fa -
step 28000
739c14e -
step 27000
9d342aa -
step 26000
86c4c54 -
step 25000
5549929 -
step 24000
7a862ae -
step 23000
04e6e2d -
step 22000
de93bae -
step 21000
1098822 -
step 20000
ad14ca4 -
step 19000
e9773d2 -
step 18000
4d2b52a
-
step 17000
4fad2a5 -
step 16000
704f602 -
step 15000
751fbfb -
step 14000
3a61b16 -
step 13000
7d01f0b -
step 12000
e455b12 -
step 11000
3d9f7da -
step 10000
c2659cd -
step 9000
8cd23e2 -
step 8000
869a374 -
step 7000
1deb887 -
step 6000
8b611e7 -
step 5000
8f2bfb2 -
step 4000
f6d96e1 -
step 3000
292ce9a -
step 2000
0998bf2