Text Generation
MLX
Safetensors
bailing_hybrid
mlx-lm
4-bit precision
mixture-of-experts
looped-transformer
conversational
Run this model with HF Jobs
Run webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit"
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 webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit"
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 "webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download README.md from webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit: direct link, hf CLI and curl.
- Browser
- Download file 3.39 kB
-
https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/resolve/main/README.md
- Command line
-
hf download hf://webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/README.md
-
curl -L -o README.md https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/resolve/main/README.md
3.39 kB
| base_model: webbrain-one/WebBrain-LingLoop-8B-A1.3B | |
| library_name: mlx | |
| pipeline_tag: text-generation | |
| tags: | |
| - mlx | |
| - mlx-lm | |
| - 4-bit | |
| - mixture-of-experts | |
| - looped-transformer | |
| # WebBrain LingLoop 8B A1.3B for MLX (4-bit) | |
| This is the MLX conversion of [WebBrain-LingLoop-8B-A1.3B](https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B/tree/6cd99926f92814c991585f48254dbd172cd8d162). The shared physical decoder layers, the learned cross-pass adapter, and the separate state for each loop pass are preserved. | |
| Eligible matrices use 4-bit MLX affine quantization with group size 64. The embedding and output head stay in their source precision, and the loop adapter stays FP32. This conversion starts from the publisher's original weights, not a previously quantized GGUF. | |
| ## Architecture | |
|  | |
| Ling-3.0-tiny runs each of its 24 layers once. LingLoop reuses the weights of core layers 4–19 for a second pass, yielding 40 layer executions per token. Both passes start at the same prelude output. The 12.63M-parameter adapter reads first-pass activations and gates the inputs to attention and MoE in the second pass. Each pass maintains its own KDA recurrent state and MLA KV cache. | |
| ## Run | |
| On Apple Silicon, LingLoop Engine includes the loop implementation locally and loads the weights without importing Python files from the Hub. See [LingLoop Engine](https://github.com/esokullu/lingloop-engine). | |
| The standalone MLX-LM command below opts into the reviewed `lingloop_mlx_model.py` included in this repository. MLX-LM 0.32.2 is the supported version for this export. | |
| ```sh | |
| python -m pip install 'mlx==0.32.5' 'mlx-lm==0.32.2' | |
| mlx_lm.generate --model webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit \ | |
| --trust-remote-code --chat-template-config '{"enable_thinking": false}' \ | |
| --prompt 'Answer with just the number: what is 17 times 23?' --max-tokens 64 | |
| ``` | |
| ## Reproduce | |
| From the LingLoop Engine checkout, install the pinned dependencies above and run: | |
| ```sh | |
| python scripts/convert_mlx.py --source ./lingloop-bf16 --output ./lingloop-mlx-4bit | |
| ``` | |
| The converter checks upstream file digests before conversion. `SHA256SUMS` covers the packaged configuration, code, tokenizer and weight shards. | |
| ## Validation | |
| On the MLX CPU runtime, the unquantized port matched the published PyTorch reference's top token at all 16 sampled positions across four prompts. The 4-bit export matched 14 of 16. In LingLoop Engine it passed model listing, arithmetic, streamed chat, and a structured tool call on a server configured for 32,768 tokens. These were short requests. See [VALIDATION.json](VALIDATION.json) for the methodology and results. Apple Metal performance has not been measured. | |
| ## Attribution | |
| The looped checkpoint and adapter are from [WebBrain](https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B). The base weights come from [inclusionAI/Ling-3.0-tiny](https://huggingface.co/inclusionAI/Ling-3.0-tiny), whose MIT notice is included as `LICENSE.inclusionAI`. The runtime extends [MLX-LM](https://github.com/ml-explore/mlx-lm), whose notice is included as `LICENSE.mlx-lm`. The base model's license notice concerns the upstream base material. | |