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
|
@@ -1,3 +1,84 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
tags:
|
| 5 |
+
- text-generation
|
| 6 |
+
- causal-lm
|
| 7 |
+
- fine-tuned
|
| 8 |
+
- gguf
|
| 9 |
+
- tiny-model
|
| 10 |
+
- code
|
| 11 |
+
- math
|
| 12 |
+
- experimental
|
| 13 |
license: apache-2.0
|
| 14 |
+
base_model: distilgpt2
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
library_name: transformers
|
| 17 |
---
|
| 18 |
+
|
| 19 |
+
# qxml-small
|
| 20 |
+
|
| 21 |
+
`qxml-small` is a tiny experimental language model fine-tuned for three narrow behaviors:
|
| 22 |
+
|
| 23 |
+
- casual text replies
|
| 24 |
+
- short code generation
|
| 25 |
+
- simple math answers
|
| 26 |
+
|
| 27 |
+
This model is built as a lightweight local experiment for small-domain prompting, fast iteration, and tiny-model workflows.
|
| 28 |
+
|
| 29 |
+
## Model Details
|
| 30 |
+
|
| 31 |
+
- **Model name:** `qxml-small`
|
| 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 |
+
## Important Note
|
| 39 |
+
|
| 40 |
+
`qxml-small` is **not trained from scratch**.
|
| 41 |
+
|
| 42 |
+
It is a **fine-tuned version of `distilgpt2`**, adapted on a very small custom instruction dataset. The model is intended as a compact demo and research experiment, not as a production-grade general assistant.
|
| 43 |
+
|
| 44 |
+
## Training Goal
|
| 45 |
+
|
| 46 |
+
The goal of this project is to test how small a fine-tuned model can be while still showing useful behavior in:
|
| 47 |
+
|
| 48 |
+
- talking
|
| 49 |
+
- coding
|
| 50 |
+
- math
|
| 51 |
+
|
| 52 |
+
The project is optimized for:
|
| 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 three narrow categories:
|
| 61 |
+
|
| 62 |
+
- `router_text`
|
| 63 |
+
- `code`
|
| 64 |
+
- `math`
|
| 65 |
+
|
| 66 |
+
Example task types include:
|
| 67 |
+
- greetings and short replies
|
| 68 |
+
- simple rewriting tasks
|
| 69 |
+
- short Python / JavaScript / SQL / Bash prompts
|
| 70 |
+
- arithmetic and basic equation solving
|
| 71 |
+
|
| 72 |
+
Because the dataset is very small, the model is strongly biased toward short and simple patterns.
|
| 73 |
+
|
| 74 |
+
## Training Setup
|
| 75 |
+
|
| 76 |
+
Training approach:
|
| 77 |
+
- supervised fine-tuning
|
| 78 |
+
- causal language modeling objective
|
| 79 |
+
- small instruction-style Q&A dataset
|
| 80 |
+
- local Mac training workflow
|
| 81 |
+
|
| 82 |
+
Observed training characteristics in this project:
|
| 83 |
+
- **1 epoch:** about **4 minutes 14 seconds**
|
| 84 |
+
- **2 epochs:** about **8 to
|