Instructions to use baiango/ling30-m4r16 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 baiango/ling30-m4r16 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 baiango/ling30-m4r16:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf baiango/ling30-m4r16:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf baiango/ling30-m4r16:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf baiango/ling30-m4r16:UD-Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf baiango/ling30-m4r16:UD-Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf baiango/ling30-m4r16:UD-Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf baiango/ling30-m4r16:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf baiango/ling30-m4r16:UD-Q4_K_M
Use Docker
docker model run hf.co/baiango/ling30-m4r16:UD-Q4_K_M
- LM Studio
- Jan
- vLLM
How to use baiango/ling30-m4r16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "baiango/ling30-m4r16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "baiango/ling30-m4r16", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/baiango/ling30-m4r16:UD-Q4_K_M
- Ollama
How to use baiango/ling30-m4r16 with Ollama:
ollama run hf.co/baiango/ling30-m4r16:UD-Q4_K_M
- Unsloth Desktop
- Pi
How to use baiango/ling30-m4r16 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baiango/ling30-m4r16:UD-Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "baiango/ling30-m4r16:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use baiango/ling30-m4r16 with Docker Model Runner:
docker model run hf.co/baiango/ling30-m4r16:UD-Q4_K_M
- Lemonade
How to use baiango/ling30-m4r16 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull baiango/ling30-m4r16:UD-Q4_K_M
Run and chat with the model
lemonade run user.ling30-m4r16-UD-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use baiango/ling30-m4r16 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baiango/ling30-m4r16:UD-Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default baiango/ling30-m4r16:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use baiango/ling30-m4r16 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf baiango/ling30-m4r16:UD-Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "baiango/ling30-m4r16:UD-Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
ling30-m4-r16e4 — UD-Q4_K_M GGUF
Quantized build of Ling-3.0-tiny (7.9B-param MoE, 128 routed experts, hybrid linear+full attention, bailing_hybrid — runs on llama.cpp and LM Studio) fine-tuned for short-form literary realist fiction: character-driven prose vignettes in the vein of mid-century American short stories.
- File:
ling30-m4r16-UD-Q4_K_M.gguf— 5.0 GB, unsloth dynamic UD-Q4_K_M, md58afb7f1811d1555019ea6540e3f17867(renamed fromling30-m4r16-ud-q4km.gguf2026-09-08 so HF parses the quant variant; content unchanged) - Source: merged from the LoRA adapter
ling30-m4-r16e4(r16, checkpoint 186 = end of epoch 3) - The LoRA repo has the full training write-up (data provenance, recipe, checkpoint selection)
Quality
Selected by a paired generation battery (uncanny-tic census + zlib repetition + loop scan over 24 fixed prompts) rather than eval loss. This quant lands at the trained register: sampled census 1.62 tics/1kw (human reference corpus: 1.41; pre-scrub models: 3.2–7.9), zlib 0.499, zero loops. A q8_0 build scored worse (3.06) at 1.7× the size — re-injection of quant noise is refuted; q4 is the ship artifact.
Serving notes (important)
- Greedy decoding degenerates into loops on this model without penalty samplers — use temperature ≥ 0.8 for generation; treat greedy as a register-instrument, not a serving mode.
- LM Studio's bare-request sampler stack inflates the uncanny register ~2.3× (census 3.70 vs 1.62 on raw llama.cpp, same file and seeds). Pin samplers explicitly per request:
top_k: 40, repeat_penalty: 1.0, presence_penalty: 0, frequency_penalty: 0alongsidetemperature: 1.0, min_p: 0.1. (dry_*/xtc_*request fields are silently ignored by current LM Studio builds;top_kand the penalties are honored.) - EOS token id is 156895 (Ling tokenizer); completions end on EOS with no stop sequences needed.
Usage
llama-server -m ling30-m4r16-UD-Q4_K_M.gguf -c 8192 --port 1234
curl http://localhost:1234/v1/completions -H 'Content-Type: application/json' -d '{
"prompt": "The barbershop had two chairs but only ever ran one,",
"max_tokens": 280, "temperature": 1.0, "min_p": 0.1, "top_k": 40,
"repeat_penalty": 1.0, "presence_penalty": 0, "frequency_penalty": 0, "seed": 7
}'
Provenance
The training corpus is fully synthetic (~500 genre vignettes, not distributed): prose distilled from frontier teacher models, machine-adjudicated, then scrubbed for surreal-uncanny stylistic tics before training. No books, no scraped fiction.
- Downloads last month
- -
4-bit
Model tree for baiango/ling30-m4r16
Base model
inclusionAI/Ling-3.0-tiny