Instructions to use aswain4/custom_coding_LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aswain4/custom_coding_LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aswain4/custom_coding_LLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aswain4/custom_coding_LLM") model = AutoModelForCausalLM.from_pretrained("aswain4/custom_coding_LLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aswain4/custom_coding_LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aswain4/custom_coding_LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aswain4/custom_coding_LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aswain4/custom_coding_LLM
- SGLang
How to use aswain4/custom_coding_LLM 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 "aswain4/custom_coding_LLM" \ --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": "aswain4/custom_coding_LLM", "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 "aswain4/custom_coding_LLM" \ --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": "aswain4/custom_coding_LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aswain4/custom_coding_LLM with Docker Model Runner:
docker model run hf.co/aswain4/custom_coding_LLM
Update README.md
Browse files
README.md
CHANGED
|
@@ -51,11 +51,11 @@ This model is designed to generate quality and efficient code in any programming
|
|
| 51 |
|
| 52 |
This mode is not specifically designed for any other type of task. However, the model appears to still contain roughly the same generalizability as the base model. Users should consider the common limitations of language models as they select use cases and evaluate and mitigate for accuracy, safety, and fairness before using them within a specific downstream use case, particularly if being used in high-risk scenarios.
|
| 53 |
|
| 54 |
-
##
|
| 55 |
|
| 56 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
### Recommendations
|
| 61 |
|
|
@@ -200,20 +200,6 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 200 |
|
| 201 |
[More Information Needed]
|
| 202 |
|
| 203 |
-
## Glossary [optional]
|
| 204 |
-
|
| 205 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 206 |
-
|
| 207 |
-
[More Information Needed]
|
| 208 |
-
|
| 209 |
-
## More Information [optional]
|
| 210 |
-
|
| 211 |
-
[More Information Needed]
|
| 212 |
-
|
| 213 |
-
## Model Card Authors [optional]
|
| 214 |
-
|
| 215 |
-
[More Information Needed]
|
| 216 |
-
|
| 217 |
## Model Card Contact
|
| 218 |
|
| 219 |
[More Information Needed]
|
|
|
|
| 51 |
|
| 52 |
This mode is not specifically designed for any other type of task. However, the model appears to still contain roughly the same generalizability as the base model. Users should consider the common limitations of language models as they select use cases and evaluate and mitigate for accuracy, safety, and fairness before using them within a specific downstream use case, particularly if being used in high-risk scenarios.
|
| 53 |
|
| 54 |
+
## Risks and Limitations
|
| 55 |
|
| 56 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 57 |
|
| 58 |
+
The model was trained on a dataset that is predominantly Python code; therefore, asking for code in another language may not be as efficient or high quality as the user would like. The model may still generate incorrect or outdated responses given that new libraries and practices are continuously being developed and updated. The model performance may be negatively affected by open-ended or highly complex tasks, and model performance can be influenced by the amount of context provided. Providing the model with ambiguous prompts can lead to incoherent or inaccurate responses. LLMs may struggle to grasp subtle nuances, sarcasm, or figurative language. LLMs rely on statistical patterns in language and may lack the ability to apply common sense reasoning in certain situations.
|
| 59 |
|
| 60 |
### Recommendations
|
| 61 |
|
|
|
|
| 200 |
|
| 201 |
[More Information Needed]
|
| 202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
## Model Card Contact
|
| 204 |
|
| 205 |
[More Information Needed]
|