Instructions to use crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora" --prompt "Once upon a time"
SmolLM-135M-Instruct-4bit + Amber knowledge pack (LoRA adapter)
A tiny demo adapter, published as evidence, not as a product. It is the exact LoRA
adapter behind the measured before/after numbers in
AgentC-Consulting/knowledge-packs
(live-run/RESULTS.md), trained on the
Amber Framework knowledge pack dataset.
- Base model:
mlx-community/SmolLM-135M-Instruct-4bit(135M params, 4-bit, MLX) - Method: LoRA via
mlx_lm(rank 8, 8 layers, lr 1e-4, batch 2, 2000 iterations, 62.8 s wall on an M1 Max 32 GB) โ full config inadapter_config.json - Data: 471 generated pairs about the Amber web framework (Crystal), deterministic template synthesis from the Amber docs
- sha256 of
adapters.safetensors:8f88465b98309f4001d85b53eae959e4f22dae3155fc1e43a60f5b90deba6c76โ matches the hash recorded in the repo's RESULTS.md, so you can verify this is the artifact the numbers were measured on. No--seedwas passed during training (mlx-lm default), so bit-exact retraining is not guaranteed; the hash identifies this exact artifact.
Measured results (this adapter, temp 0; counts, not marketing)
| Eval set | Metric | Base | This adapter |
|---|---|---|---|
| memorization (trained-fact probe) | recall, normalized substring (20) | 1/20 | 11/20 |
| multiple choice (30) | 2/30 | 6/30 | |
| heldout_sources (control) | recall (20) | 2/20 | 0/20 |
| multiple choice (30) | 7/30 | 7/30 |
The per-item reports the table is derived from are included verbatim in this repo:
reports/base.eval.json and
reports/adapter.eval.json (question, gold answer, full
completion, verdict for every one of the 100 items).
Honest read: fact injection is real and measured (recall of trained facts 1/20 โ 11/20 under held-out question templates), and the held-out-source control stayed flat โ this adapter learned the trained facts, not "the Amber framework." MC accuracy after training (6/30) is at or below the 25% guessing chance; the signal is the recall delta. The eval questions are synthetic and not hand-reviewed. Treat everything here as lab notes, or better: run the harness yourself.
Use it
pip install "mlx-lm" "transformers<5"
python -m mlx_lm generate --model mlx-community/SmolLM-135M-Instruct-4bit \
--adapter-path . \
--prompt "In Amber, what does the pipeline block in config/routes.cr do?" \
--temp 0
Do not expect a reliable framework expert โ this is a 135M-parameter 4-bit model that memorized 165 facts. The point is the measurement loop: the long-form story is at https://agentc-consulting.github.io/knowledge-packs/.
Built by the team at AgentC Consulting โ https://agentc.consulting?ref=kp-adapter
Quantized
Model tree for crimson-knight/SmolLM-135M-Instruct-4bit-amber-lora
Base model
mlx-community/SmolLM-135M-Instruct-4bit