Instructions to use AlphaOxO/Lizzy-7B-8bits-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use AlphaOxO/Lizzy-7B-8bits-MLX 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("AlphaOxO/Lizzy-7B-8bits-MLX") 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 AlphaOxO/Lizzy-7B-8bits-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "AlphaOxO/Lizzy-7B-8bits-MLX"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AlphaOxO/Lizzy-7B-8bits-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use AlphaOxO/Lizzy-7B-8bits-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "AlphaOxO/Lizzy-7B-8bits-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "AlphaOxO/Lizzy-7B-8bits-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlphaOxO/Lizzy-7B-8bits-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use AlphaOxO/Lizzy-7B-8bits-MLX 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 "AlphaOxO/Lizzy-7B-8bits-MLX"
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 AlphaOxO/Lizzy-7B-8bits-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AlphaOxO/Lizzy-7B-8bits-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "AlphaOxO/Lizzy-7B-8bits-MLX"
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 "AlphaOxO/Lizzy-7B-8bits-MLX" \ --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"
| { | |
| "architectures": [ | |
| "LizzyForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_lizzy.LizzyConfig", | |
| "AutoModel": "modeling_lizzy.LizzyModel", | |
| "AutoModelForCausalLM": "modeling_lizzy.LizzyForCausalLM", | |
| "AutoTokenizer": "tokenization_lizzy.LizzyTokenizerFast" | |
| }, | |
| "bos_token_id": 100257, | |
| "embd_dropout": 0.0, | |
| "eos_token_id": 100257, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 11008, | |
| "layer_layouts": [ | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm", | |
| "decoder_postnorm" | |
| ], | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "linear_a_log_max": null, | |
| "linear_a_log_min": null, | |
| "linear_allow_neg_eigval": null, | |
| "linear_conv_kernel_dim": null, | |
| "linear_dt_init_floor": null, | |
| "linear_dt_max": null, | |
| "linear_dt_min": null, | |
| "linear_key_head_dim": null, | |
| "linear_num_key_heads": null, | |
| "linear_num_value_heads": null, | |
| "linear_value_head_dim": null, | |
| "max_position_embeddings": 65536, | |
| "mlp_bias": false, | |
| "mlp_type": "gated", | |
| "model_type": "lizzy", | |
| "no_rope_layer_interval": null, | |
| "norm_eps": 1e-06, | |
| "norm_has_bias": false, | |
| "norm_type": "rmsnorm", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 32, | |
| "pad_token_id": 100277, | |
| "position_embedding_type": "rope", | |
| "qk_norm_type": "rmsnorm", | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 8, | |
| "mode": "affine" | |
| }, | |
| "quantization_config": { | |
| "group_size": 64, | |
| "bits": 8, | |
| "mode": "affine" | |
| }, | |
| "resid_dropout": 0.0, | |
| "rope_layer_flags": [ | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true, | |
| true | |
| ], | |
| "rope_scaling": { | |
| "attention_factor": 1.2079441541679836, | |
| "beta_fast": 32, | |
| "beta_slow": 1, | |
| "factor": 8.0, | |
| "original_max_position_embeddings": 8192, | |
| "rope_type": "default", | |
| "rope_theta": 500000 | |
| }, | |
| "rope_theta": 500000, | |
| "rope_type_overrides": {}, | |
| "sliding_window": 4096, | |
| "tie_word_embeddings": false, | |
| "tokenizer_class": "LizzyTokenizerFast", | |
| "transformers_version": "5.4.0", | |
| "use_cache": true, | |
| "use_post_attn_norm": true, | |
| "use_post_mlp_norm": true, | |
| "use_pre_attn_norm": false, | |
| "use_pre_mlp_norm": false, | |
| "use_qk_norm": true, | |
| "vocab_size": 100278 | |
| } |