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 VALIDATION.json from webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit: direct link, hf CLI and curl.
- Browser
- Download file 7.64 kB
-
https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/resolve/main/VALIDATION.json
- Command line
-
hf download hf://webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/VALIDATION.json
-
curl -L -o VALIDATION.json https://huggingface.co/webbrain-one/WebBrain-LingLoop-8B-A1.3B-MLX-4bit/resolve/main/VALIDATION.json
7.64 kB
| { | |
| "source": { | |
| "repo": "webbrain-one/WebBrain-LingLoop-8B-A1.3B", | |
| "revision": "6cd99926f92814c991585f48254dbd172cd8d162" | |
| }, | |
| "export": { | |
| "weight_shards": 6, | |
| "weight_bytes": 5228955138, | |
| "mlx_version": "0.32.5", | |
| "mlx_lm_version": "0.32.2" | |
| }, | |
| "validation": { | |
| "platform": "Linux x86-64 WSL2, MLX CPU backend", | |
| "reference": "Pinned publisher PyTorch model with CPU replacements for FLA KDA, short convolution and gated RMS normalization; unquantized comparison used FP32 arithmetic on the same tensors. Every post-prefill token was forced from the reference continuation.", | |
| "unquantized_mlx": { | |
| "positions": 16, | |
| "same_top_token": 16, | |
| "minimum_logit_cosine": 0.9999998807907104, | |
| "mean_logit_cosine": 0.9999999925494194, | |
| "maximum_logit_rmse": 2.2957501641940325e-05, | |
| "cases": [ | |
| { | |
| "case": 0, | |
| "prompt_tokens": 14, | |
| "expected_ids": [ | |
| 220, | |
| 18, | |
| 24, | |
| 16 | |
| ], | |
| "actual_top_ids": [ | |
| 220, | |
| 18, | |
| 24, | |
| 16 | |
| ], | |
| "cosine": [ | |
| 1.0, | |
| 1.0000001192092896, | |
| 0.9999999403953552, | |
| 1.0 | |
| ], | |
| "rms_error": [ | |
| 2.1161096810828894e-05, | |
| 1.0927888070000336e-05, | |
| 7.155930688895751e-06, | |
| 7.615397407789715e-06 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 5, | |
| 5, | |
| 5 | |
| ] | |
| }, | |
| { | |
| "case": 1, | |
| "prompt_tokens": 22, | |
| "expected_ids": [ | |
| 220, | |
| 18, | |
| 17, | |
| 11 | |
| ], | |
| "actual_top_ids": [ | |
| 220, | |
| 18, | |
| 17, | |
| 11 | |
| ], | |
| "cosine": [ | |
| 0.9999999403953552, | |
| 1.0, | |
| 0.9999999403953552, | |
| 1.0 | |
| ], | |
| "rms_error": [ | |
| 4.955546955898171e-06, | |
| 6.2159015215002e-06, | |
| 5.088701527711237e-06, | |
| 5.48392608834547e-06 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 5, | |
| 5, | |
| 5 | |
| ] | |
| }, | |
| { | |
| "case": 2, | |
| "prompt_tokens": 9, | |
| "expected_ids": [ | |
| 198, | |
| 198, | |
| 1672, | |
| 449 | |
| ], | |
| "actual_top_ids": [ | |
| 198, | |
| 198, | |
| 1672, | |
| 449 | |
| ], | |
| "cosine": [ | |
| 1.0, | |
| 1.0, | |
| 1.0000001192092896, | |
| 0.9999999403953552 | |
| ], | |
| "rms_error": [ | |
| 5.015015631215647e-06, | |
| 6.694553121633362e-06, | |
| 1.1471723155409563e-05, | |
| 1.1483823982416652e-05 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 5, | |
| 5, | |
| 5 | |
| ] | |
| }, | |
| { | |
| "case": 3, | |
| "prompt_tokens": 114, | |
| "expected_ids": [ | |
| 198, | |
| 198, | |
| 90833, | |
| 11 | |
| ], | |
| "actual_top_ids": [ | |
| 198, | |
| 198, | |
| 90833, | |
| 11 | |
| ], | |
| "cosine": [ | |
| 1.0, | |
| 1.0, | |
| 1.0, | |
| 0.9999998807907104 | |
| ], | |
| "rms_error": [ | |
| 6.127836059022229e-06, | |
| 8.120012353174388e-06, | |
| 2.2957501641940325e-05, | |
| 8.845526281220373e-06 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 5, | |
| 5, | |
| 5 | |
| ] | |
| } | |
| ] | |
| }, | |
| "quantized_mlx": { | |
| "positions": 16, | |
| "same_top_token": 14, | |
| "minimum_logit_cosine": 0.9217146039009094, | |
| "mean_logit_cosine": 0.9786694832146168, | |
| "maximum_logit_rmse": 2.2674782276153564, | |
| "cases": [ | |
| { | |
| "case": 0, | |
| "prompt_tokens": 14, | |
| "expected_ids": [ | |
| 220, | |
| 18, | |
| 24, | |
| 16 | |
| ], | |
| "actual_top_ids": [ | |
| 220, | |
| 18, | |
| 24, | |
| 16 | |
| ], | |
| "cosine": [ | |
| 0.9217146039009094, | |
| 0.9773849248886108, | |
| 0.9926384091377258, | |
| 0.9786057472229004 | |
| ], | |
| "rms_error": [ | |
| 2.2674782276153564, | |
| 0.904895544052124, | |
| 0.5379152297973633, | |
| 0.9907057285308838 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 4, | |
| 4, | |
| 4 | |
| ] | |
| }, | |
| { | |
| "case": 1, | |
| "prompt_tokens": 22, | |
| "expected_ids": [ | |
| 220, | |
| 18, | |
| 17, | |
| 11 | |
| ], | |
| "actual_top_ids": [ | |
| 220, | |
| 18, | |
| 17, | |
| 11 | |
| ], | |
| "cosine": [ | |
| 0.9957178235054016, | |
| 0.9953751564025879, | |
| 0.9959527850151062, | |
| 0.9946458339691162 | |
| ], | |
| "rms_error": [ | |
| 0.4490707516670227, | |
| 0.43584588170051575, | |
| 0.39849311113357544, | |
| 0.5210328102111816 | |
| ], | |
| "top5_overlap": [ | |
| 4, | |
| 4, | |
| 5, | |
| 5 | |
| ] | |
| }, | |
| { | |
| "case": 2, | |
| "prompt_tokens": 9, | |
| "expected_ids": [ | |
| 198, | |
| 198, | |
| 1672, | |
| 449 | |
| ], | |
| "actual_top_ids": [ | |
| 198, | |
| 198, | |
| 90833, | |
| 449 | |
| ], | |
| "cosine": [ | |
| 0.9958437085151672, | |
| 0.9913966655731201, | |
| 0.9586225748062134, | |
| 0.9587564468383789 | |
| ], | |
| "rms_error": [ | |
| 0.4532504677772522, | |
| 0.6133244037628174, | |
| 1.2279552221298218, | |
| 1.3072668313980103 | |
| ], | |
| "top5_overlap": [ | |
| 5, | |
| 4, | |
| 3, | |
| 3 | |
| ] | |
| }, | |
| { | |
| "case": 3, | |
| "prompt_tokens": 114, | |
| "expected_ids": [ | |
| 198, | |
| 198, | |
| 90833, | |
| 11 | |
| ], | |
| "actual_top_ids": [ | |
| 198, | |
| 198, | |
| 678, | |
| 11 | |
| ], | |
| "cosine": [ | |
| 0.9899020791053772, | |
| 0.9773154854774475, | |
| 0.9513697028160095, | |
| 0.9834697842597961 | |
| ], | |
| "rms_error": [ | |
| 0.7517030835151672, | |
| 0.8674057126045227, | |
| 1.270941972732544, | |
| 0.7508618235588074 | |
| ], | |
| "top5_overlap": [ | |
| 4, | |
| 4, | |
| 3, | |
| 4 | |
| ] | |
| } | |
| ] | |
| }, | |
| "openai_api": { | |
| "exit_code": 0, | |
| "context": 32768, | |
| "stdout": "Model: lingloop\nRaw completion: 391 (5 tokens)\nStreamed chat: 'One, two, three, four, five.' (10 deltas, 11 generated tokens)\nTool call: get_temperature({'city': 'Paris'})\n", | |
| "stderr": "" | |
| }, | |
| "default_short_chat": { | |
| "visible_content": true, | |
| "reasoning_only": false | |
| }, | |
| "limits": "The 32768-token server limit was configured for short API requests. Full-length prompting, Apple Metal performance and aggregate quality benchmarks were not measured." | |
| } | |
| } | |