Instructions to use keshav1354/CoderBuddy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use keshav1354/CoderBuddy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="keshav1354/CoderBuddy")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("keshav1354/CoderBuddy") model = AutoModelForCausalLM.from_pretrained("keshav1354/CoderBuddy") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use keshav1354/CoderBuddy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "keshav1354/CoderBuddy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "keshav1354/CoderBuddy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/keshav1354/CoderBuddy
- SGLang
How to use keshav1354/CoderBuddy 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 "keshav1354/CoderBuddy" \ --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": "keshav1354/CoderBuddy", "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 "keshav1354/CoderBuddy" \ --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": "keshav1354/CoderBuddy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use keshav1354/CoderBuddy with Docker Model Runner:
docker model run hf.co/keshav1354/CoderBuddy
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,13 +19,13 @@ new_version: keshav1354/CoderBuddy
|
|
| 19 |
|
| 20 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 21 |
|
| 22 |
-
- **Developed by:**
|
| 23 |
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
- **Model type:** [More Information Needed]
|
| 26 |
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
- **License:** [More Information Needed]
|
| 28 |
-
- **Finetuned from model [optional]:**
|
| 29 |
|
| 30 |
### Model Sources [optional]
|
| 31 |
|
|
|
|
| 19 |
|
| 20 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 21 |
|
| 22 |
+
- **Developed by:** Keshav Singh
|
| 23 |
- **Funded by [optional]:** [More Information Needed]
|
| 24 |
- **Shared by [optional]:** [More Information Needed]
|
| 25 |
- **Model type:** [More Information Needed]
|
| 26 |
- **Language(s) (NLP):** [More Information Needed]
|
| 27 |
- **License:** [More Information Needed]
|
| 28 |
+
- **Finetuned from model [optional]:** bigcode/starcoder2-7b
|
| 29 |
|
| 30 |
### Model Sources [optional]
|
| 31 |
|