Copy of Xenova/multilingual-e5-small @ 761b726dd3 (unchanged, mit)
Browse files- .gitattributes +1 -0
- README.md +27 -0
- UPSTREAM_README.md +24 -0
- config.json +25 -0
- onnx/model_quantized.onnx +3 -0
- quant_config.json +30 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +9 -0
- tokenizer.json +3 -0
- tokenizer_config.json +20 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: intfloat/multilingual-e5-small
|
| 4 |
+
tags:
|
| 5 |
+
- chatpanel
|
| 6 |
+
- onnx
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# multilingual-e5-small
|
| 10 |
+
|
| 11 |
+
An unchanged copy of [Xenova/multilingual-e5-small](https://huggingface.co/Xenova/multilingual-e5-small) at commit `761b726dd34fb83930e26aab4e9ac3899aa1fa78`, hosted by ChatPanel so the ChatPanel gateway downloads the models it runs from one place.
|
| 12 |
+
Nothing here was retrained, converted or edited — the files are byte-for-byte the upstream ones.
|
| 13 |
+
|
| 14 |
+
- **Licence:** `mit`, the upstream licence, unchanged.
|
| 15 |
+
- **Base model:** [intfloat/multilingual-e5-small](https://huggingface.co/intfloat/multilingual-e5-small) — the credit for the model belongs to its authors.
|
| 16 |
+
- **Upstream:** [Xenova/multilingual-e5-small](https://huggingface.co/Xenova/multilingual-e5-small) at commit `761b726dd34fb83930e26aab4e9ac3899aa1fa78`.
|
| 17 |
+
- **Upstream model card:** `UPSTREAM_README.md`, kept as published.
|
| 18 |
+
|
| 19 |
+
Files (SHA-256):
|
| 20 |
+
|
| 21 |
+
- `config.json` — `cb99455288675345e1a4f411438d5d0adbba5fbd3a67ea4fb03c015433b996c1`
|
| 22 |
+
- `onnx/model_quantized.onnx` — `f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193`
|
| 23 |
+
- `quant_config.json` — `59d175f15264115f18c698d76e443b5d49fc6c8c599911c421405ef4f236e87d`
|
| 24 |
+
- `sentencepiece.bpe.model` — `cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865`
|
| 25 |
+
- `special_tokens_map.json` — `d05497f1da52c5e09554c0cd874037a083e1dc1b9cfd48034d1c717f1afc07a7`
|
| 26 |
+
- `tokenizer.json` — `0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39`
|
| 27 |
+
- `tokenizer_config.json` — `a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b`
|
UPSTREAM_README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: intfloat/multilingual-e5-small
|
| 3 |
+
library_name: transformers.js
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
https://huggingface.co/intfloat/multilingual-e5-small with ONNX weights to be compatible with Transformers.js.
|
| 7 |
+
|
| 8 |
+
## Usage (Transformers.js)
|
| 9 |
+
|
| 10 |
+
If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
|
| 11 |
+
```bash
|
| 12 |
+
npm i @huggingface/transformers
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
**Example:** Run feature extraction.
|
| 16 |
+
|
| 17 |
+
```js
|
| 18 |
+
import { pipeline } from '@huggingface/transformers';
|
| 19 |
+
|
| 20 |
+
const extractor = await pipeline('feature-extraction', 'Xenova/multilingual-e5-small');
|
| 21 |
+
const output = await extractor('This is a simple test.');
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
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](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
|
config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "intfloat/multilingual-e5-small",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 384,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 1536,
|
| 13 |
+
"layer_norm_eps": 1e-12,
|
| 14 |
+
"max_position_embeddings": 512,
|
| 15 |
+
"model_type": "bert",
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_hidden_layers": 12,
|
| 18 |
+
"pad_token_id": 0,
|
| 19 |
+
"position_embedding_type": "absolute",
|
| 20 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 21 |
+
"transformers_version": "4.31.0.dev0",
|
| 22 |
+
"type_vocab_size": 2,
|
| 23 |
+
"use_cache": true,
|
| 24 |
+
"vocab_size": 250037
|
| 25 |
+
}
|
onnx/model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193
|
| 3 |
+
size 118308185
|
quant_config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"per_channel": true,
|
| 3 |
+
"reduce_range": true,
|
| 4 |
+
"per_model_config": {
|
| 5 |
+
"model": {
|
| 6 |
+
"op_types": [
|
| 7 |
+
"Transpose",
|
| 8 |
+
"Add",
|
| 9 |
+
"Unsqueeze",
|
| 10 |
+
"Cast",
|
| 11 |
+
"Concat",
|
| 12 |
+
"Sub",
|
| 13 |
+
"Sqrt",
|
| 14 |
+
"Pow",
|
| 15 |
+
"Gather",
|
| 16 |
+
"ReduceMean",
|
| 17 |
+
"Div",
|
| 18 |
+
"Reshape",
|
| 19 |
+
"Softmax",
|
| 20 |
+
"Mul",
|
| 21 |
+
"Constant",
|
| 22 |
+
"Shape",
|
| 23 |
+
"Slice",
|
| 24 |
+
"Erf",
|
| 25 |
+
"MatMul"
|
| 26 |
+
],
|
| 27 |
+
"weight_type": "QInt8"
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
| 3 |
+
size 5069051
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"cls_token": "<s>",
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"mask_token": "<mask>",
|
| 6 |
+
"pad_token": "<pad>",
|
| 7 |
+
"sep_token": "</s>",
|
| 8 |
+
"unk_token": "<unk>"
|
| 9 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39
|
| 3 |
+
size 17082730
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"clean_up_tokenization_spaces": true,
|
| 4 |
+
"cls_token": "<s>",
|
| 5 |
+
"eos_token": "</s>",
|
| 6 |
+
"mask_token": {
|
| 7 |
+
"__type": "AddedToken",
|
| 8 |
+
"content": "<mask>",
|
| 9 |
+
"lstrip": true,
|
| 10 |
+
"normalized": true,
|
| 11 |
+
"rstrip": false,
|
| 12 |
+
"single_word": false
|
| 13 |
+
},
|
| 14 |
+
"model_max_length": 512,
|
| 15 |
+
"pad_token": "<pad>",
|
| 16 |
+
"sep_token": "</s>",
|
| 17 |
+
"sp_model_kwargs": {},
|
| 18 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
| 19 |
+
"unk_token": "<unk>"
|
| 20 |
+
}
|