Text Generation
MLX
Safetensors
English
llama
nexora
llama-nexora
vector
chat
llama-3
open4bits
conversational
4-bit precision
Instructions to use Open4bits/llama-nexora-vector-v0.1-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Open4bits/llama-nexora-vector-v0.1-mlx-4Bit 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("Open4bits/llama-nexora-vector-v0.1-mlx-4Bit") 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 Open4bits/llama-nexora-vector-v0.1-mlx-4Bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit"
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": "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Open4bits/llama-nexora-vector-v0.1-mlx-4Bit 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 "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit"
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 Open4bits/llama-nexora-vector-v0.1-mlx-4Bit
Run Hermes
hermes
- OpenClaw new
How to use Open4bits/llama-nexora-vector-v0.1-mlx-4Bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit"
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 "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit" \ --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"
- MLX LM
How to use Open4bits/llama-nexora-vector-v0.1-mlx-4Bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Open4bits/llama-nexora-vector-v0.1-mlx-4Bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,6 @@ tags:
|
|
| 41 |
- [Quantization Details](#quantization-details)
|
| 42 |
- [Model Details](#model-details)
|
| 43 |
- [Requirements](#requirements)
|
| 44 |
-
- [Installation & Usage](#installation--usage)
|
| 45 |
- [Capabilities](#capabilities)
|
| 46 |
- [Limitations](#limitations)
|
| 47 |
- [Intended Use](#intended-use)
|
|
@@ -112,50 +111,6 @@ This model is part of the **Llama-Nexora family** — a dedicated branch of Nexo
|
|
| 112 |
|
| 113 |
---
|
| 114 |
|
| 115 |
-
## Installation & Usage
|
| 116 |
-
|
| 117 |
-
### Install MLX
|
| 118 |
-
|
| 119 |
-
```bash
|
| 120 |
-
pip install mlx-lm
|
| 121 |
-
```
|
| 122 |
-
|
| 123 |
-
### Run Inference
|
| 124 |
-
|
| 125 |
-
```python
|
| 126 |
-
from mlx_lm import load, generate
|
| 127 |
-
|
| 128 |
-
model, tokenizer = load("Open4bits/llama-nexora-vector-v0.1-mlx-4Bit")
|
| 129 |
-
|
| 130 |
-
prompt = "Generate an SVG of a simple red circle."
|
| 131 |
-
|
| 132 |
-
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
| 133 |
-
print(response)
|
| 134 |
-
```
|
| 135 |
-
|
| 136 |
-
### Chat Template (Recommended)
|
| 137 |
-
|
| 138 |
-
Since this model is based on an Instruct variant, using the chat template is recommended for best results:
|
| 139 |
-
|
| 140 |
-
```python
|
| 141 |
-
from mlx_lm import load, generate
|
| 142 |
-
|
| 143 |
-
model, tokenizer = load("Open4bits/llama-nexora-vector-v0.1-mlx-4Bit")
|
| 144 |
-
|
| 145 |
-
messages = [
|
| 146 |
-
{"role": "user", "content": "Generate an SVG of a simple blue square with rounded corners."}
|
| 147 |
-
]
|
| 148 |
-
|
| 149 |
-
prompt = tokenizer.apply_chat_template(
|
| 150 |
-
messages, tokenize=False, add_generation_prompt=True
|
| 151 |
-
)
|
| 152 |
-
|
| 153 |
-
response = generate(model, tokenizer, prompt=prompt, max_tokens=1024, verbose=True)
|
| 154 |
-
print(response)
|
| 155 |
-
```
|
| 156 |
-
|
| 157 |
-
---
|
| 158 |
-
|
| 159 |
## Capabilities
|
| 160 |
|
| 161 |
llama-nexora-vector-v0.1-mlx-4Bit is designed to translate textual instructions into structured SVG code. The model is best suited for:
|
|
|
|
| 41 |
- [Quantization Details](#quantization-details)
|
| 42 |
- [Model Details](#model-details)
|
| 43 |
- [Requirements](#requirements)
|
|
|
|
| 44 |
- [Capabilities](#capabilities)
|
| 45 |
- [Limitations](#limitations)
|
| 46 |
- [Intended Use](#intended-use)
|
|
|
|
| 111 |
|
| 112 |
---
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
## Capabilities
|
| 115 |
|
| 116 |
llama-nexora-vector-v0.1-mlx-4Bit is designed to translate textual instructions into structured SVG code. The model is best suited for:
|