Text Classification
Transformers
ONNX
Safetensors
modernbert
fill-mask
ai-detection
machine-generated-text
mmbert
text-embeddings-inference
Run this model with HF Jobs
Run ElderRyan/ProseGuard-mmBERT-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ElderRyan/ProseGuard-mmBERT-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ElderRyan/ProseGuard-mmBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ElderRyan/ProseGuard-mmBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ElderRyan/ProseGuard-mmBERT-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("ElderRyan/ProseGuard-mmBERT-base") model = AutoModelForMaskedLM.from_pretrained("ElderRyan/ProseGuard-mmBERT-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Release ProseGuard-mmBERT-base
Browse filesFiles changed (10)
- .gitattributes+3-33
- LICENSEAdded+26
- README.mdAdded+92
- calibration.jsonAdded+65
- config.jsonAdded+97
- model.safetensorsAdded+3
- modeling_proseguard.pyAdded+177
- onnx/model_int8.onnxAdded+3
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+31
12345678910111213141516171819202122232412627282930234323334355*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text1234567891011121314151617181920212223242526MIT License
Copyright (c) 2026 Ryan Kung, Ryan Institute of Science and Technology (rist.edu.rs)
Upstream Pretrained Backbone Attribution:This model builds upon the pretrained `mmBERT` encoder architecture and weights:Copyright (c) 2025 Johns Hopkins University Center for Language and Speech Processing (jhu-clsp)("mmBERT: A Modern Multilingual Encoder", Marone et al., arXiv:2509.06888), licensed under MIT.
Permission is hereby granted, free of charge, to any person obtaining a copyof this software, model weights, and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: mitbase_model: jhu-clsp/mmBERT-baselanguage: - en - zh - ja - multilingualpipeline_tag: text-classificationlibrary_name: transformerstags: - ai-detection - machine-generated-text - modernbert - mmbert - onnx---
# ProseGuard-mmBERT-base
**ProseGuard-mmBERT-base** is a high-precision multilingual AI text detector and token-level mixed-authorship attribution model fine-tuned on top of the pretrained [`jhu-clsp/mmBERT-base`](https://huggingface.co/jhu-clsp/mmBERT-base) encoder (Marone et al., 2025).
It serves as the server-grade verifier and distillation teacher in the ProseGuard model family (alongside [`ElderRyan/ProseGuard-ML`](https://huggingface.co/ElderRyan/ProseGuard-ML) and [`ElderRyan/ProseGuard-mmBERT-small`](https://huggingface.co/ElderRyan/ProseGuard-mmBERT-small)):* **`model.safetensors` (`1.2 GB`)**: Full FP32 PyTorch weights.* **`onnx/model_int8.onnx` (`295.9 MB`)**: Single-file INT8 dynamically quantized ONNX graph (`~247 ms` CPU latency per article on Apple M1 Max, zero PyTorch runtime required).
## Upstream Attribution & Architecture
* **Pretrained Base Encoder**: [`jhu-clsp/mmBERT-base`](https://huggingface.co/jhu-clsp/mmBERT-base) (*mmBERT: A Modern Multilingual Encoder*, Johns Hopkins University CLSP, `arXiv:2509.06888`, MIT License), supporting **8,192 tokens** via RoPE and alternating local/global bidirectional attention across a 256,000-token multilingual vocabulary.* **ProseGuard Multi-Head Extensions**: 1. **Document 3-Way + Continuous Edit-Intensity Head**: Concatenates attention-pooled, AI-salience-pooled, and mean-pooled hidden states to predict `[P(Human), P(AI-Assisted), P(AI-Native)]` and continuous edit intensity $\hat{e} \in [0, 1]$. 2. **Token-Level Attribution & 64-Token Sliding Window Max**: Predicts token-wise AI probabilities and peak 64-token window scores to prevent short AI insertions inside long human articles from being diluted by document-level averaging. 3. **Low-FPR Training Objective**: Trained exclusively on commercially clean MIT / Apache-2.0 / CC-BY-SA multilingual datasets using online `SpanMix` paragraph splicing, Markdown/punctuation de-shortcutting, and `12x` asymmetric false-positive penalties on mined hard human technical and academic prose.
## Benchmark Results
On the strict zero-shot `OOD-2026` benchmark (`textsightai/ai-text-detection-benchmark-2026`, 644 pre-2022 human passages + 56 genre-matched 2026 frontier LLM outputs with headings and bullet points suppressed), `ProseGuard-mmBERT-base` achieves **0.9987 AUROC** and **100.0% recall at 1% FPR** across all five frontier generators, including **12/12 (100%)** on `claude-opus-5` and **8/8 (100%)** on `qwen-3.8-27b`:
| Benchmark | Split Relation | `ProseGuard-ML` (`679 KB` WASM) | `ProseGuard-mmBERT-small` (`51.8 MB` Web Q4) | **`ProseGuard-mmBERT-base`** (`295.9 MB` INT8) || :--- | :--- | :---: | :---: | :---: || **`OOD-2026` Overall (`AUROC` / `TPR@1%FPR`)** | Zero-shot | `0.9098` / `39.3%` | `0.9832` / `76.8%` | **`0.9987` / `100.0%`** || **`OOD-2026` `claude-opus-5` (`@1%FPR` / Mean)** | Zero-shot (`n=12`) | `0.0%` (`19.6%`) | `41.7%` (`95.1%`) | **`100.0%` (`95.7%`)** || **`OOD-2026` `qwen-3.8-27b` (`@1%FPR` / Mean)** | Zero-shot (`n=8`) | `37.5%` (`53.3%`) | `37.5%` (`94.7%`) | **`100.0%` (`97.5%`)** || **`OOD-2026` ESL Biomedical FPR (`@1%FPR`)** | Zero-shot (`n=183`) | `1.09%` | `0.00%` | **`0.55%` (1/183)** || **`NLPCC-2025` ZH (`AUROC` / `TPR@1%` / `0.1%`)** | Zero-shot | `0.9647` / `58.3%` / `24.9%` | `0.9840` / `75.5%` / `52.4%` | **`0.9922` / `90.3%` / `81.6%`** || **`C-ReD` ZH (`AUROC` / `TPR@1%` / `0.1%`)** | Held-out test | `0.9985` / `97.1%` / `96.3%` | `0.9990` / `96.8%` / `96.5%` | **`0.9989` / `97.5%` / `96.4%`** || **`AnxForever` ZH Polish Recall (`@1%FPR`)** | Held-out test | `59.9%` | `72.7%` | **`74.2%`** |
## Quick Start (ONNX Runtime)
```pythonimport jsonimport numpy as npimport onnxruntime as ortfrom transformers import AutoTokenizer
repo_dir = "./ProseGuard-mmBERT-base"tokenizer = AutoTokenizer.from_pretrained(repo_dir)cal = json.load(open(f"{repo_dir}/calibration.json"))["calibration"]sess = ort.InferenceSession(f"{repo_dir}/onnx/model_int8.onnx", providers=["CPUExecutionProvider"])
text = "Paste any English or Chinese article here."enc = tokenizer([text], truncation=True, max_length=2048, return_tensors="np")logits_3way, edit_pred, token_probs, window_max = sess.run( None, {"input_ids": enc["input_ids"], "attention_mask": enc["attention_mask"]})
scaled = logits_3way[0] / cal["temperature"]probs = np.exp(scaled - scaled.max()) / np.exp(scaled - scaled.max()).sum()doc_ai = float(1.0 - probs[0])wb = cal["window_blend"]combined_score = (1.0 - wb) * doc_ai + wb * max(doc_ai, float(window_max[0]))
print({"combined_ai_score": round(combined_score, 4), "probs_human_assisted_ai": probs.round(4).tolist()})```
## Citations
Please cite the upstream `mmBERT` encoder paper when using this model:
```bibtex@article{marone2025mmbert, title={mmBERT: A Modern Multilingual Encoder}, author={Marone, Marc and Weller, Orion and Fleshman, William and Yang, Eugene and Lawrie, Dawn and Van Durme, Benjamin}, journal={arXiv preprint arXiv:2509.06888}, year={2025}}```
## License
MIT License (see [LICENSE](LICENSE)).1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ "backbone": "jhu-clsp/mmBERT-base", "overall": { "n": 2400, "n_human": 896, "n_ai_any": 1504, "auroc": 0.94875, "tpr_at_fpr_5pct": 0.8191, "thr_fpr_5pct": 0.83461, "tpr_at_fpr_1pct": 0.7334, "thr_fpr_1pct": 0.96267, "tpr_at_fpr_0_1pct": 0.6323, "thr_fpr_0_1pct": 0.9819, "n_assisted": 281, "assisted_recall_at_1pct_fpr": 0.2705, "macro_f1_3way": 0.7449, "edit_mae": 0.1495 }, "zh": { "n": 1418, "n_human": 503, "n_ai_any": 915, "auroc": 0.98217, "tpr_at_fpr_5pct": 0.9093, "thr_fpr_5pct": 0.82941, "tpr_at_fpr_1pct": 0.8514, "thr_fpr_1pct": 0.95827, "tpr_at_fpr_0_1pct": 0.8153, "thr_fpr_0_1pct": 0.971, "n_assisted": 133, "assisted_recall_at_1pct_fpr": 0.3684 }, "en": { "n": 982, "n_human": 393, "n_ai_any": 589, "auroc": 0.8815, "tpr_at_fpr_5pct": 0.6757, "thr_fpr_5pct": 0.83827, "tpr_at_fpr_1pct": 0.5535, "thr_fpr_1pct": 0.96909, "tpr_at_fpr_0_1pct": 0.4601, "thr_fpr_0_1pct": 0.9819, "n_assisted": 148, "assisted_recall_at_1pct_fpr": 0.1892 }, "calibration": { "temperature": 1.1456, "window_blend": 0.18, "thresholds": { "global": { "fpr_1pct": 0.96268, "fpr_0_1pct": 0.9819 }, "zh": { "fpr_1pct": 0.95827, "fpr_0_1pct": 0.971 }, "en": { "fpr_1pct": 0.96909, "fpr_0_1pct": 0.9819 } } }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ "transformers_version": "5.25.1", "architectures": [ "ModernBertForMaskedLM" ], "output_hidden_states": false, "return_dict": true, "dtype": "float32", "chunk_size_feed_forward": 0, "is_encoder_decoder": false, "id2label": { "0": "Human", "1": "AI-Assisted", "2": "AI-Native" }, "label2id": { "Human": 0, "AI-Assisted": 1, "AI-Native": 2 }, "problem_type": null, "vocab_size": 256000, "hidden_size": 768, "intermediate_size": 1152, "num_hidden_layers": 22, "num_attention_heads": 12, "hidden_activation": "gelu", "max_position_embeddings": 8192, "initializer_range": 0.02, "initializer_cutoff_factor": 2.0, "norm_eps": 1e-05, "norm_bias": false, "pad_token_id": 0, "eos_token_id": 1, "bos_token_id": 2, "cls_token_id": 1, "sep_token_id": 1, "attention_bias": false, "attention_dropout": 0.0, "layer_types": [ "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "full_attention" ], "rope_parameters": { "sliding_attention": { "rope_type": "default", "rope_theta": 160000 }, "full_attention": { "rope_type": "default", "rope_theta": 160000 } }, "local_attention": 128, "embedding_dropout": 0.0, "mlp_bias": false, "mlp_dropout": 0.0, "decoder_bias": true, "classifier_pooling": "mean", "classifier_dropout": 0.0, "classifier_bias": false, "classifier_activation": "gelu", "deterministic_flash_attn": false, "sparse_prediction": false, "sparse_pred_ignore_index": -100, "tie_word_embeddings": true, "_name_or_path": "jhu-clsp/mmBERT-base", "global_attn_every_n_layers": 3, "gradient_checkpointing": false, "layer_norm_eps": 1e-05, "model_type": "modernbert", "position_embedding_type": "sans_pos", "mask_token_id": 4, "output_attentions": false, "proseguard_architecture": "ProseGuardModel", "proseguard_base_model": "jhu-clsp/mmBERT-base"}123version https://git-lfs.github.com/spec/v1oid sha256:52d68f3cc900733e6b2ed0f11a298e9d7755b987e82130acb5c25acceb83c2bbsize 1236059216123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177#!/usr/bin/env python3"""ProseGuard Multi-Head Multilingual Long-Context AI Detector (`ProseGuardModel`).
Built upon the pretrained `mmBERT` encoder (Marone et al., JHU CLSP, arXiv:2509.06888, MIT): 1. Backbone encoder with native PyTorch SDPA (`attn_implementation="sdpa"`) for Metal MPS, CUDA & ONNX. 2. Granular Token/Span Head: predicts per-token AI probability `s_t in [0, 1]` and computes branch-free 64-token sliding-window max AI score (`window_max_prob`). 3. Dual-Pooled Document & Edit-Intensity Head: combines attention-pooled, salience-pooled, and mean-pooled representations to output: - `logits_3way`: [Human (0), AI-Assisted/Polished (1), AI-Native (2)] - `edit_pred`: continuous AI intervention degree in [0, 1] 4. Asymmetric FPR Loss: penalizes false positives on Human documents (especially mined `hard_human` technical/academic prose) to anchor ultra-low FPR (0.1% - 1%)."""
from __future__ import annotations
import torchimport torch.nn as nnimport torch.nn.functional as Ffrom transformers import AutoConfig, AutoModel
class ProseGuardModel(nn.Module): def __init__(self, backbone_name: str = "jhu-clsp/mmBERT-small", dropout: float = 0.1) -> None: super().__init__() self.backbone_name = backbone_name self.config = AutoConfig.from_pretrained(backbone_name) if hasattr(self.config, "reference_compile"): self.config.reference_compile = False
self.encoder = AutoModel.from_pretrained( backbone_name, config=self.config, attn_implementation="sdpa", ) hidden_size: int = self.config.hidden_size self.drop = nn.Dropout(dropout)
# Head 1: Token-level AI attribution head self.token_head = nn.Sequential( nn.Linear(hidden_size, hidden_size // 2), nn.GELU(), nn.Linear(hidden_size // 2, 1), )
# Learned global attention pooling gate self.attn_gate = nn.Linear(hidden_size, 1)
# Head 2: Document 3-way classification + continuous edit-intensity regression self.doc_proj = nn.Sequential( nn.Linear(hidden_size * 3, hidden_size), nn.LayerNorm(hidden_size), nn.GELU(), nn.Dropout(dropout), ) self.cls_3way = nn.Linear(hidden_size, 3) self.edit_head = nn.Linear(hidden_size, 1)
def forward( self, input_ids: torch.Tensor, attention_mask: torch.Tensor, ) -> dict[str, torch.Tensor]: enc_out = self.encoder(input_ids=input_ids, attention_mask=attention_mask) h = self.drop(enc_out.last_hidden_state) # [B, L, D]
mask_f = attention_mask.to(h.dtype) mask_bool = attention_mask.bool()
# 1. Per-token AI logits & probabilities token_logits = self.token_head(h).squeeze(-1) token_probs = torch.sigmoid(token_logits) * mask_f
# 2. Mean pooling denom = mask_f.sum(dim=1, keepdim=True).clamp(min=1.0) h_mean = (h * mask_f.unsqueeze(-1)).sum(dim=1) / denom
# 3. Learned attention pooling gate_logits = self.attn_gate(h).squeeze(-1).masked_fill(~mask_bool, -1e4) attn_weights = torch.softmax(gate_logits, dim=-1) h_attn = torch.bmm(attn_weights.unsqueeze(1), h).squeeze(1)
# 4. Salience-weighted pooling (amplifies localized AI spans inside long human articles) salience_logits = token_logits.detach().masked_fill(~mask_bool, -1e4) salience_weights = torch.softmax(salience_logits, dim=-1) h_salience = torch.bmm(salience_weights.unsqueeze(1), h).squeeze(1)
doc_feat = self.doc_proj(torch.cat([h_attn, h_salience, h_mean], dim=-1)) logits_3way = self.cls_3way(doc_feat) edit_pred = torch.sigmoid(self.edit_head(doc_feat).squeeze(-1))
# 5. Branch-free sliding 64-token window max AI probability (ONNX dynamic-length safe) tp_pad = F.pad(token_probs, (0, 64), value=0.0).unsqueeze(1) mk_pad = F.pad(mask_f, (0, 64), value=0.0).unsqueeze(1) win_sum = F.avg_pool1d(tp_pad, kernel_size=64, stride=32).squeeze(1) * 64.0 win_cnt = F.avg_pool1d(mk_pad, kernel_size=64, stride=32).squeeze(1) * 64.0 valid_win = win_cnt >= 8.0 win_scores = torch.where( valid_win, win_sum / win_cnt.clamp(min=8.0), torch.zeros_like(win_sum), ) window_max_prob = torch.maximum( win_scores.max(dim=-1).values, token_probs.sum(dim=-1) / denom.squeeze(-1), )
probs_3way = torch.softmax(logits_3way.float(), dim=-1) ai_score = 1.0 - probs_3way[:, 0]
return { "logits_3way": logits_3way, "probs_3way": probs_3way, "ai_score": ai_score, "edit_pred": edit_pred, "token_logits": token_logits, "token_probs": token_probs, "window_max_prob": window_max_prob, }
class ProseGuardMultiTaskLoss(nn.Module): def __init__( self, fpr_penalty_weight: float = 8.0, edit_loss_weight: float = 0.6, token_loss_weight: float = 0.5, ) -> None: super().__init__() self.fpr_penalty_weight = fpr_penalty_weight self.edit_loss_weight = edit_loss_weight self.token_loss_weight = token_loss_weight
def forward( self, outputs: dict[str, torch.Tensor], labels_3way: torch.Tensor, edit_targets: torch.Tensor, token_targets: torch.Tensor, token_loss_mask: torch.Tensor, sample_weights: torch.Tensor, ) -> tuple[torch.Tensor, dict[str, float]]: logits_3way = outputs["logits_3way"].float() probs_3way = torch.softmax(logits_3way, dim=-1)
ce_per_sample = F.cross_entropy(logits_3way, labels_3way, reduction="none") loss_ce = (ce_per_sample * sample_weights).mean()
is_human = (labels_3way == 0).float() p_non_human = 1.0 - probs_3way[:, 0] fp_excess = F.relu(p_non_human - 0.05) loss_fpr = (is_human * sample_weights * (fp_excess ** 2)).mean() * self.fpr_penalty_weight
edit_pred = outputs["edit_pred"].float() loss_edit = ( F.smooth_l1_loss(edit_pred, edit_targets.float(), reduction="none", beta=0.1) * sample_weights ).mean() * self.edit_loss_weight
token_logits = outputs["token_logits"].float() bce_tok = F.binary_cross_entropy_with_logits( token_logits, token_targets.float(), reduction="none" ) valid_tok_denom = token_loss_mask.float().sum().clamp(min=1.0) loss_tok = (bce_tok * token_loss_mask.float()).sum() / valid_tok_denom * self.token_loss_weight
total = loss_ce + loss_fpr + loss_edit + loss_tok metrics = { "loss": float(total.detach().item()), "ce": float(loss_ce.detach().item()), "fpr_pen": float(loss_fpr.detach().item()), "edit": float(loss_edit.detach().item()), "tok": float(loss_tok.detach().item()), } return total, metrics123version https://git-lfs.github.com/spec/v1oid sha256:b52632e4af4b69ac2c78db2bfb1addee8320f5fdcd276a5cf091aa06f0688da1size 310254800123version https://git-lfs.github.com/spec/v1oid sha256:83e5d55c3dc3b21ec82b43e2fd1854dee6e0542508abc965743a0c66c2b096absize 3436344212345678910111213141516171819202122232425262728293031{ "backend": "tokenizers", "bos_token": "<bos>", "clean_up_tokenization_spaces": false, "cls_token": "<bos>", "eos_token": "<eos>", "extra_special_tokens": [ "<start_of_turn>", "<end_of_turn>" ], "is_local": true, "local_files_only": false, "mask_token": "<mask>", "max_length": 1280, "model_input_names": [ "input_ids", "attention_mask" ], "model_max_length": 8192, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "<eos>", "spaces_between_special_tokens": false, "stride": 0, "tokenizer_class": "TokenizersBackend", "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}.gitattributes+3-33
LICENSEAdded+26
README.mdAdded+92
calibration.jsonAdded+65
config.jsonAdded+97
model.safetensorsAdded+3
modeling_proseguard.pyAdded+177
onnx/model_int8.onnxAdded+3
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+31