Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -2,47 +2,82 @@
|
|
| 2 |
license: other
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
- lora
|
| 9 |
- vllm
|
| 10 |
- open-webui
|
| 11 |
-
-
|
| 12 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# 8bcustom-model
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
-
8bcustom-model
|
| 25 |
-
```
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
-
- Runtime served name: `dgx-stable-current`
|
| 31 |
-
- Model class: 8B-class local custom coding assistant
|
| 32 |
-
- Runtime: vLLM OpenAI-compatible API
|
| 33 |
-
- Open-WebUI compatible: yes
|
| 34 |
|
| 35 |
-
##
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
```bash
|
| 48 |
python -m vllm.entrypoints.openai.api_server \
|
|
@@ -56,23 +91,139 @@ python -m vllm.entrypoints.openai.api_server \
|
|
| 56 |
--max-num-seqs 8
|
| 57 |
```
|
| 58 |
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
```text
|
| 62 |
-
Base URL: http://
|
| 63 |
-
Model : 8bcustom-model
|
| 64 |
API Key : dummy
|
|
|
|
| 65 |
```
|
| 66 |
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
-
- vLLM medium prompt
|
| 73 |
-
- CUDA check template
|
| 74 |
-
- LoRA/stable/rejected policy template
|
| 75 |
|
| 76 |
-
##
|
| 77 |
|
| 78 |
-
This
|
|
|
|
| 2 |
license: other
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
+
- text-generation
|
| 6 |
+
- coding
|
| 7 |
+
- korean
|
|
|
|
| 8 |
- vllm
|
| 9 |
- open-webui
|
| 10 |
+
- local-llm
|
| 11 |
+
- lora
|
| 12 |
+
- qwen
|
| 13 |
+
- 8b
|
| 14 |
+
language:
|
| 15 |
+
- ko
|
| 16 |
+
- en
|
| 17 |
---
|
| 18 |
|
| 19 |
# 8bcustom-model
|
| 20 |
|
| 21 |
+
**8bcustom-model** is an 8B-class local coding assistant model/runtime release built for Korean developers who need practical help with Linux, Docker, vLLM, Open-WebUI, CUDA, JSONL datasets, and LoRA workflows.
|
| 22 |
|
| 23 |
+
This repository is part of a DGX AI Factory-style local LLM deployment project: data preparation, LoRA repair, model merge, vLLM serving, Open-WebUI integration, systemd autostart, benchmarking, and Hugging Face release packaging.
|
| 24 |
|
| 25 |
+
## What this model is for
|
| 26 |
|
| 27 |
+
This model is designed as a practical development assistant for:
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
- Linux command troubleshooting
|
| 30 |
+
- Docker and service deployment
|
| 31 |
+
- vLLM OpenAI-compatible serving
|
| 32 |
+
- Open-WebUI connection setup
|
| 33 |
+
- CUDA/PyTorch environment checks
|
| 34 |
+
- JSONL dataset validation
|
| 35 |
+
- LoRA training and repair workflows
|
| 36 |
+
- Korean step-by-step developer support
|
| 37 |
|
| 38 |
+
The target behavior is direct, procedural, and operational: diagnose the problem, provide exact commands, and explain the result clearly in Korean honorific style.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
## Validated local runtime
|
| 41 |
|
| 42 |
+
The model was validated in a local production-style runtime:
|
| 43 |
+
|
| 44 |
+
| Component | Status |
|
| 45 |
+
|---|---|
|
| 46 |
+
| vLLM OpenAI-compatible API | Working |
|
| 47 |
+
| Open-WebUI integration | Working |
|
| 48 |
+
| systemd autostart | Working |
|
| 49 |
+
| Local model name | `dgx-stable-current` |
|
| 50 |
+
| Public release name | `8bcustom-model` |
|
| 51 |
+
| Hugging Face public repo | `koreallmdev/8bcustom-model` |
|
| 52 |
+
|
| 53 |
+
## Benchmark summary
|
| 54 |
+
|
| 55 |
+
The final deployment benchmark used a router/template runtime hardening layer for operational reliability.
|
| 56 |
+
|
| 57 |
+
| Metric | Result |
|
| 58 |
+
|---|---:|
|
| 59 |
+
| Average score | 97.75 |
|
| 60 |
+
| Pass ≥ 70 | 20 / 20 |
|
| 61 |
+
| Strong ≥ 85 | 20 / 20 |
|
| 62 |
+
| Critical failures | 0 |
|
| 63 |
+
| Decision | DEPLOY_CANDIDATE |
|
| 64 |
+
|
| 65 |
+
The benchmark focused on practical developer operations such as Linux, Docker, CUDA checks, vLLM serving, JSONL validation, FastAPI, systemd troubleshooting, LoRA policy, and Korean response quality.
|
| 66 |
+
|
| 67 |
+
## Runtime policy
|
| 68 |
+
|
| 69 |
+
For production usage, the local deployment uses a hybrid approach:
|
| 70 |
+
|
| 71 |
+
- General coding questions: model generation
|
| 72 |
+
- Linux/vLLM/CUDA/systemd known operational routes: guarded templates
|
| 73 |
+
- LoRA/stable/rejected model policy: fixed policy templates
|
| 74 |
+
- CJK leakage and style regressions: post-check and route hardening
|
| 75 |
|
| 76 |
+
This approach keeps the model useful for open-ended coding while making high-risk operational answers more deterministic.
|
| 77 |
+
|
| 78 |
+
## Quick start with vLLM
|
| 79 |
+
|
| 80 |
+
After downloading the model files, you can serve the model with vLLM:
|
| 81 |
|
| 82 |
```bash
|
| 83 |
python -m vllm.entrypoints.openai.api_server \
|
|
|
|
| 91 |
--max-num-seqs 8
|
| 92 |
```
|
| 93 |
|
| 94 |
+
Check the model endpoint:
|
| 95 |
+
|
| 96 |
+
```bash
|
| 97 |
+
curl http://127.0.0.1:8000/v1/models
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
Send a test request:
|
| 101 |
+
|
| 102 |
+
```bash
|
| 103 |
+
curl http://127.0.0.1:8000/v1/chat/completions \
|
| 104 |
+
-H "Content-Type: application/json" \
|
| 105 |
+
-d '{
|
| 106 |
+
"model": "8bcustom-model",
|
| 107 |
+
"messages": [
|
| 108 |
+
{
|
| 109 |
+
"role": "user",
|
| 110 |
+
"content": "Docker 컨테이너가 실행 중인지 확인하는 명령어를 알려주세요."
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"temperature": 0.2,
|
| 114 |
+
"max_tokens": 300
|
| 115 |
+
}'
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
## Open-WebUI connection
|
| 119 |
+
|
| 120 |
+
For Open-WebUI, add an OpenAI-compatible API connection.
|
| 121 |
+
|
| 122 |
+
If Open-WebUI runs in Docker:
|
| 123 |
|
| 124 |
```text
|
| 125 |
+
Base URL: http://host.docker.internal:8000/v1
|
|
|
|
| 126 |
API Key : dummy
|
| 127 |
+
Model : 8bcustom-model
|
| 128 |
```
|
| 129 |
|
| 130 |
+
If you use the local deployment name from the original DGX runtime:
|
| 131 |
+
|
| 132 |
+
```text
|
| 133 |
+
Model: dgx-stable-current
|
| 134 |
+
```
|
| 135 |
+
|
| 136 |
+
If `host.docker.internal` does not work in your Docker environment, try:
|
| 137 |
+
|
| 138 |
+
```text
|
| 139 |
+
Base URL: http://172.17.0.1:8000/v1
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
## Example prompts
|
| 143 |
+
|
| 144 |
+
Korean developer support:
|
| 145 |
+
|
| 146 |
+
```text
|
| 147 |
+
Ubuntu에서 8000 포트를 사용 중인 프로세스를 확인하고 종료하는 절차를 알려주세요.
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
vLLM troubleshooting:
|
| 151 |
+
|
| 152 |
+
```text
|
| 153 |
+
vLLM 서버가 Open-WebUI에 모델을 표시하지 못할 때 확인해야 할 순서를 알려주세요.
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
LoRA workflow:
|
| 157 |
+
|
| 158 |
+
```text
|
| 159 |
+
LoRA adapter를 merge한 뒤 vLLM에서 서빙하기 전 확인해야 할 파일 목록을 알려주세요.
|
| 160 |
+
```
|
| 161 |
+
|
| 162 |
+
Dataset validation:
|
| 163 |
+
|
| 164 |
+
```text
|
| 165 |
+
JSONL 학습 데이터에서 깨진 JSON과 중복 instruction을 검사하는 Python 스크립트를 만들어주세요.
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
## Intended use
|
| 169 |
+
|
| 170 |
+
This release is intended for:
|
| 171 |
+
|
| 172 |
+
- Local developer assistants
|
| 173 |
+
- On-premise coding assistant experiments
|
| 174 |
+
- vLLM/Open-WebUI deployment practice
|
| 175 |
+
- Korean-language coding support
|
| 176 |
+
- LoRA and dataset pipeline testing
|
| 177 |
+
|
| 178 |
+
## Out-of-scope use
|
| 179 |
+
|
| 180 |
+
This model is not intended to be treated as a fully audited security, legal, medical, or financial advisor. Operational outputs should be reviewed before applying them to production systems.
|
| 181 |
+
|
| 182 |
+
## Deployment notes
|
| 183 |
+
|
| 184 |
+
The original local deployment used:
|
| 185 |
+
|
| 186 |
+
```text
|
| 187 |
+
Local served model name: dgx-stable-current
|
| 188 |
+
Open-WebUI URL : http://127.0.0.1:3000
|
| 189 |
+
vLLM URL : http://127.0.0.1:8000/v1
|
| 190 |
+
Open-WebUI Base URL : http://host.docker.internal:8000/v1
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
The public release name is:
|
| 194 |
+
|
| 195 |
+
```text
|
| 196 |
+
8bcustom-model
|
| 197 |
+
```
|
| 198 |
+
|
| 199 |
+
## Project highlights
|
| 200 |
+
|
| 201 |
+
This project demonstrates an end-to-end local LLM workflow:
|
| 202 |
+
|
| 203 |
+
1. Dataset filtering and repair
|
| 204 |
+
2. LoRA candidate testing
|
| 205 |
+
3. Regression rejection
|
| 206 |
+
4. Stable adapter preservation
|
| 207 |
+
5. Model merge for vLLM
|
| 208 |
+
6. Open-WebUI integration
|
| 209 |
+
7. systemd autostart
|
| 210 |
+
8. Private backup upload
|
| 211 |
+
9. Public Hugging Face release
|
| 212 |
+
10. Runtime route/template hardening
|
| 213 |
+
|
| 214 |
+
## Collaboration
|
| 215 |
+
|
| 216 |
+
This repository can be used as a portfolio reference for:
|
| 217 |
|
| 218 |
+
- Local LLM deployment
|
| 219 |
+
- vLLM serving
|
| 220 |
+
- Open-WebUI integration
|
| 221 |
+
- Korean coding assistant customization
|
| 222 |
+
- LoRA fine-tuning and repair workflows
|
| 223 |
+
- On-premise AI assistant setup
|
| 224 |
|
| 225 |
+
For collaboration, please contact through the Hugging Face profile associated with this repository.
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
+
## Disclaimer
|
| 228 |
|
| 229 |
+
This is an experimental local LLM deployment release. Validate outputs before use in production environments.
|