Image-Text-to-Text
MLX
Safetensors
qwen3_5
decision-model
decision-making
calibration
jevbench
apple-silicon
conversational
8-bit precision
Instructions to use netprojects/H2O-Lightning-4B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/H2O-Lightning-4B-MLX-8bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/H2O-Lightning-4B-MLX-8bit") config = load_config("netprojects/H2O-Lightning-4B-MLX-8bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/H2O-Lightning-4B-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/H2O-Lightning-4B-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/H2O-Lightning-4B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/H2O-Lightning-4B-MLX-8bit 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 "netprojects/H2O-Lightning-4B-MLX-8bit"
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 netprojects/H2O-Lightning-4B-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/H2O-Lightning-4B-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/H2O-Lightning-4B-MLX-8bit"
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 "netprojects/H2O-Lightning-4B-MLX-8bit" \ --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"
Download tokenizer_contract.json from netprojects/H2O-Lightning-4B-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 8.05 kB
-
https://huggingface.co/netprojects/H2O-Lightning-4B-MLX-8bit/resolve/main/tokenizer_contract.json
- Command line
-
hf download hf://netprojects/H2O-Lightning-4B-MLX-8bit/tokenizer_contract.json
-
curl -L -o tokenizer_contract.json https://huggingface.co/netprojects/H2O-Lightning-4B-MLX-8bit/resolve/main/tokenizer_contract.json
8.05 kB
| { | |
| "source_model": "h2oai/h2o-lightning-4b", | |
| "source_revision": "d42875078bafb155af14d609d85071091418e83f", | |
| "split": "native", | |
| "actual_served_tokenizer_class": "TokenizersBackend", | |
| "how": "token_ids from the tokenizers library on tokenizer/tokenizer.json; AutoTokenizer gives the same ids under transformers 5.12.1-5.20.2", | |
| "tokenizers_version": "0.23.3", | |
| "normalization": "NFC", | |
| "source_files": { | |
| "tokenizer/tokenizer.json": "5f9e4d4901a92b997e463c1f46055088b6cca5ca61a6522d1b9f64c4bb81cb42", | |
| "tokenizer/tokenizer_config.json": "b3a3dba9a4901f2c885c9bb43d8de838f33f843a3668dbaf30c6e73962e36a92", | |
| "tokenizer/chat_template.jinja": "a4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715" | |
| }, | |
| "probes": [ | |
| { | |
| "id": "unicode-00", | |
| "text": "plain ASCII: select option 2; Answer:", | |
| "token_ids": [ | |
| 20139, | |
| 38016, | |
| 25, | |
| 3186, | |
| 2904, | |
| 220, | |
| 17, | |
| 26, | |
| 21134, | |
| 25 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-01", | |
| "text": "Hello\tworld\n indented\r\ntrailing ", | |
| "token_ids": [ | |
| 9419, | |
| 73891, | |
| 198, | |
| 220, | |
| 1214, | |
| 15397, | |
| 317, | |
| 371, | |
| 13868, | |
| 256 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-02", | |
| "text": "I'm here; THEY'RE there; we'll do what you can't.", | |
| "token_ids": [ | |
| 40, | |
| 2688, | |
| 1532, | |
| 26, | |
| 60388, | |
| 90902, | |
| 1017, | |
| 26, | |
| 567, | |
| 3172, | |
| 635, | |
| 1092, | |
| 488, | |
| 628, | |
| 914, | |
| 13 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-03", | |
| "text": "Café naïve coöperate résumé Ångström", | |
| "token_ids": [ | |
| 34, | |
| 2492, | |
| 933, | |
| 91603, | |
| 571, | |
| 1027, | |
| 2862, | |
| 76402, | |
| 238976, | |
| 76533, | |
| 938, | |
| 485, | |
| 82628 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-04", | |
| "text": "Café naïve coöperate résumé Ångström", | |
| "token_ids": [ | |
| 34, | |
| 2492, | |
| 933, | |
| 91603, | |
| 571, | |
| 1027, | |
| 2862, | |
| 76402, | |
| 238976, | |
| 76533, | |
| 938, | |
| 485, | |
| 82628 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-05", | |
| "text": "उपयोगकर्ता की गणना का उत्तर चुनें: जोड़ और जोड़", | |
| "token_ids": [ | |
| 154855, | |
| 83188, | |
| 164703, | |
| 212715, | |
| 149833, | |
| 170356, | |
| 149419, | |
| 149370, | |
| 149682, | |
| 153243, | |
| 164472, | |
| 161732, | |
| 163792, | |
| 150256, | |
| 69858, | |
| 25, | |
| 175625, | |
| 153517, | |
| 170729, | |
| 175625, | |
| 153517 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-06", | |
| "text": "क्या चालान का कुल सही है? कुल, कर, दिनांक।", | |
| "token_ids": [ | |
| 62516, | |
| 149153, | |
| 150129, | |
| 151224, | |
| 149439, | |
| 153243, | |
| 156363, | |
| 88646, | |
| 65855, | |
| 151566, | |
| 170046, | |
| 30, | |
| 156363, | |
| 88646, | |
| 11, | |
| 150290, | |
| 11, | |
| 155462, | |
| 149682, | |
| 203822, | |
| 154845 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-07", | |
| "text": "क़ क़ ड़ ड़", | |
| "token_ids": [ | |
| 62516, | |
| 150502, | |
| 46215, | |
| 150502, | |
| 153832, | |
| 150502, | |
| 153832, | |
| 150502 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-08", | |
| "text": "اختر إجابة السؤال: ما مجموع الفاتورة؟", | |
| "token_ids": [ | |
| 206443, | |
| 148447, | |
| 82215, | |
| 181816, | |
| 206654, | |
| 25, | |
| 155025, | |
| 157278, | |
| 148455, | |
| 46044, | |
| 149312, | |
| 152033 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-09", | |
| "text": "عَرَبِيّ الْمَجْمُوعُ: ١٢٣٫٤٥", | |
| "token_ids": [ | |
| 22500, | |
| 153458, | |
| 150765, | |
| 151003, | |
| 71263, | |
| 163355, | |
| 180251, | |
| 160010, | |
| 62422, | |
| 149007, | |
| 62422, | |
| 25, | |
| 220, | |
| 149, | |
| 94, | |
| 149, | |
| 95, | |
| 149, | |
| 96, | |
| 169697, | |
| 149, | |
| 97, | |
| 149, | |
| 98 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-10", | |
| "text": "中文:发票总额是多少?选出正确答案。", | |
| "token_ids": [ | |
| 99986, | |
| 4960, | |
| 100944, | |
| 100937, | |
| 111229, | |
| 10992, | |
| 116946, | |
| 109438, | |
| 1710 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-11", | |
| "text": "日本語:請求書の合計を選んでください。", | |
| "token_ids": [ | |
| 247359, | |
| 4960, | |
| 133851, | |
| 203997, | |
| 247497, | |
| 230849, | |
| 68798, | |
| 1710 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-12", | |
| "text": "한국어: 청구서 합계를 선택하세요. 한글 한글", | |
| "token_ids": [ | |
| 174675, | |
| 30061, | |
| 25, | |
| 190941, | |
| 25845, | |
| 152345, | |
| 176616, | |
| 26866, | |
| 55246, | |
| 28429, | |
| 88005, | |
| 13, | |
| 209758, | |
| 209758 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-13", | |
| "text": "Emoji 🧑🏽💻 👩👩👧👦 🇺🇳 ❤️ ✨; total = 49.20", | |
| "token_ids": [ | |
| 89535, | |
| 10838, | |
| 100, | |
| 239, | |
| 9008, | |
| 237, | |
| 121, | |
| 373, | |
| 235, | |
| 88995, | |
| 119, | |
| 59720, | |
| 102, | |
| 373, | |
| 235, | |
| 9008, | |
| 239, | |
| 102, | |
| 373, | |
| 235, | |
| 9008, | |
| 239, | |
| 100, | |
| 373, | |
| 235, | |
| 9008, | |
| 239, | |
| 99, | |
| 10838, | |
| 229, | |
| 118, | |
| 9008, | |
| 229, | |
| 111, | |
| 68089, | |
| 29545, | |
| 24708, | |
| 101, | |
| 26, | |
| 2702, | |
| 283, | |
| 220, | |
| 19, | |
| 24, | |
| 13, | |
| 17, | |
| 15 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-14", | |
| "text": "Zero width: ab ab a b a b", | |
| "token_ids": [ | |
| 17461, | |
| 2297, | |
| 25, | |
| 264, | |
| 86288, | |
| 65, | |
| 264, | |
| 373, | |
| 235, | |
| 65, | |
| 264, | |
| 3966, | |
| 65, | |
| 264, | |
| 373, | |
| 107, | |
| 65 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-15", | |
| "text": "\n\n\t\t \r\n\r\n\nend\t ", | |
| "token_ids": [ | |
| 271, | |
| 297, | |
| 6219, | |
| 78035, | |
| 400, | |
| 3551 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-16", | |
| "text": "def café(x):\n return \"जोड़\" + str(x)\n# 🧪\n", | |
| "token_ids": [ | |
| 727, | |
| 50203, | |
| 2007, | |
| 1590, | |
| 198, | |
| 262, | |
| 460, | |
| 328, | |
| 149106, | |
| 52743, | |
| 153517, | |
| 1, | |
| 478, | |
| 592, | |
| 2007, | |
| 8, | |
| 198, | |
| 2, | |
| 10838, | |
| 100, | |
| 103, | |
| 198 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-17", | |
| "text": "{\"name\":\"Café\",\"amount\":49.20,\"language\":\"हिन्दी\"}", | |
| "token_ids": [ | |
| 4754, | |
| 591, | |
| 3147, | |
| 34, | |
| 2492, | |
| 933, | |
| 2129, | |
| 5856, | |
| 763, | |
| 19, | |
| 24, | |
| 13, | |
| 17, | |
| 15, | |
| 1288, | |
| 11197, | |
| 3147, | |
| 215989, | |
| 150127, | |
| 177453, | |
| 8934 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-18", | |
| "text": "Numbers 0 12 345 67890 -1.25 6.022e23 ٠١٢ 123", | |
| "token_ids": [ | |
| 26359, | |
| 220, | |
| 15, | |
| 220, | |
| 16, | |
| 17, | |
| 220, | |
| 18, | |
| 19, | |
| 20, | |
| 220, | |
| 21, | |
| 22, | |
| 23, | |
| 24, | |
| 15, | |
| 471, | |
| 16, | |
| 13, | |
| 17, | |
| 20, | |
| 220, | |
| 21, | |
| 13, | |
| 15, | |
| 17, | |
| 17, | |
| 68, | |
| 17, | |
| 18, | |
| 220, | |
| 149, | |
| 254, | |
| 149, | |
| 94, | |
| 149, | |
| 95, | |
| 220, | |
| 19496, | |
| 24128, | |
| 32405 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-19", | |
| "text": "<|im_start|>user\nCafé और जोड़\n<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\nAnswer:", | |
| "token_ids": [ | |
| 248045, | |
| 846, | |
| 198, | |
| 34, | |
| 2492, | |
| 933, | |
| 170729, | |
| 175625, | |
| 153517, | |
| 198, | |
| 248046, | |
| 198, | |
| 248045, | |
| 74455, | |
| 198, | |
| 248068, | |
| 271, | |
| 248069, | |
| 271, | |
| 15666, | |
| 25 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-20", | |
| "text": "<|vision_start|><|image_pad|><|vision_end|>\nकुल और Café\nAnswer:", | |
| "token_ids": [ | |
| 248053, | |
| 248056, | |
| 248054, | |
| 198, | |
| 226489, | |
| 88646, | |
| 170729, | |
| 63457, | |
| 198, | |
| 15666, | |
| 25 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-21", | |
| "text": "<__media__>\nالمجموع Café 合计\nAnswer:", | |
| "token_ids": [ | |
| 27, | |
| 548, | |
| 7164, | |
| 548, | |
| 29, | |
| 198, | |
| 149650, | |
| 148754, | |
| 149007, | |
| 63457, | |
| 220, | |
| 109920, | |
| 198, | |
| 15666, | |
| 25 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-22", | |
| "text": "Accents across words: ẹ́ ȫ ñ", | |
| "token_ids": [ | |
| 14182, | |
| 779, | |
| 3808, | |
| 4105, | |
| 25, | |
| 220, | |
| 148977, | |
| 52033, | |
| 220, | |
| 132, | |
| 104, | |
| 1624, | |
| 109 | |
| ] | |
| }, | |
| { | |
| "id": "unicode-23", | |
| "text": "Mixed: USD $49.20 — €50, हिन्दी عربى 中文 emoji 🚀; choose A.", | |
| "token_ids": [ | |
| 83445, | |
| 25, | |
| 18954, | |
| 393, | |
| 19, | |
| 24, | |
| 13, | |
| 17, | |
| 15, | |
| 1892, | |
| 12612, | |
| 20, | |
| 15, | |
| 11, | |
| 190488, | |
| 150127, | |
| 177453, | |
| 196388, | |
| 53208, | |
| 220, | |
| 99986, | |
| 40958, | |
| 10838, | |
| 248, | |
| 222, | |
| 26, | |
| 4992, | |
| 357, | |
| 13 | |
| ] | |
| } | |
| ] | |
| } | |