ONNX Model Zoo

masato12/bert-base-japanese-v3-marc_ja

By masato12 · ↓ 3 · ♥ 1 · Updated 2024-07-14

What's in this repo

This page lists the files in masato12/bert-base-japanese-v3-marc_ja, including model.onnx, model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 9 files, including 4 .json, 2 .onnx, 1 .md, 1 .txt
  • Last updated 2024-07-14

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

https://huggingface.co/llm-book/bert-base-japanese-v3-marc_ja with ONNX weights to be compatible with Transformers PHP

bert-base-japanese-v3-marc_ja

「大規模言語モデル入門」の第5章で紹介している(感情分析)のモデルです。 cl-tohoku/bert-base-japanese-v3をJGLUEのMARC-jaデータセットでファインチューニングして構築されています。

関連リンク

使い方

from transformers import pipeline

text_classification_pipeline = pipeline(model="llm-book/bert-base-japanese-v3-marc_ja")
print(text_classification_pipeline("世界には言葉がわからなくても感動する音楽がある。")[0])
# {'label': 'positive', 'score': 0.9993619322776794}

ライセンス

Apache License 2.0

Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using 🤗 Optimum and structuring your repo like this one (with ONNX weights located in a subfolder named onnx).

Model info

text-classification Transformers PHP
Transformers PHP onnx bert text-classification ja dataset:llm-book/JGLUE license:apache-2.0 region:us
↓ 3 ♥ 1

Created: 2024-07-14

Updated: 2024-07-14

View on Hugging Face

Files (9)

.gitattributes
README.md
config.json
onnx/model.onnx ONNX
onnx/model_quantized.onnx ONNX
quantize_config.json
special_tokens_map.json
tokenizer_config.json
vocab.txt

Related models