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
Fix model card text copied from other models' templates
Browse files- README.ja.md +3 -3
- README.md +3 -3
README.ja.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
|
| 11 |
MLXでネイティブに実装したもので、テンソル名は元の推論モデルのものをそのまま使っています。この独自ランタイムは、mlx-lmのテキスト生成モデルではありません。
|
| 12 |
|
| 13 |
-
同梱のMLXランタイムには、Apple Silicon搭載のMacが必要です。入力の長さは可変です(元モデルの上限まで)。
|
| 14 |
|
| 15 |
```bash
|
| 16 |
pip install huggingface_hub mlx numpy transformers sentencepiece
|
|
@@ -35,9 +35,9 @@ print(np.array(output).shape)
|
|
| 35 |
|
| 36 |
元のPyTorch実装と、決定的な6ケースで比較しました。出力の絶対差の最大値は**0.0010339618**、コサイン類似度の最小値は**0.99999876**です。各ケースは`validation.json`を見てください。これは変換前後の一致を確かめるチェックで、タスク性能やレイテンシーを測る本格的なベンチマークではありません。
|
| 37 |
|
| 38 |
-
テキスト向けのテストは、英語の感情表現、中立的な検索用テキスト、日本語、空の入力、切り詰めを扱います。
|
| 39 |
|
| 40 |
-
Core ML/Core AI
|
| 41 |
|
| 42 |
## 再現性
|
| 43 |
|
|
|
|
| 10 |
|
| 11 |
MLXでネイティブに実装したもので、テンソル名は元の推論モデルのものをそのまま使っています。この独自ランタイムは、mlx-lmのテキスト生成モデルではありません。
|
| 12 |
|
| 13 |
+
同梱のMLXランタイムには、Apple Silicon搭載のMacが必要です。入力の長さは可変です(元モデルの上限まで)。Core ML版とCore AI版は固定形状です。
|
| 14 |
|
| 15 |
```bash
|
| 16 |
pip install huggingface_hub mlx numpy transformers sentencepiece
|
|
|
|
| 35 |
|
| 36 |
元のPyTorch実装と、決定的な6ケースで比較しました。出力の絶対差の最大値は**0.0010339618**、コサイン類似度の最小値は**0.99999876**です。各ケースは`validation.json`を見てください。これは変換前後の一致を確かめるチェックで、タスク性能やレイテンシーを測る本格的なベンチマークではありません。
|
| 37 |
|
| 38 |
+
テキスト向けのテストは、英語の感情表現、中立的な検索用テキスト、日本語、空の入力、切り詰めを扱います。
|
| 39 |
|
| 40 |
+
Core ML/Core AI版は、バッチ1、系列長128です。トークン化では128にパディング/切り詰めをしてください。MLX/独自GGUFは、追加の学習をせず、元の最大コンテキストをそのまま保っています。
|
| 41 |
|
| 42 |
## 再現性
|
| 43 |
|
README.md
CHANGED
|
@@ -17,7 +17,7 @@ Conversion of [microsoft/mdeberta-v3-base](https://huggingface.co/microsoft/mdeb
|
|
| 17 |
|
| 18 |
Native MLX implementation with the source inference-model tensor names. This custom runtime is not an mlx-lm text-generation model.
|
| 19 |
|
| 20 |
-
Apple Silicon Mac required by the included MLX runtime. Inputs may vary in length (up to the source limit);
|
| 21 |
|
| 22 |
```bash
|
| 23 |
pip install huggingface_hub mlx numpy transformers sentencepiece
|
|
@@ -42,9 +42,9 @@ print(np.array(output).shape)
|
|
| 42 |
|
| 43 |
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.
|
| 44 |
|
| 45 |
-
Text tests cover English emotions, neutral retrieval text, Japanese, empty input and truncation.
|
| 46 |
|
| 47 |
-
Core ML/Core AI
|
| 48 |
|
| 49 |
## Reproducibility
|
| 50 |
|
|
|
|
| 17 |
|
| 18 |
Native MLX implementation with the source inference-model tensor names. This custom runtime is not an mlx-lm text-generation model.
|
| 19 |
|
| 20 |
+
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.
|
| 21 |
|
| 22 |
```bash
|
| 23 |
pip install huggingface_hub mlx numpy transformers sentencepiece
|
|
|
|
| 42 |
|
| 43 |
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.
|
| 44 |
|
| 45 |
+
Text tests cover English emotions, neutral retrieval text, Japanese, empty input and truncation.
|
| 46 |
|
| 47 |
+
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.
|
| 48 |
|
| 49 |
## Reproducibility
|
| 50 |
|