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
|
@@ -62,7 +62,7 @@ The model was trained on a dataset that is predominantly Python code; therefore,
|
|
| 62 |
|
| 63 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 64 |
|
| 65 |
-
Users (both direct and downstream) should be made aware of the risks
|
| 66 |
|
| 67 |
## How to Get Started with the Model
|
| 68 |
|
|
@@ -171,36 +171,7 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 171 |
- **Compute Region:** [More Information Needed]
|
| 172 |
- **Carbon Emitted:** [More Information Needed]
|
| 173 |
|
| 174 |
-
## Technical Specifications [optional]
|
| 175 |
-
|
| 176 |
-
### Model Architecture and Objective
|
| 177 |
-
|
| 178 |
-
[More Information Needed]
|
| 179 |
-
|
| 180 |
-
### Compute Infrastructure
|
| 181 |
-
|
| 182 |
-
[More Information Needed]
|
| 183 |
-
|
| 184 |
-
#### Hardware
|
| 185 |
-
|
| 186 |
-
[More Information Needed]
|
| 187 |
-
|
| 188 |
-
#### Software
|
| 189 |
-
|
| 190 |
-
[More Information Needed]
|
| 191 |
-
|
| 192 |
-
## Citation [optional]
|
| 193 |
-
|
| 194 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 195 |
-
|
| 196 |
-
**BibTeX:**
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
| 199 |
-
|
| 200 |
-
**APA:**
|
| 201 |
-
|
| 202 |
-
[More Information Needed]
|
| 203 |
-
|
| 204 |
## Model Card Contact
|
| 205 |
|
| 206 |
-
|
|
|
|
|
|
| 62 |
|
| 63 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 64 |
|
| 65 |
+
Users (both direct and downstream) should be made aware of the risks and limitations of the model. Please read the above section before using this model.
|
| 66 |
|
| 67 |
## How to Get Started with the Model
|
| 68 |
|
|
|
|
| 171 |
- **Compute Region:** [More Information Needed]
|
| 172 |
- **Carbon Emitted:** [More Information Needed]
|
| 173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
## Model Card Contact
|
| 175 |
|
| 176 |
+
- **Email:** yhp7nq@virginia.edu
|
| 177 |
+
- **LinkedIn:** [Alden Swain](https://www.linkedin.com/in/alden-swain-747108328/)
|