Text Generation
GGUF
Safetensors
English
on-device
code-generation
ui-generation
moldescript
conversational
Instructions to use oyekamal/molde-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use oyekamal/molde-tiny 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 oyekamal/molde-tiny:Q4_K_M # Run inference directly in the terminal: llama cli -hf oyekamal/molde-tiny:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf oyekamal/molde-tiny:Q4_K_M # Run inference directly in the terminal: llama cli -hf oyekamal/molde-tiny:Q4_K_M
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 oyekamal/molde-tiny:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf oyekamal/molde-tiny:Q4_K_M
Use Docker
docker model run hf.co/oyekamal/molde-tiny:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use oyekamal/molde-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "oyekamal/molde-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "oyekamal/molde-tiny", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/oyekamal/molde-tiny:Q4_K_M
- Ollama
How to use oyekamal/molde-tiny with Ollama:
ollama run hf.co/oyekamal/molde-tiny:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use oyekamal/molde-tiny with Docker Model Runner:
docker model run hf.co/oyekamal/molde-tiny:Q4_K_M
- Lemonade
How to use oyekamal/molde-tiny with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull oyekamal/molde-tiny:Q4_K_M
Run and chat with the model
lemonade run user.molde-tiny-Q4_K_M
List all available models
lemonade list
- Atomic Chat
r4-gemma270m: model card
Browse files- r4-gemma270m/README.md +24 -0
r4-gemma270m/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# r4-gemma270m
|
| 2 |
+
|
| 3 |
+
Gemma 3 270M full fine-tune on Molde data v3.1 (20,866 training pairs, language round 14), 4 epochs with early stopping, trained on the team GPU server. Licence: Gemma Terms of Use (https://ai.google.dev/gemma/terms); weights mirrored from google/gemma-3-270m-it.
|
| 4 |
+
|
| 5 |
+
Files: `ep2` (Q4_K_M and Q8_0, the best epoch by validation checker pass, 0.875, and the model in `hf/`), `ep3-approx-step4000` and `ep4-approx-step5000` (epoch ends are approximate: exported from the nearest 250-step checkpoint). The three newer files are not yet tested. Prompt: Gemma chat format; the turn markers are real control tokens in these files.
|
| 6 |
+
|
| 7 |
+
## Comparison (measured)
|
| 8 |
+
|
| 9 |
+
| | r3 Gemma 270M | r4 Gemma 270M epoch 2 | r4 Qwen3.5-0.8B epoch 1 |
|
| 10 |
+
|---|---|---|---|
|
| 11 |
+
| heldout2 (149 requests), checker pass | 90.6% | 89.3% | **94.6%** |
|
| 12 |
+
| heldout2 intent score | 0.726 | 0.724 | **0.760** |
|
| 13 |
+
| 60 short named requests, asks instead of building | 31.7% | 21.7% | **11.7%** |
|
| 14 |
+
| same 60 through the app (no-ask rule), builds that pass | **59** | 53 | 56 |
|
| 15 |
+
| 40 small changes through the app, do what was asked | 14 | 16 | **22** |
|
| 16 |
+
| seconds per create / per small edit (laptop, 4 threads, app core 0.6.0) | 2.3 / 5.6 | 3.2 / 5.0 | 4.3 / 11 |
|
| 17 |
+
| file (Q4_K_M) | 241 MB | 241 MB | 504 MB |
|
| 18 |
+
|
| 19 |
+
Test: MoldeScript heldout2 (149 requests written independently of the training data), the app's own generation loop with the line-stepped decoder (arm E), one laptop CPU with other jobs running (load average 6 to 10), so the speeds are rough. Epochs not listed in the table are exported but **not yet tested**; the Gemma epoch-1 weights (94.6% heldout2, 5% asks) were deleted by mistake and cannot be exported again.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
## Fine-tune from these weights
|
| 23 |
+
|
| 24 |
+
The full-precision weights are in [`hf/`](hf/) (bf16 safetensors, config, tokenizer with the MoldeScript keyword tokens already added). Load with `AutoModelForCausalLM.from_pretrained("oyekamal/molde-tiny", subfolder="r4-gemma270m/hf")` and continue training with `train/train.py` from the Molde repo (https://github.com/Orenda-Project/molde). The GGUF files are quantised exports of the same training run for llama.cpp.
|