Instructions to use Jashan887/83_Self_Improving_Loop 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 Jashan887/83_Self_Improving_Loop 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 Jashan887/83_Self_Improving_Loop # Run inference directly in the terminal: llama cli -hf Jashan887/83_Self_Improving_Loop
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jashan887/83_Self_Improving_Loop # Run inference directly in the terminal: llama cli -hf Jashan887/83_Self_Improving_Loop
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Jashan887/83_Self_Improving_Loop # Run inference directly in the terminal: ./build/bin/llama cli -hf Jashan887/83_Self_Improving_Loop
Use Docker
docker model run hf.co/Jashan887/83_Self_Improving_Loop
- Llama new
- LM Studio
- Jan
- vLLM
How to use Jashan887/83_Self_Improving_Loop with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jashan887/83_Self_Improving_Loop" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jashan887/83_Self_Improving_Loop", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jashan887/83_Self_Improving_Loop
- Ollama
How to use Jashan887/83_Self_Improving_Loop with Ollama:
ollama run hf.co/Jashan887/83_Self_Improving_Loop
- Unsloth Desktop
- Pi
How to use Jashan887/83_Self_Improving_Loop with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jashan887/83_Self_Improving_Loop
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Jashan887/83_Self_Improving_Loop" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Jashan887/83_Self_Improving_Loop with Docker Model Runner:
docker model run hf.co/Jashan887/83_Self_Improving_Loop
- Lemonade
How to use Jashan887/83_Self_Improving_Loop with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jashan887/83_Self_Improving_Loop
Run and chat with the model
lemonade run user.83_Self_Improving_Loop-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use Jashan887/83_Self_Improving_Loop with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jashan887/83_Self_Improving_Loop
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:9931/v1 hermes config set model.default Jashan887/83_Self_Improving_Loop
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Jashan887/83_Self_Improving_Loop with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jashan887/83_Self_Improving_Loop
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:9931/v1 \ --custom-model-id "Jashan887/83_Self_Improving_Loop" \ --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"
Upload folder using huggingface_hub
Browse filesFiles changed (4)
- .gitattributes+1
- LICENSEAdded+176
- README.mdAdded+102
- bonsai-8b-stage2-post-curriculum-q8.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textbonsai-8b-stage2-post-curriculum-q8.gguf filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176Apache LicenseVersion 2.0, January 2004http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102---license: apache-2.0base_model: Qwen/Qwen3-8B-Baselibrary_name: llama.cpppipeline_tag: text-generation---# Hermes-Bonsai Karpathy Self-Improving Agent Loop
Stage 2 checkpoint for the Hermes/Bonsai Karpathy auto-research loop.
Last updated: 2026-04-05
This release is inspired by Andrej Karpathy's framing of self-improving training loops and auto-research. It contains the model artifact that worked, plus a concise model card explaining how it was produced and how to run it.
## Overview
- **Base model:** Qwen3-8B-Base- **Training method:** supervised fine-tuning via the Hermes/Karpathy loop- **Stage:** Stage 2 — the checkpoint that worked- **Known limitation:** Stage 3 exposed a learned-helplessness pattern on some tasks; that behavior is documented in the GitHub methodology repo- **License:** Apache-2.0 for this release; the underlying base model license also applies to the inherited Qwen3-8B-Base components
## What went into this checkpoint
- The loop-produced training curriculum and trace distillation pipeline- 140 verified raw passes used as positive reinforcement for curriculum rebalancing and trace selection - These are Bonsai's own unedited outputs that passed teacher evaluation- 10 domains covered across the build- Validation signal from a mixed-domain batch
## Domains covered
- memory_integration- refusal_redirect- self_correction- agent_routing- devops- logic_puzzle- code_debugging- math- architecture- research_synthesis
## Strongest domains
Best performance concentrated in:- memory_integration- refusal_redirect- self_correction
## Validation metrics
- Mixed-domain batch: **13/50 raw passes**- Raw pass rate: **26%**- This checkpoint is the stage 2 model that produced those verified passes
## What's novel
Trained via a graduation protocol with teacher-guided validation, raw-pass reinforcement, and frontier failure analysis. The interesting contribution is the loop methodology; see GitHub for the full curriculum and training workflow.
## GitHub methodology
The training loop, curriculum design, graduation protocol, and detailed methodology live here:
https://github.com/aurous37-lang/Hermes-Bonsai-Self-Improving-Agent-Loop
## Files in this Hugging Face repo
- `bonsai-8b-stage2-post-curriculum-q8.gguf` — the shipped stage 2 checkpoint- `README.md` — this model card- `LICENSE` — Apache-2.0 license
## How to use
Recommended working config from the stable local run:- `--ctx-size 40960`- `--n-gpu-layers 37`
### llama.cpp
```bash./llama-cli -m bonsai-8b-stage2-post-curriculum-q8.gguf \ --ctx-size 40960 \ -p "Explain the CAP theorem for a backend engineer."```
### llama-server
```bash./llama-server -m bonsai-8b-stage2-post-curriculum-q8.gguf \ --ctx-size 40960 \ --n-gpu-layers 37 \ --host 0.0.0.0 --port 8080```
Then point your client at the local OpenAI-compatible endpoint exposed by `llama-server`.
## Notes
- This is a release checkpoint, not the full training corpus.- The GitHub repo contains the code and documentation needed to reproduce the loop.- The Hugging Face repo contains the model artifact that ships from that loop.123version https://git-lfs.github.com/spec/v1oid sha256:e33506ca3bc37fde6d2cca186c112878d1a7b4f84bef27d0e8741185f3f47b1esize 8709518528.gitattributes+1
LICENSEAdded+176
README.mdAdded+102
bonsai-8b-stage2-post-curriculum-q8.ggufAdded+3