Text Generation
Transformers
GGUF
English
causal-lm
fine-tuned
code
python
glsl
javascript
sql
bash
reasoning
vision
experimental
conversational
Instructions to use louhless/Ycoder-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use louhless/Ycoder-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="louhless/Ycoder-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("louhless/Ycoder-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use louhless/Ycoder-small with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf louhless/Ycoder-small:F16 # Run inference directly in the terminal: llama cli -hf louhless/Ycoder-small:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf louhless/Ycoder-small:F16 # Run inference directly in the terminal: llama cli -hf louhless/Ycoder-small:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf louhless/Ycoder-small:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf louhless/Ycoder-small:F16
Use Docker
docker model run hf.co/louhless/Ycoder-small:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use louhless/Ycoder-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "louhless/Ycoder-small" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "louhless/Ycoder-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/louhless/Ycoder-small:F16
- SGLang
How to use louhless/Ycoder-small 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 "louhless/Ycoder-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "louhless/Ycoder-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "louhless/Ycoder-small" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "louhless/Ycoder-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use louhless/Ycoder-small with Ollama:
ollama run hf.co/louhless/Ycoder-small:F16
- Unsloth Desktop
- Docker Model Runner
How to use louhless/Ycoder-small with Docker Model Runner:
docker model run hf.co/louhless/Ycoder-small:F16
- Lemonade
How to use louhless/Ycoder-small with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull louhless/Ycoder-small:F16
Run and chat with the model
lemonade run user.Ycoder-small-F16
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -5,7 +5,6 @@ tags:
|
|
| 5 |
- text-generation
|
| 6 |
- causal-lm
|
| 7 |
- fine-tuned
|
| 8 |
-
- gguf
|
| 9 |
- tiny-model
|
| 10 |
- code
|
| 11 |
- math
|
|
@@ -24,61 +23,202 @@ library_name: transformers
|
|
| 24 |
- short code generation
|
| 25 |
- simple math answers
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
## Model
|
| 30 |
|
| 31 |
-
|
| 32 |
-
- **Base model:** `distilgpt2`
|
| 33 |
-
- **Model type:** fine-tuned causal language model
|
| 34 |
-
- **Language:** English
|
| 35 |
-
- **Current export:** GGUF available
|
| 36 |
-
- **Status:** experimental
|
| 37 |
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
|
|
|
| 43 |
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
-
|
| 47 |
|
|
|
|
| 48 |
- talking
|
| 49 |
- coding
|
| 50 |
- math
|
| 51 |
|
| 52 |
-
|
| 53 |
-
- local experimentation
|
| 54 |
-
- fast training on a Mac
|
| 55 |
-
- tiny datasets
|
| 56 |
-
- simple export workflows such as GGUF
|
| 57 |
|
| 58 |
## Training Data
|
| 59 |
|
| 60 |
-
The model was fine-tuned on a small custom English instruction dataset with
|
| 61 |
-
|
| 62 |
- `router_text`
|
| 63 |
- `code`
|
| 64 |
- `math`
|
| 65 |
|
| 66 |
Example task types include:
|
| 67 |
-
- greetings and short replies
|
| 68 |
-
-
|
| 69 |
-
-
|
| 70 |
-
- arithmetic and
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
## Training Setup
|
| 75 |
|
| 76 |
Training approach:
|
| 77 |
- supervised fine-tuning
|
| 78 |
- causal language modeling objective
|
| 79 |
-
- small instruction-style
|
| 80 |
- local Mac training workflow
|
| 81 |
|
| 82 |
-
Observed training
|
| 83 |
-
-
|
| 84 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
- text-generation
|
| 6 |
- causal-lm
|
| 7 |
- fine-tuned
|
|
|
|
| 8 |
- tiny-model
|
| 9 |
- code
|
| 10 |
- math
|
|
|
|
| 23 |
- short code generation
|
| 24 |
- simple math answers
|
| 25 |
|
| 26 |
+
It is designed as a lightweight local experiment for small-domain prompting, fast iteration, and tiny-model workflows.
|
| 27 |
|
| 28 |
+
## Model Type
|
| 29 |
|
| 30 |
+
`qxml-small` is a fine-tuned causal language model.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
Important:
|
| 33 |
+
- this model is not trained from scratch
|
| 34 |
+
- it is fine-tuned from the pretrained base model `distilgpt2`
|
| 35 |
+
- it is intended as a small experimental demo, not a production assistant
|
| 36 |
|
| 37 |
+
## Base Model
|
| 38 |
|
| 39 |
+
Base model:
|
| 40 |
+
- `distilgpt2`
|
| 41 |
|
| 42 |
+
About the base:
|
| 43 |
+
- pretrained English language model
|
| 44 |
+
- approximately 82M parameters
|
| 45 |
+
- much smaller than most modern instruction models
|
| 46 |
|
| 47 |
+
## Goal
|
| 48 |
|
| 49 |
+
The goal of `qxml-small` is to explore how small a model can be while still showing useful behavior in:
|
| 50 |
- talking
|
| 51 |
- coding
|
| 52 |
- math
|
| 53 |
|
| 54 |
+
This project focuses on narrow behavior, fast training, and local experimentation on a Mac.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
## Training Data
|
| 57 |
|
| 58 |
+
The model was fine-tuned on a small custom English instruction dataset with examples from three categories:
|
|
|
|
| 59 |
- `router_text`
|
| 60 |
- `code`
|
| 61 |
- `math`
|
| 62 |
|
| 63 |
Example task types include:
|
| 64 |
+
- greetings and short text replies
|
| 65 |
+
- rewriting simple text
|
| 66 |
+
- small Python / JavaScript / SQL / Bash snippets
|
| 67 |
+
- arithmetic and simple equations
|
| 68 |
|
| 69 |
+
This is a very small dataset, so the model is strongly biased toward short patterns and narrow examples.
|
| 70 |
|
| 71 |
## Training Setup
|
| 72 |
|
| 73 |
Training approach:
|
| 74 |
- supervised fine-tuning
|
| 75 |
- causal language modeling objective
|
| 76 |
+
- small custom instruction-style dataset
|
| 77 |
- local Mac training workflow
|
| 78 |
|
| 79 |
+
Observed local training time in this project:
|
| 80 |
+
- 1 epoch: about 4 minutes 14 seconds
|
| 81 |
+
- 2 epochs: about 8 to 9 minutes
|
| 82 |
+
|
| 83 |
+
Observed local memory during one measured run:
|
| 84 |
+
- peak memory footprint: about 3.6 GB
|
| 85 |
+
|
| 86 |
+
## What It Can Do
|
| 87 |
+
|
| 88 |
+
`qxml-small` works best on short prompts such as:
|
| 89 |
+
- “hello nice to meet you”
|
| 90 |
+
- “write python code to reverse a string”
|
| 91 |
+
- “what is 12 * 17?”
|
| 92 |
+
|
| 93 |
+
Example outputs from the current fine-tuned version:
|
| 94 |
+
|
| 95 |
+
### Talking
|
| 96 |
+
|
| 97 |
+
Prompt:
|
| 98 |
+
```text
|
| 99 |
+
hello nice to meet you
|
| 100 |
+
Output:
|
| 101 |
+
|
| 102 |
+
text
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
Hello, nice to meet you.
|
| 106 |
+
Coding
|
| 107 |
+
Prompt:
|
| 108 |
+
|
| 109 |
+
text
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
write python code to reverse a string
|
| 113 |
+
Output:
|
| 114 |
+
|
| 115 |
+
python
|
| 116 |
+
|
| 117 |
+
def reverse_string(text):
|
| 118 |
+
return text[::-1]
|
| 119 |
+
Math
|
| 120 |
+
Prompt:
|
| 121 |
+
|
| 122 |
+
text
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
what is 12 * 17?
|
| 126 |
+
Output:
|
| 127 |
+
|
| 128 |
+
text
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
12 * 17 = 204
|
| 132 |
+
Comparison
|
| 133 |
+
This model is much smaller and weaker than modern compact open models.
|
| 134 |
+
|
| 135 |
+
Compared with Qwen2.5-Coder-0.5B
|
| 136 |
+
Qwen2.5-Coder-0.5B has about 0.49B parameters
|
| 137 |
+
it has a 32,768 token context window
|
| 138 |
+
it was pretrained on very large-scale code and text data
|
| 139 |
+
it should clearly outperform qxml-small, especially on coding and robustness
|
| 140 |
+
Compared with google/gemma-3-270m
|
| 141 |
+
gemma-3-270m has 270M parameters
|
| 142 |
+
it supports a much larger context window than this project
|
| 143 |
+
it is a much more modern pretrained model family
|
| 144 |
+
it should clearly outperform qxml-small on general language quality and robustness
|
| 145 |
+
Positioning
|
| 146 |
+
qxml-small is best understood as:
|
| 147 |
+
|
| 148 |
+
a tiny fine-tune experiment
|
| 149 |
+
a local training demo
|
| 150 |
+
a narrow toy assistant for text, code, and math
|
| 151 |
+
a stepping stone toward modular or GGUF-friendly workflows
|
| 152 |
+
It is not intended to compete with stronger small models like:
|
| 153 |
+
|
| 154 |
+
Qwen2.5-Coder-0.5B
|
| 155 |
+
google/gemma-3-270m
|
| 156 |
+
Limitations
|
| 157 |
+
very small training dataset
|
| 158 |
+
narrow task coverage
|
| 159 |
+
weak generalization outside seen prompt styles
|
| 160 |
+
repetition and overfitting can appear
|
| 161 |
+
not suitable for serious coding work
|
| 162 |
+
not suitable for complex reasoning
|
| 163 |
+
not suitable for production deployment without much more data and tuning
|
| 164 |
+
Intended Use
|
| 165 |
+
Good use cases:
|
| 166 |
+
|
| 167 |
+
tiny-model experimentation
|
| 168 |
+
fine-tuning demos
|
| 169 |
+
local Mac-based LLM workflows
|
| 170 |
+
educational small-model projects
|
| 171 |
+
narrow prompt-response experiments
|
| 172 |
+
Not recommended for:
|
| 173 |
+
|
| 174 |
+
production assistants
|
| 175 |
+
factual QA
|
| 176 |
+
long-context reasoning
|
| 177 |
+
complex code generation
|
| 178 |
+
benchmark-driven evaluation against modern instruction models
|
| 179 |
+
Status
|
| 180 |
+
Experimental.
|
| 181 |
+
|
| 182 |
+
References
|
| 183 |
+
Base model: distilgpt2
|
| 184 |
+
|
| 185 |
+
https://huggingface.co/distilgpt2
|
| 186 |
+
Comparison reference: Qwen/Qwen2.5-Coder-0.5B
|
| 187 |
+
|
| 188 |
+
https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B
|
| 189 |
+
Comparison reference: google/gemma-3-270m
|
| 190 |
+
|
| 191 |
+
https://huggingface.co/google/gemma-3-270m
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
7:52 PM
|
| 199 |
+
nun exportiere die gguf file
|
| 200 |
+
7:52 PM
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
Worked for 48s
|
| 204 |
+
Die GGUF-Datei ist exportiert:
|
| 205 |
+
|
| 206 |
+
artifacts/gguf/qxml-small-f16.gguf (line 1)
|
| 207 |
+
|
| 208 |
+
Sie ist etwa 160 MB groß. Der Export lief über dein lokales llama.cpp mit GPT-2-Support, also passend zu deinem auf distilgpt2 basierenden qxml-small.
|
| 209 |
+
|
| 210 |
+
SHA-256:
|
| 211 |
+
|
| 212 |
+
text
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
4974223f80ba0299f3dd73efdf5463c3a3b902bb6137921ee8d5858c6a314a08
|
| 216 |
+
Wenn du willst, mache ich dir als Nächstes noch:
|
| 217 |
+
|
| 218 |
+
eine quantisierte GGUF wie Q8_0 oder kleiner
|
| 219 |
+
oder direkt die HF-Upload-Struktur für das GGUF-Repo.
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
7:53 PM
|