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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ncoop57/multi-code-clippy") model = AutoModelForCausalLM.from_pretrained("ncoop57/multi-code-clippy") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
add model
Browse files- config.json +3 -4
- pytorch_model.bin +2 -2
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "multi-code-clippy",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPTNeoForCausalLM"
|
|
@@ -28,15 +27,15 @@
|
|
| 28 |
6
|
| 29 |
]
|
| 30 |
],
|
| 31 |
-
"bos_token_id":
|
| 32 |
"embed_dropout": 0,
|
| 33 |
-
"eos_token_id":
|
| 34 |
"gradient_checkpointing": false,
|
| 35 |
"hidden_size": 768,
|
| 36 |
"initializer_range": 0.02,
|
| 37 |
"intermediate_size": null,
|
| 38 |
"layer_norm_epsilon": 1e-05,
|
| 39 |
-
"max_position_embeddings":
|
| 40 |
"model_type": "gpt_neo",
|
| 41 |
"num_heads": 12,
|
| 42 |
"num_layers": 12,
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"activation_function": "gelu_new",
|
| 3 |
"architectures": [
|
| 4 |
"GPTNeoForCausalLM"
|
|
|
|
| 27 |
6
|
| 28 |
]
|
| 29 |
],
|
| 30 |
+
"bos_token_id": 50000,
|
| 31 |
"embed_dropout": 0,
|
| 32 |
+
"eos_token_id": 50001,
|
| 33 |
"gradient_checkpointing": false,
|
| 34 |
"hidden_size": 768,
|
| 35 |
"initializer_range": 0.02,
|
| 36 |
"intermediate_size": null,
|
| 37 |
"layer_norm_epsilon": 1e-05,
|
| 38 |
+
"max_position_embeddings": 1024,
|
| 39 |
"model_type": "gpt_neo",
|
| 40 |
"num_heads": 12,
|
| 41 |
"num_layers": 12,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de5cd02591bfba6c9b406e6cb0449322bd76ea7aba19797418d6c2464406e36f
|
| 3 |
+
size 509504721
|