bert-base-ner-mlx / SECURITY.md
masahiroid's picture
SECURITY.md: add model-audit-lite DOI (Zenodo)
7b6042e verified
|
Raw History Blame Contribute Delete
4.54 kB
# Security / セキュリティー
[English](#english) | [日本語](#日本語)
## English
**Verified conversion.** `bert-base-ner-mlx` was audited on 2026-10-03 with [model-audit-lite](https://github.com/masahiroid/model-audit-lite) v0.5.2 against its upstream, [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER). Everything below can be re-run by you with one command.
### What was verified
| Check | Result |
|---|---|
| Weight format | `safetensors` only. No pickle-format files (`.bin` / `.pt` / `.pkl`), the format family that can execute code when loaded. |
| Lineage | A CycloneDX 1.6 ML-BOM ([`bom.json`](bom.json)) records every file's SHA-256 and the conversion chain back to [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) (audited revision `eb887dd3df70`). |
| Bundled code | Added by this conversion (not in upstream): `bert_ner_mlx.py`. Plain source written for this conversion (inference / export helpers); it runs only if you import or execute it. Hashes below; read before use. |
| Safety behavior | Not applicable: this is not an instruction-following chat model, so there is no instruction behavior to probe. |
### Why use this build rather than another conversion of the same model
You normally cannot tell what a conversion you did not make has changed. Here you can: every file is hashed, the lineage back to upstream is machine-readable, and the audit is reproducible with one command. The command is at the bottom.
### Scope
This audit covers the distribution (files, lineage). It does not inspect the weights for backdoors. Model behavior comes from the upstream model; format conversion and quantization can shift it in either direction.
### Checksums (SHA-256)
```
7005e3395d992d9cb205f67edcf548e1bdff18ec3d0ac43a40a84d165a9cddf1 bert_ner_mlx.py
d0eaa685614a6709da955d074aaaac5d67c0b6f3d8c21c6f81321dce74c203fd model.safetensors
```
### Reproduce
```bash
pip install model-audit-lite
model-audit-lite scan masahiroid/bert-base-ner-mlx --base dslim/bert-base-NER
```
## 日本語
**検証済みの変換版です。** `bert-base-ner-mlx` は 2026-10-03 に [model-audit-lite](https://github.com/masahiroid/model-audit-lite) v0.5.2 で、変換元 [`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) と突き合わせて監査しました。以下はすべて、1コマンドであなた自身が再実行できます。
### 検証した内容
| 項目 | 結果 |
|---|---|
| 重みの形式 | `safetensors` のみ。pickle形式(`.bin` / `.pt` / `.pkl`)のファイルはありません。読み込み時にコードを実行しうる形式群です。 |
| 系譜 | CycloneDX 1.6 の ML-BOM([`bom.json`](bom.json))に、全ファイルのSHA-256と、[`dslim/bert-base-NER`](https://huggingface.co/dslim/bert-base-NER) までの変換の経路を記録しています(監査したリビジョン `eb887dd3df70`)。 |
| 同梱コード | この変換で追加(変換元には無い): `bert_ner_mlx.py`。この変換のために書いた平文のソース(推論・変換の補助)で、importや実行をしない限り動きません。ハッシュは下記。使う前に中身をご確認ください。 |
| 安全性の挙動 | 対象外: 指示に従うチャットモデルではないため、指示への挙動を試験する対象がありません。 |
### 同じモデルの他の変換版ではなく、これを選ぶ理由
自分で作っていない変換版が何を変えたのかは、普通は分かりません。この版は、全ファイルにハッシュがあり、変換元までの系譜が機械可読で、1コマンドで再現できます。 再現のコマンドは末尾にあります。
### 範囲
この監査の対象は、配布物(ファイル・系譜)です。重みのバックドアの検査は含みません。モデルの挙動は変換元に由来し、形式変換や量子化で良くも悪くも変わりうるため、変換前後の差は保証しません。
### チェックサム (SHA-256)
上記の英語セクションと同じです([`bom.json`](bom.json) にも機械可読で記載)。
### 再現方法
上記の英語セクションと同じコマンドです。
---
[model-audit-lite](https://github.com/masahiroid/model-audit-lite) (MIT License; cite: [DOI 10.5281/zenodo.23122770](https://doi.org/10.5281/zenodo.23122770)) — you can run the same audit on your own models. / 自分のモデルにも同じ監査を適用できます。