Run this model with HF Jobs
Run mchen04/Ripple-65B-Preview-4bit-MLX 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/mchen04/Ripple-65B-Preview-4bit-MLX. 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/mchen04/Ripple-65B-Preview-4bit-MLX 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/mchen04/Ripple-65B-Preview-4bit-MLX. 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 mchen04/Ripple-65B-Preview-4bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mchen04/Ripple-65B-Preview-4bit-MLX 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("mchen04/Ripple-65B-Preview-4bit-MLX") 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 mchen04/Ripple-65B-Preview-4bit-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mchen04/Ripple-65B-Preview-4bit-MLX"
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": "mchen04/Ripple-65B-Preview-4bit-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use mchen04/Ripple-65B-Preview-4bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "mchen04/Ripple-65B-Preview-4bit-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "mchen04/Ripple-65B-Preview-4bit-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mchen04/Ripple-65B-Preview-4bit-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use mchen04/Ripple-65B-Preview-4bit-MLX 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 "mchen04/Ripple-65B-Preview-4bit-MLX"
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 mchen04/Ripple-65B-Preview-4bit-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mchen04/Ripple-65B-Preview-4bit-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mchen04/Ripple-65B-Preview-4bit-MLX"
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 "mchen04/Ripple-65B-Preview-4bit-MLX" \ --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"
Ripple-65B Preview ยท 4-bit ยท MLX
Decode is 0.057 tokens per second with the required 3 GiB resident budget. Prefill is 13.2 tokens per second in the five measured 512-token runs. The resident-3 8192-token attempt completes two runs, then reaches the guard on the third. On a 24 GiB Mac shared with other memory-heavy work, long prompts can reach the memory guard. The guard stops the run instead of swapping. Close other heavy apps for long contexts. Allow many minutes for a short answer on a 24 GiB Mac.
Ricursive Intelligence built Ripple-65B-Preview. This repository provides its quantized weights and an MLX runtime for Apple Silicon. The complete weights occupy 36,442,939,738 bytes, about 33.94 GiB. They do not fit fully in a 24 GiB Mac. The runtime keeps 2.626 GiB of weights in memory under the three GiB budget. It streams 75 layers. The small quality test shows measurable loss against an eight-bit reference. This build suits experiments that accept slow generation.
Lineage and license
The source is ricursiveAI/Ripple-65B-Preview at da94cc0.
The full source revision is da94cc013a8fda04a502f0a185083c7099ea06c1.
The approved runtime revision is 0b6dd2ea385542031e81d56663a61a6aa8edce79.
upstream/ retains the original architecture source and its Apache-2.0 license.
Michael Chen supplies the conversion tools and MLX port.
The araysuter adapter informs MLX cache integration.
This build uses no third-party converted weights.
LICENSE and NOTICE accompany the weights and code under Apache-2.0. The model retains the original behavior. No training, pruning or abliteration occurs. WikiText passages derive from Wikipedia under CC BY-SA 3.0 and GFDL. See the WikiText dataset for attribution and terms.
Use it
Requires Apple Silicon, Python 3.12, uv, and at least 55 GiB of free disk before download.
Keep six GiB of system memory available for other work.
run.py defaults to resident 7.
The --resident-gib 3 flag is required for this operating point.
Review the supplied Python files before running this custom runtime.
Use a new empty directory.
Set RIPPLE_REVISION to the full commit from this repository's Files and versions page.
The download stays pinned to that revision.
uv tool run --from huggingface-hub==2.4.0 hf download mchen04/Ripple-65B-Preview-4bit-MLX --revision "$RIPPLE_REVISION" --local-dir ripple-mlx
cd ripple-mlx
uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python -r requirements.txt
The three commands below cover generation, reasoning and a native tool call. They use greedy decoding and the unchanged original chat template. Each command loads the weights again.
.venv/bin/python run.py --model . --resident-gib 3 --prompt 'What is 17 multiplied by 19? Give only the number.' --max-tokens 192 --output smoke-generation.json
.venv/bin/python run.py --model . --resident-gib 3 --prompt 'All ravens are birds. No birds are mammals. Can a raven be a mammal? Answer yes or no.' --max-tokens 192 --output smoke-reasoning.json
.venv/bin/python run.py --model . --resident-gib 3 --prompt 'Use the weather tool to get the weather in Seattle.' --tools-json examples/weather-tools.json --max-tokens 192 --output smoke-tool.json
The first command produces 323 with a normal stop in the preserved native test.
The reasoning answer ends with No. after a closed <think> block.
The tool answer requests weather with {"city":"Seattle"}.
The parser records tool calls. It does not execute them or fetch weather.
The JSON outputs retain text, token IDs, parsed fields, timings and stop reasons.
A token-limit stop is an incomplete result.
requirements.txt pins MLX 0.32.4, MLX-LM 0.32.2, Transformers 5.22.2, Hugging Face Hub 2.4.0,
Safetensors 0.8.0, NumPy 2.5.4 and psutil 7.2.2.
The release process verifies a fresh anonymous download at its exact published commit.
The external publication report records that revision, installation output and full smoke logs.
Quantization and runtime
Every quantized matrix uses MLX affine four-bit groups of 64.
Scales and biases use FP16. Original norms and value-residual values retain BF16 storage.
Activations use FP16. Conversion reads the pinned original BF16 shards directly.
It does not requantize the eight-bit reference.
provenance.json and weights-affine4.json record every released shard's SHA-256 and size.
The index covers all 64,782,689,360 original parameters.
The port follows upstream PeriNorm, embedding scaling, value residual, clipped SwiGLU and gated attention.
It includes Q/K norms, sliding RoPE attention and global NoPE attention.
Real source layers 0 and 14 pass float32 parity checks against the upstream implementation.
Small full-model tests cover logits, cached decode and chunked prefill.
These checks do not establish full-model BF16 parity.
The original tokenizer and chat template remain unchanged.
Tokenizer class metadata uses PreTrainedTokenizerFast. All six tokenizer probes pass.
Prefill processes 128-token chunks layer by layer.
Decode streams nonresident layers for each token.
The released config enables next-layer read advice through streaming_prefetch.
A paired earlier experiment supports that choice. Its receipts remain separate from the resident-3 measurements.
The runtime limits MLX memory to eleven GiB and requests eleven GiB of wired memory.
It does not change system limits.
Its guards refuse work that crosses the six GiB reserve.
Quality and candidate selection
The reference uses eight-bit affine weights, not BF16. The frozen held-out test scores 1,020 next-token positions from four WikiText-2 raw test passages. KL uses the reference distribution first. Saved reference logits use FP16. Nine scoring cases include five small known-answer checks. These results do not measure the eight-bit reference's loss against BF16.
| Candidate | Held-out perplexity | KL, nats | Top-token agreement | Decision |
|---|---|---|---|---|
| reference8 | 21.78 | 0 | 100% | Reference |
| affine4 | 23.89 | 0.1468 | 85.00% | Selected |
| mixed23 | 26.64 | 0.3295 | 76.37% | Rejected |
| mlp64, 1-bit MLP | 40035.33 | 8.3498 | 2.16% | Rejected |
| attention3, 1-bit MLP | 5631.92 | 5.9245 | 17.45% | Rejected |
The quality bar requires KL at most 0.15 nats and top-token agreement at least 85%.
affine4 narrowly meets both limits.
mixed23 uses two-bit middle MLP up projections and three-bit down projections, with four-bit weights elsewhere.
It misses both quality limits and gives the wrong arithmetic answer, 16.
The two one-bit MLP candidates fail badly and receive no final speed claim.
Their recipes, hashes and quality results remain in receipts/rejected-candidates.json.
The supervisor sets the shared-format rule after seeing the affine4 arithmetic answer.
This is a result-informed eligibility decision.
The native bar requires every task that reference8 passes, with a normal stop in every candidate task.
Affine4 and reference8 both give the correct value 14 in a sentence instead of only the number.
Only this shared format failure counts as model behavior.
The strict scorer still marks it as failed.
The exception requires printable ASCII and an exact unsigned numeric token with limited punctuation.
It rejects wrong values and ambiguous signs, grouping or qualifiers.
receipts/selection.json records the complete rule and its timing.
The fastest eligible candidate wins by median decode speed.
Preserved native tasks and transcripts
These historical five-task results use greedy decoding, at most 192 output tokens and a five GiB resident budget. Affine4 passes four strict checks and fails the arithmetic format check. All five outputs stop normally. Only failed candidate tasks need reference controls. Unrun reference tasks remain unmeasured. The preserved controls also use five GiB. Historical seven GiB receipts remain separate.
| Task | Strict result | Finish reason |
|---|---|---|
| greeting | Pass | stop |
| math | Pass | stop |
| logic | Pass | stop |
| arithmetic | Format failure | stop |
| tool | Pass | stop |
greeting
Prompt: Say hello in one short sentence.
Hello, I am Ripple, an AI model developed by Ricursive Intelligence.
math
Prompt: What is 17 multiplied by 19? Give only the number.
323
logic
Prompt: All ravens are birds. No birds are mammals. Can a raven be a mammal? Answer yes or no.
<think>
We need answer yes/no. Need be careful. Premises: All ravens are birds. No birds are mammals. Therefore no ravens are mammals. Can a raven be a mammal? No. Need answer yes or no. final concise.
</think>
No.
arithmetic
Prompt: A box has 12 red balls and 8 blue balls. Half the red balls are removed. How many balls remain? Give only the number.
6 red remain, plus 8 blue = 14.
tool
Prompt: Use the weather tool to get the weather in Seattle.
<think>
The user wants me to get the weather in Seattle. I'll call the weather tool.
</think>
<tool_call>
{"name": "weather", "arguments": {"city": "Seattle"}}
</tool_call>
RAW-TASKS.md includes the candidate and reference transcripts with scores and stop reasons. Raw JSON receipts retain prompt tokens, generated tokens and the original measurement identities. The tiny native suite does not establish broader reasoning or tool accuracy.
Speed and memory
Hardware is an Apple M4 Mac mini with 10 CPU cores and 24 GiB of unified memory. The measured system uses macOS 26.2, build 25C56, and Python 3.12.13. Runtime versions are MLX 0.32.4, MLX-LM 0.32.2 and Transformers 5.22.2. Other workloads stay active. The six GiB reserve stays in force.
Rates show the median and full observed range. Each completed run uses a fresh KV cache and eight timed decode steps. Rates exclude model loading. Peak MLX and minimum available memory include loading. Guard availability counts free and reclaimable file-backed pages. Swap growth is system-wide and starts before model loading. Pre-existing swap does not count as growth. Other workloads remain active.
Resident 3, five completed short runs
Each job passes the shared capacity gate before launch. Guard margin subtracts six GiB, the largest streamed layer, and 512 MiB of workspace from minimum guard availability. Swap maximum is sampled once per second, not a continuous peak. The benchmark also samples available memory every 0.1 seconds.
| Prompt tokens | Runs | Prefill tokens/s | Decode tokens/s | Peak MLX, GiB | Minimum guard available, GiB | Guard margin, GiB | Sampled swap growth, MiB |
|---|---|---|---|---|---|---|---|
| 512 | 5 | 13.17900 (13.03354 to 13.46933) | 0.05700 (0.05622 to 0.05807) | 3.386 | 7.660 | 0.743 | 0.000 |
Resident 3, incomplete 8192 attempt
This job requests five runs but completes only two.
The third run reaches the guard at model.layers.5, with available=6021152768 and active_mlx=3041120946 bytes.
This is a failed set, not a five-run validation.
| Run | Prompt tokens | Prefill tokens/s | Decode tokens/s | Peak MLX, GiB | Minimum guard available, GiB | Result |
|---|---|---|---|---|---|---|
| 1 | 8192 | 21.16673 | 0.05838 | 4.161 | 7.741 | complete |
| 2 | 8192 | 21.10910 | 0.05760 | 4.161 | 7.820 | complete |
| 3 | 8192 | unavailable | unavailable | unavailable | 5.608 at guard | guard stop |
The whole attempt samples a minimum 6,023,921,664 guard-available bytes. Its minimum sampled guard margin is -1,403,707,906 bytes. It samples zero swap growth. The failed third run has no completed timing row. 8192 remains unreliable under these measured shared-host conditions. Capacity admission does not guarantee enough runtime headroom.
On a 24 GiB Mac shared with other memory-heavy work, long prompts can reach the memory guard. The guard stops the run instead of swapping. Close other heavy apps for long contexts.
The 192-token-budget Seattle tool command passes at resident 3 with a normal stop and no sampled swap growth.
Its minimum guard margin is 2.173 GiB.
New logs, commands, memory samples, capacity gates, and native scores are in receipts/resident-three/.
The first replay records two guard stops at resident 5. A separate resident-4 diagnostic also reaches the guard before the later successful tool measurement. These failures show insufficient runtime headroom under the measured shared-host conditions. They do not establish which other process owns the changing memory. The earlier failed attempts remain in the publication report.
Historical resident 5
These earlier rows each contain five completed runs at resident 5.
| Prompt tokens | Prefill tokens/s | Decode tokens/s | Peak MLX, GiB | Minimum available, GiB | Maximum swap growth, MiB |
|---|---|---|---|---|---|
| 512 | 13.67480 (13.62322 to 13.77075) | 0.06074 (0.05946 to 0.06148) | 5.473 | 7.953 | 0 |
| 2048 | 19.82951 (19.79040 to 19.86366) | 0.06079 (0.06008 to 0.06121) | 5.750 | 7.867 | 0 |
| 8192 | 21.19866 (21.16158 to 21.24813) | 0.06071 (0.06049 to 0.06089) | 6.249 | 7.199 | 0 |
The 16384-token trial fails the zero-swap requirement and stays rejected.
The five completed 8192 runs apply only to the historical resident-5 timing set.
The prompts repeat a frozen passage to measure speed and capacity.
There is no long-context quality test.
Raw rows remain in receipts/bench-affine4-*-resident5.json and receipts/context-admission.json.
These older timings are not a paired speed comparison with resident 3.
They do not establish reliable 8192 operation under current shared-host conditions.
No universal speedup or fully resident BF16 comparison is claimed.
Reproduction and evidence
REPRODUCE.md gives build, test, quality and benchmark commands.
The runtime, adapter, conversion, evaluation and benchmark scripts ship with the tests and requirements.
raw-receipts.tar.gz preserves raw benchmarks, native outputs, test logs and provenance.
The final prepublication mini suite passes 337 checks with zero failures.
Independent review round 11 approves the unchanged runtime revision.
The publication report retains Hub commit, remote files and sizes, collection membership, and fresh-download smoke receipts.
Limits and open issues
DFlash2 is untested. The installed MLX-LM loader does not support its official tensor layout. The draft weights are not included. Draft acceptance and speculative speed remain unmeasured. Broader accuracy, full-model BF16 fidelity, multilingual behavior and upstream benchmark suites remain unverified. Padded batches, concurrent serving, training and other hardware remain untested. The source advertises a larger context. Resident-3 long-context reliability remains unverified beyond the partial attempt above. The weights exceed memory on a 24 GiB Mac, so disk throughput controls decode speed.
A minor transfer issue remains in scripts/stage_candidate.py at lines 29 and 30.
Interrupted remote-to-local staging copies retain their local temporary files.
Remove owned leftovers before retrying staging.
The release folder contains no such leftovers before upload.
- Downloads last month
- 237
4-bit
Model tree for mchen04/Ripple-65B-Preview-4bit-MLX
Base model
ricursiveAI/Ripple-65B-Preview