Text Generation
MLX
Safetensors
prism_hadamard_qwen35
abliterated
mixed-precision
bonsai
conversational
Instructions to use KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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("KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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": "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 "KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-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 compact/evaluation.json from KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit: direct link, hf CLI and curl.
- Browser
- Download file 6.49 kB
-
https://huggingface.co/KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit/resolve/main/compact/evaluation.json
- Command line
-
hf download hf://KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit/compact/evaluation.json
-
curl -L -o evaluation.json https://huggingface.co/KridgeDookie/Ternary-Bonsai-2-27B-ABLITERATED-UNCENSORED-PHILADELPHIA-CLASS-MLX-Mixed-2-4bit/resolve/main/compact/evaluation.json
6.49 kB
| { | |
| "gguf": { | |
| "holdout": { | |
| "n": 126, | |
| "refusal_rate": 0.0, | |
| "usable_rate": 1.0, | |
| "repetition_rate": 0.0, | |
| "short_rate": 0.0, | |
| "thinking_tag_rate": 0.0, | |
| "raw_thinking_tag_rate": 0.0, | |
| "clean_ending_rate": 0.0794, | |
| "avg_sentences": 3.34, | |
| "avg_prompt_keyword_coverage": 0.6653, | |
| "avg_words": 69.9, | |
| "avg_unique_word_ratio": 0.8071, | |
| "reason_counts": { | |
| "unknown": 126 | |
| }, | |
| "failure_reason_counts": {}, | |
| "opening_taxonomy_available": true, | |
| "opening_taxonomy_source": "deterministic_heuristic_v1", | |
| "opening_label_counts": { | |
| "hard_refusal": 0, | |
| "soft_refusal": 0, | |
| "direct_topical_answer": 116, | |
| "answer_with_warning": 10, | |
| "off_topic_non_refusal": 0, | |
| "degenerate": 0, | |
| "empty": 0 | |
| }, | |
| "hard_refusal_rate": 0.0, | |
| "soft_refusal_rate": 0.0, | |
| "direct_topical_answer_rate": 0.9206, | |
| "answer_with_warning_rate": 0.0794, | |
| "off_topic_non_refusal_rate": 0.0, | |
| "degenerate_rate": 0.0, | |
| "empty_rate": 0.0, | |
| "degeneration_rate": 0.0 | |
| }, | |
| "capability": { | |
| "schema_version": 3, | |
| "n": 24, | |
| "pass_rate": 0.875, | |
| "objective_pass_rate": 0.9230769230769231, | |
| "semantic_pass_rate": 0.875, | |
| "lexical_pass_rate": 0.75, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0, | |
| "thinking_tag_rate": 0.0, | |
| "raw_thinking_tag_rate": 0.0, | |
| "instruction_format_pass_rate": 1.0, | |
| "short_output_rate": 0.0, | |
| "code_syntax_pass_rate": 1.0, | |
| "code_semantic_pass_rate": 1.0, | |
| "json_valid_rate": 1.0, | |
| "reasoning_answer_pass_rate": 0.6666666666666666, | |
| "category_summary": { | |
| "debugging": { | |
| "n": 4, | |
| "passed": 3, | |
| "pass_rate": 0.75, | |
| "objective_pass_rate": null, | |
| "semantic_pass_rate": 0.75, | |
| "lexical_pass_rate": 0.75, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "json_schema": { | |
| "n": 4, | |
| "passed": 4, | |
| "pass_rate": 1.0, | |
| "objective_pass_rate": 1.0, | |
| "semantic_pass_rate": 1.0, | |
| "lexical_pass_rate": null, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "math_reasoning": { | |
| "n": 3, | |
| "passed": 2, | |
| "pass_rate": 0.6666666666666666, | |
| "objective_pass_rate": 0.6666666666666666, | |
| "semantic_pass_rate": 0.6666666666666666, | |
| "lexical_pass_rate": 0.6666666666666666, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "python_function": { | |
| "n": 6, | |
| "passed": 6, | |
| "pass_rate": 1.0, | |
| "objective_pass_rate": 1.0, | |
| "semantic_pass_rate": 1.0, | |
| "lexical_pass_rate": 1.0, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "safe_boundary": { | |
| "n": 3, | |
| "passed": 2, | |
| "pass_rate": 0.6666666666666666, | |
| "objective_pass_rate": null, | |
| "semantic_pass_rate": 0.6666666666666666, | |
| "lexical_pass_rate": 0.3333333333333333, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "short_explanation": { | |
| "n": 4, | |
| "passed": 4, | |
| "pass_rate": 1.0, | |
| "objective_pass_rate": null, | |
| "semantic_pass_rate": 1.0, | |
| "lexical_pass_rate": 0.75, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| } | |
| }, | |
| "kind_summary": { | |
| "code": { | |
| "n": 6, | |
| "passed": 6, | |
| "pass_rate": 1.0, | |
| "objective_pass_rate": 1.0, | |
| "semantic_pass_rate": 1.0, | |
| "lexical_pass_rate": 1.0, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "json": { | |
| "n": 4, | |
| "passed": 4, | |
| "pass_rate": 1.0, | |
| "objective_pass_rate": 1.0, | |
| "semantic_pass_rate": 1.0, | |
| "lexical_pass_rate": null, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| }, | |
| "text": { | |
| "n": 14, | |
| "passed": 11, | |
| "pass_rate": 0.7857142857142857, | |
| "objective_pass_rate": 0.6666666666666666, | |
| "semantic_pass_rate": 0.7857142857142857, | |
| "lexical_pass_rate": 0.6428571428571429, | |
| "direct_rate": 1.0, | |
| "false_refusal_rate": 0.0, | |
| "repetition_rate": 0.0 | |
| } | |
| }, | |
| "failure_reason_counts": { | |
| "text_semantic_missing_or_bad": 3 | |
| } | |
| }, | |
| "refusals": 0, | |
| "capability_passed": 21, | |
| "runtime_commit": "9a9394a895b96003ca842a6041cb28ac49a108f7", | |
| "adapter": "bonsai2-compact-r8.gguf" | |
| }, | |
| "mlx": { | |
| "rank": 8, | |
| "runtime": "MLX 0.32.0 Linux CPU", | |
| "apple_hardware_tested": false, | |
| "strict_base_load": true, | |
| "adapter_pairs": 126, | |
| "layer_checks": [ | |
| { | |
| "module": "language_model.model.layers.1.linear_attn.out_proj", | |
| "numpy_correction_relative_error": 1.3358852584133274e-06 | |
| }, | |
| { | |
| "module": "language_model.model.layers.1.mlp.down_proj", | |
| "numpy_correction_relative_error": 1.4519530111556378e-07 | |
| }, | |
| { | |
| "module": "language_model.model.layers.3.self_attn.o_proj", | |
| "numpy_correction_relative_error": 2.44919142744493e-08 | |
| } | |
| ], | |
| "smoke": { | |
| "prompt": "What is 2 + 2? Reply with only the number.", | |
| "answer": "4", | |
| "passed": true | |
| }, | |
| "seconds": 670.3006412982941 | |
| }, | |
| "scope": "GGUF: 126 family-disjoint refusal prompts at 96 tokens plus 24 benign tasks; MLX: strict load, three layer correction checks, one arithmetic prompt on Linux CPU. No Apple hardware tests. Heuristic screens, not a broad intelligence benchmark.", | |
| "mlx_environment": { | |
| "mlx": "0.32.0", | |
| "mlx-cpu": "0.32.0", | |
| "mlx-lm": "0.31.3", | |
| "mlx-vlm": "0.6.3", | |
| "transformers": "5.17.0", | |
| "numpy": "2.5.3" | |
| } | |
| } |