Instructions to use djrsystemservices/Agents-A1-4B-oQ8e-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use djrsystemservices/Agents-A1-4B-oQ8e-mtp 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("djrsystemservices/Agents-A1-4B-oQ8e-mtp") config = load_config("djrsystemservices/Agents-A1-4B-oQ8e-mtp") # 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 djrsystemservices/Agents-A1-4B-oQ8e-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "djrsystemservices/Agents-A1-4B-oQ8e-mtp"
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": "djrsystemservices/Agents-A1-4B-oQ8e-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use djrsystemservices/Agents-A1-4B-oQ8e-mtp 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 "djrsystemservices/Agents-A1-4B-oQ8e-mtp"
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 djrsystemservices/Agents-A1-4B-oQ8e-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use djrsystemservices/Agents-A1-4B-oQ8e-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "djrsystemservices/Agents-A1-4B-oQ8e-mtp"
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 "djrsystemservices/Agents-A1-4B-oQ8e-mtp" \ --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"
Agents-A1-4B-oQ8e-mtp
This is an oQ8e MLX conversion produced with oMLX.
Source and credit
- Original local source checkpoint:
Agents-A1-4B-bf16 - Source repository / credit: https://huggingface.co/InternScience/Agents-A1-4B
Please follow the original model's license, acceptable-use policy, and attribution requirements.
Conversion
- Quantization: oQ8e (
enhanced=True) - Importance calibration: imatrix, 128 samples × 512 tokens
- oMLX version: 0.6.0.dev1
oQe uses an imatrix sensitivity calibration to assign precision selectively,
rather than applying a uniform bit-width to every tensor. The generated
oq_imatrix_report.json records the resulting quantization allocation.
python run_oqe_conversion.py Agents-A1-4B-bf16 --models-dir /path/to/models --oq-level 8.0 --imatrix-samples 128 --imatrix-seq-length 512 --mtp-donor /path/to/Qwen3.5-4B-MTP-donor --mtp-source-repo https://huggingface.co/guru87/Qwen3.5-4B-MTP --source-repo https://huggingface.co/InternScience/Agents-A1-4B
Lightning MTP
The donor checkpoint was merged as an oMLX Lightning MTP head. The donor was kept at its shipped precision and was not independently quantized.
- Donor checkpoint:
Qwen3.5-4B-MTP-donor - Donor repository / credit: https://huggingface.co/guru87/Qwen3.5-4B-MTP
Files
model-*-of-*.safetensors: sharded quantized MLX weightsmodel.safetensors.index.json: shard indexmodel-mtp.safetensors: shipped-precision Lightning MTP headconfig.json: model configurationoq_imatrix_report.json: imatrix calibration and quantization report
- Downloads last month
- 18
8-bit
Model tree for djrsystemservices/Agents-A1-4B-oQ8e-mtp
Base model
InternScience/Agents-A1-4B