Instructions to use vincespeed/Ling-3.0-tiny-APEX-GGUF 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 vincespeed/Ling-3.0-tiny-APEX-GGUF 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 vincespeed/Ling-3.0-tiny-APEX-GGUF # Run inference directly in the terminal: llama cli -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vincespeed/Ling-3.0-tiny-APEX-GGUF # Run inference directly in the terminal: llama cli -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
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 vincespeed/Ling-3.0-tiny-APEX-GGUF # Run inference directly in the terminal: ./llama-cli -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
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 vincespeed/Ling-3.0-tiny-APEX-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
Use Docker
docker model run hf.co/vincespeed/Ling-3.0-tiny-APEX-GGUF
- LM Studio
- Jan
- vLLM
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vincespeed/Ling-3.0-tiny-APEX-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vincespeed/Ling-3.0-tiny-APEX-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vincespeed/Ling-3.0-tiny-APEX-GGUF
- Ollama
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Ollama:
ollama run hf.co/vincespeed/Ling-3.0-tiny-APEX-GGUF
- Unsloth Studio
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vincespeed/Ling-3.0-tiny-APEX-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for vincespeed/Ling-3.0-tiny-APEX-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for vincespeed/Ling-3.0-tiny-APEX-GGUF to start chatting
- Pi
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
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": "vincespeed/Ling-3.0-tiny-APEX-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Docker Model Runner:
docker model run hf.co/vincespeed/Ling-3.0-tiny-APEX-GGUF
- Lemonade
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vincespeed/Ling-3.0-tiny-APEX-GGUF
Run and chat with the model
lemonade run user.Ling-3.0-tiny-APEX-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
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 vincespeed/Ling-3.0-tiny-APEX-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vincespeed/Ling-3.0-tiny-APEX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vincespeed/Ling-3.0-tiny-APEX-GGUF
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 "vincespeed/Ling-3.0-tiny-APEX-GGUF" \ --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"
| license: mit | |
| base_model: inclusionAI/Ling-3.0-tiny | |
| base_model_relation: quantized | |
| tags: | |
| - gguf | |
| - moe | |
| - bailingmoe3 | |
| pipeline_tag: text-generation | |
| # Ling-3.0 Tiny β Apex Quant GGUF Models | |
| This repository contains 3 quantized GGUF profiles of the **inclusionAI/Ling-3.0-tiny** model, produced using Apex-Quant technology. | |
| ## π¦ Model Profile Summary | |
| | Profile | Size | BPW | Use Case | | |
| |---------|------|-----|----------| | |
| | **i-quality** | 5.4 GB | 5.83 | Highest quality, production environments | | |
| | **i-balanced** | 5.6 GB | 6.02 | Balanced quality and performance | | |
| | **i-compact** | 3.7 GB | 4.03 | Compact deployment, low RAM | | |
| > **BPW** = Bits Per Weight. Higher value = better quality. | |
| ## π File Structure | |
| ``` | |
| models/ | |
| βββ Ling-3.0-tiny-i-quality.gguf # 5.4 GB β Highest quality | |
| βββ Ling-3.0-tiny-i-balanced.gguf # 5.6 GB β Balanced | |
| βββ Ling-3.0-tiny-i-compact.gguf # 3.7 GB β Compact | |
| ``` | |
| ## π Source Model | |
| These models were created based on the **inclusionAI/Ling-3.0-tiny** model from HuggingFace. | |
| - **Model Page:** https://huggingface.co/inclusionAI/Ling-3.0-tiny | |
| - **Architecture:** BailingMoeV3ForCausalLM (Mixture-of-Experts) | |
| - **Parameter Count:** 128Γ1.0B (128 experts, each with 1B parameters) | |
| - **Context Length:** 131,072 tokens | |
| - **Vocabulary:** 157,184 tokens | |
| - **License:** MIT | |
| ## π οΈ Technology | |
| These quantized models were produced using **Apex-Quant** technology. | |
| - **Apex-Quant:** MoE-aware mixed-precision quantization | |
| - **Infrastructure:** llama.cpp (`llama-quantize`) | |
| - **Quantize Script:** `apex-quant/scripts/quantize.sh` | |
| ## π Acknowledgments | |
| - **[localai-org/apex-quant](https://github.com/localai-org/apex-quant)** β Apex-Quant MoE-aware mixed-precision quantization framework | |
| - **[ggerganov/llama.cpp](https://github.com/ggerganov/llama.cpp)** β GGUF format and quantization engine | |
| - **[inclusionAI](https://huggingface.co/inclusionAI)** β Original Ling-3.0-tiny model creators | |
| ## π Technical Details | |
| ### Architecture Information | |
| - **Architecture:** `bailingmoe3` | |
| - **Block Count:** 24 layers | |
| - **Expert Count:** 128 experts | |
| - **Expert Used Count:** 8 experts/token | |
| - **Expert Group Count:** 8 | |
| - **Expert Group Used Count:** 4 | |
| - **Expert Gating Function:** Top-K (k=8) | |
| - **Hidden Size:** 1,536 | |
| - **Feed Forward Size:** 4,608 | |
| - **Attention Heads:** 16 | |
| - **Attention Head Count KV:** [0, 0, 0, 1, ...] (grouped query attention) | |
| - **Rope Frequency Base:** 6,000,000 | |
| - **Layer Norm Epsilon:** 1e-6 | |
| ### Quantize Profile Details | |
| #### i-quality (Q6_K/Q5_K/IQ4_XS) | |
| - **Expert FFN:** Q6_K / Q5_K / IQ4_XS (mixed) | |
| - **Shared FFN:** Q8_0 | |
| - **Attention:** Q6_K | |
| - **BPW:** 5.83 | |
| - **File Size:** 5.4 GB | |
| #### i-balanced (Q6_K/Q5_K) | |
| - **Expert FFN:** Q6_K / Q5_K (mixed) | |
| - **Shared FFN:** Q8_0 | |
| - **Attention:** Q6_K | |
| - **BPW:** 6.02 | |
| - **File Size:** 5.6 GB | |
| #### i-compact (Q4_K/Q3_K) | |
| - **Expert FFN:** Q4_K / Q3_K (mixed) | |
| - **Shared FFN:** Q6_K | |
| - **Attention:** Q4_K | |
| - **BPW:** 4.03 | |
| - **File Size:** 3.7 GB | |
| ## π» Usage | |
| ### With llama.cpp | |
| ```bash | |
| # Run with i-quality profile | |
| ./main -m models/Ling-3.0-tiny-i-quality.gguf -n 128 -p "Hello, how are you?" | |
| # Run with i-compact profile | |
| ./main -m models/Ling-3.0-tiny-i-compact.gguf -n 128 -p "Hello, how are you?" | |
| ``` | |
| ### With Ollama | |
| ```bash | |
| # Create Dockerfile or Ollamafile | |
| FROM llama.cpp | |
| COPY models/Ling-3.0-tiny-i-quality.gguf /model.gguf | |
| ``` | |
| ### With Python (llama-cpp-python) | |
| ```python | |
| from llama_cpp import Llama | |
| llm = Llama( | |
| model_path="models/Ling-3.0-tiny-i-quality.gguf", | |
| n_ctx=4096, | |
| n_threads=8 | |
| ) | |
| output = llm( | |
| "Hello, how are you?", | |
| max_tokens=128 | |
| ) | |
| print(output["choices"][0]["text"]) | |
| ``` | |
| ## π Model Comparison | |
| | Criterion | i-quality | i-balanced | i-compact | | |
| |-----------|-----------|------------|-----------| | |
| | **Quality** | βββββ | ββββ | βββ | | |
| | **Speed** | βββ | ββββ | βββββ | | |
| | **RAM** | High | Medium | Low | | |
| | **Size** | 5.4 GB | 5.6 GB | 3.7 GB | | |
| | **BPW** | 5.83 | 6.02 | 4.03 | | |
| ## π Notes | |
| - All models are in **GGUF v3** format. | |
| - The **BailingMoeV3** architecture uses Mixture-of-Experts (MoE) technology. | |
| - The model uses **grouped query attention (GQA)** and **rope** positional embeddings. | |
| - The `i-mini` profile cannot be quantized without `imatrix`. ~100-200 inference samples must be run on the model to generate the importance matrix. | |
| ## π License | |
| The original model is distributed under the **MIT** license. The quantized models are shared under the same license. | |
| ## π Related Links | |
| - **Original Model:** https://huggingface.co/inclusionAI/Ling-3.0-tiny | |
| - **Apex-Quant:** https://github.com/localai-org/apex-quant | |
| - **llama.cpp:** https://github.com/ggerganov/llama.cpp | |
| - **GGUF Format:** https://github.com/ggerganov/ggml/blob/master/docs/gguf.md | |
| --- | |
| **Note:** These models are quantized for local use. Check the original model's license for commercial use. |