Bonsai With LM Studio

Updated 2026-07-07

LM Studio is a free desktop app that downloads and runs local language models behind a graphical chat interface, with no command line required. On this page you load Bonsai 8B, PrismML's 1-bit small model, into LM Studio, run a prompt with the network disconnected, and save your settings so someone else can repeat the run.

Not yet run on hardware

These steps come from the official LM Studio and PrismML docs. We have not yet run them on a device. Where the docs do not spell out a step, we say so with the word "inferred". If you complete a run, please record what happened.

Before you start

You need four things:

  • A desktop machine. LM Studio runs on macOS, Windows, and Linux. Check the exact OS and hardware requirements in the LM Studio app docs before you start.
  • The latest LM Studio release from lmstudio.ai. Note the version number, because you will record it later.
  • The Bonsai 8B GGUF file from the model card. The llama.cpp recipe uses the filename Bonsai-8B-Q1_0.gguf, so confirm that name against the model card.
  • Enough disk space and RAM for the model. We do not have a confirmed file size yet. An X post by Vinod Khosla mentioned a 1.15 GB 1-bit Bonsai 8B, but that number is unconfirmed, so check the size on the model card.

One risk to know about before you invest time. Bonsai uses 1-bit, also called ternary, quantization, which means each weight is stored in about one bit instead of 16. PrismML maintains its own fork of llama.cpp to run these files, and LM Studio bundles the standard llama.cpp engine. The standard engine may or may not load the file. If it refuses, that is a useful result too, and the troubleshooting section below tells you what to capture.

Run Bonsai in LM Studio

  1. Download and install LM Studio from lmstudio.ai. Write down the version string.

  2. Get the model file. There are two paths:

    • Search for prism-ml/Bonsai-8B-gguf inside the app. This is inferred, because LM Studio's search reads from Hugging Face, so confirm it against the app docs.
    • Or download the file from the model card in a browser and import it through the local models directory. The exact import path is also inferred, so confirm it in the docs.
  3. Load the model in a chat session. If the engine rejects the 1-bit file, copy the exact error text and add it as a compatibility note to the llama.cpp recipe.

  4. Run one prompt. Use the same prompt as the llama.cpp recipe so the two runs can be compared:

    Explain quantum computing in simple terms.
    
  5. Match the sampling settings from the llama.cpp recipe wherever the UI exposes them. Set temperature to 0.5, top-p to 0.85, top-k to 20, and max tokens to 256.

  6. Check offline behavior. After the model has fully downloaded, disconnect from the network and run the prompt again. Note whether it works.

  7. Export your settings. LM Studio stores configuration per model. Save it as a preset or config export and attach it to your results. The export mechanism is inferred, so confirm it in the app docs. We also do not yet know what format the export takes or whether it moves cleanly between LM Studio versions, so note what you find.

  8. Optionally, test the local server. If your LM Studio version exposes an OpenAI-compatible server, start it and run one curl completion. Note the host, port, and response.

If you want to compare against a reference setup, the PrismML Bonsai demo repo shows how PrismML runs the model.

Record your results

Copy this block before you start, fill it in as you go, and file it as a device report.

- Date:
- Operator:
- Device:
- OS:
- CPU / GPU:
- RAM / VRAM:
- LM Studio version:
- Model file and size on disk:
- Quantization / format:
- Prompt:
- Output:
- TTFT:
- Tokens/sec (from LM Studio's stats readout):
- Peak memory:
- Offline mode verified: yes/no
- Settings export attached: yes/no

Troubleshoot common failures

The most likely failure is the model refusing to load, because of the 1-bit quantization risk described above. Whatever goes wrong, capture the exact error text and your LM Studio version, since those two facts usually decide whether the problem is the app or the file.

SymptomLikely causeWhat to try
Model fails to loadThe bundled llama.cpp engine lacks the 1-bit support that PrismML's fork has.Check the engine version in the LM Studio release notes, then test the same file in the fork directly. Capture the engine version and the exact error text.
Model not found in searchThe GGUF repo is not indexed, or it was renamed.Download it from the model card in a browser and import it manually. Note the search term you used and the filename.
Offline run failsThe app is calling out to the network, or the model was not fully cached.Re-test with the model fully downloaded before you disconnect. Note whether reconnecting fixes it.
Throughput far below llama.cppGPU offload is disabled, or the engine defaults differ.Check LM Studio's GPU offload setting and compare against a llama.cpp run with -ngl 99 on the same device. Attach your settings export and both benchmark rows.

Next steps

See something wrong? Fix it.