tnraro/distiluse-base-multilingual-cased-v1
By tnraro · ↓ 2 · ♥ 0 · Updated 2024-02-01
What's in this repo
This page lists the files in tnraro/distiluse-base-multilingual-cased-v1, including model.onnx, model_quantized.onnx.
- 2 ONNX models (.onnx files)
- 11 files, including 6 .json, 2 .onnx, 1 .md, 1 .txt
- Last updated 2024-02-01
ONNX files
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
This is ONNX weights that solved #1519 for Xenova/distiluse-base-multilingual-cased-v1.
Maybe the code in transformers.js needs to be modified as below. (If you are familiar with this area, please help)
@xenova/transformers@2.14.3 /src/pipelines.js:1190
+ if (outputs.sentence_embedding && outputs.sentence_embedding.dims.length === 2) {
+ outputs.sentence_embedding.dims[2] = outputs.sentence_embedding.dims[1]
+ outputs.sentence_embedding.dims[1] = 1
+ }
/** @type {Tensor} */
- let result = outputs.last_hidden_state ?? outputs.logits;
+ let result = outputs.last_hidden_state ?? outputs.logits ?? outputs.sentence_embedding;
Model info
Created: 2024-02-01
Updated: 2024-02-01
View on Hugging FaceFiles (11)
Related models
More from tnraro
No other models by this author.