Instructions to use masahiroid/mdeberta-v3-base-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use masahiroid/mdeberta-v3-base-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download masahiroid/mdeberta-v3-base-mlx --local-dir mdeberta-v3-base-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download README.md from masahiroid/mdeberta-v3-base-mlx: direct link, hf CLI and curl.
- Browser
- Download file 3.26 kB
-
https://huggingface.co/masahiroid/mdeberta-v3-base-mlx/resolve/main/README.md
- Command line
-
hf download hf://masahiroid/mdeberta-v3-base-mlx/README.md
-
curl -L -o README.md https://huggingface.co/masahiroid/mdeberta-v3-base-mlx/resolve/main/README.md
license: mit
base_model: microsoft/mdeberta-v3-base
tags:
- mlx
- checkpoint-conversion
mdeberta-v3-base — MLX
Multilingual base encoder. Returns token-level hidden states. No task head was added; downstream fine-tuning is still needed.
Conversion of microsoft/mdeberta-v3-base at revision a0484667b22365f84929a935b5e50a51f71f159d. No fine-tuning or replacement checkpoint. F32 baseline, not a 4-bit quantization. Original authors retain credit and license rights.
Usage and compatibility
Native MLX implementation with the source inference-model tensor names. This custom runtime is not an mlx-lm text-generation model.
Apple Silicon Mac required by the included MLX runtime. Inputs may vary in length (up to the source limit); the Core ML and Core AI versions use fixed shapes.
pip install huggingface_hub mlx numpy transformers sentencepiece
from huggingface_hub import snapshot_download
from pathlib import Path
import sys, numpy as np
path = snapshot_download("masahiroid/mdeberta-v3-base-mlx")
sys.path.insert(0, path)
from runtime_mlx import Model
model = Model(path)
from transformers import AutoTokenizer
tok = AutoTokenizer.from_pretrained(path, use_fast=False)
inputs = tok("Thank you so much!", return_tensors="np", truncation=True, max_length=128)
output = model(input_ids=inputs["input_ids"], attention_mask=inputs["attention_mask"])
print(np.array(output).shape)
Numerical validation
Compared against the original PyTorch implementation, 6 deterministic cases. Maximum absolute output difference: 0.0010339618; minimum cosine similarity: 0.99999876. See validation.json for each case. These are conversion parity checks, not a full task-quality benchmark or latency benchmark.
Text tests cover English emotions, neutral retrieval text, Japanese, empty input and truncation.
Core ML/Core AI exports use batch 1 and sequence length 128; tokenization must pad/truncate to 128. MLX/custom GGUF preserve the original maximum context rather than adding training.
Reproducibility
Source revision and output semantics: provenance.json. Conversion scripts are included. Reproduce in a checkout with sources/<original-model-name>/, sources.json and publish/ directories as in the scripts. PyTorch 2.14.1; Transformers 4.57.3; MLX 0.32.4; NumPy 1.26.4 (MLX/Core ML environment); coremltools 9.0; chronos-forecasting 2.3.2; GGUF 0.19.0; Core AI export uses coreai-torch 0.4.3. Core AI validation uses its separate Python 3.14 environment. Version compatibility outside the tested environment is not guaranteed.
License
Weights remain under mit, with upstream terms in LICENSE. Converter/runtime additions are MIT licensed (CODE_LICENSE). No new task training, safety certification or commercial license is implied.