An ONNX export of microsoft/llmlingua-2-bert-base-multilingual-cased-meetingbank (LLMLingua-2: Pan et al., 2024, https://arxiv.org/abs/2403.12968), so that it can be run with ONNX Runtime without PyTorch. Microsoft publishes only the PyTorch weights.
logits[..., 1] = keep the token), used to drop the least informative words of a text.input_ids, attention_mask, token_type_ids (int64, shape [batch, seq], up to 512). Output: logits [batch, seq, 2].tokenizer.json, vocab.txt).torch.onnx.export (PyTorch 2.15, transformers 5.23, opset 17, dynamic batch and sequence axes) over AutoModelForTokenClassification,
inputs input_ids, attention_mask, token_type_ids, output logits. Checked against the PyTorch model on texts of 5, 31, 250 and 512
tokens: the largest difference in the logits is 4.5e-06.
Apache-2.0, as the original model. See LICENSE and NOTICE. The MeetingBank data the model was trained on is CC BY-NC-SA 4.0; see the
note in NOTICE.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo xuxo1024/llmlingua-2-bert-base-multilingual-cased-meetingbank-onnx ./model-foldermicrosoft/llmlingua-2-bert-base-multilingual-cased-meetingbank