# OxiBonsai CLI — copy to `.env` (auto-loaded from cwd or any parent dir) to omit flags.
# Precedence: --flag  >  shell env  >  .env  >  built-in default.

# ── textgen (`oxibonsai run` / `oxibonsai chat`) ──
# GGUF model (omit --model when set)
OXI_MODEL=/path/to/model.gguf
# Tokenizer json or dir (optional; omit --tokenizer when set)
#OXI_TOKENIZER=/path/to/tokenizer.json

# ── imagen (`oxibonsai image`) ──
# DiT FLUX.2 Klein ternary GGUF
OXI_DIT_GGUF=/path/to/flux2-klein-dit.gguf
# VAE decoder weights: the canonical FLUX.2 AutoencoderKLFlux2
# `vae/diffusion_pytorch_model.safetensors` file (loaded natively, no Python
# dump step — preferred) OR a directory of per-tensor f32 `.npy` files.
# Auto-detected: a `.safetensors` file uses the safetensors loader; a directory
# uses the `.npy` loader.
OXI_VAE_WEIGHTS=/path/to/vae/diffusion_pytorch_model.safetensors
# Text encoder: native 2.1GB 4-bit MLX safetensors (preferred over the f32 npy dir)
OXI_TE_4BIT=/path/to/text_encoder-mlx-4bit/model.safetensors
# Tokenizer dir (defaults to the TE safetensors' parent dir if unset)
OXI_TE_TOKENIZER_DIR=/path/to/text_encoder-mlx-4bit

# ── server concurrency ──
# Engine replicas for concurrent CPU serving
# (default: min(4, CPU cores); auto-clamped to 1 on GPU/Metal).
# Replicas share one token-embedding table, so each extra replica only adds a KV cache.
#OXIBONSAI_ENGINE_POOL_SIZE=4
