Upload 6 files
Browse files- .gitattributes +1 -0
- README.md +57 -0
- config.json +3 -0
- model.safetensors +3 -0
- modules.json +14 -0
- pipeline.skops +3 -0
- tokenizer.json +0 -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 |
+
pipeline.skops filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: unknown
|
| 3 |
+
library_name: model2vec
|
| 4 |
+
license: mit
|
| 5 |
+
model_name: model_da_m2v-256-danish-bert-base-intent-classifier
|
| 6 |
+
tags:
|
| 7 |
+
- embeddings
|
| 8 |
+
- static-embeddings
|
| 9 |
+
- sentence-transformers
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# model_da_m2v-256-danish-bert-base-intent-classifier Model Card
|
| 13 |
+
|
| 14 |
+
This [Model2Vec](https://github.com/MinishLab/model2vec) model is a fine-tuned version of the [unknown](https://huggingface.co/unknown) Model2Vec model. It also includes a classifier head on top.
|
| 15 |
+
|
| 16 |
+
## Installation
|
| 17 |
+
|
| 18 |
+
Install model2vec using pip:
|
| 19 |
+
```
|
| 20 |
+
pip install model2vec[inference]
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Usage
|
| 24 |
+
Load this model using the `from_pretrained` method:
|
| 25 |
+
```python
|
| 26 |
+
from model2vec.inference import StaticModelPipeline
|
| 27 |
+
|
| 28 |
+
# Load a pretrained Model2Vec model
|
| 29 |
+
model = StaticModelPipeline.from_pretrained("model_da_m2v-256-danish-bert-base-intent-classifier")
|
| 30 |
+
|
| 31 |
+
# Predict labels
|
| 32 |
+
predicted = model.predict(["Example sentence"])
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Additional Resources
|
| 36 |
+
|
| 37 |
+
- [Model2Vec Repo](https://github.com/MinishLab/model2vec)
|
| 38 |
+
- [Model2Vec Base Models](https://huggingface.co/collections/minishlab/model2vec-base-models-66fd9dd9b7c3b3c0f25ca90e)
|
| 39 |
+
- [Model2Vec Results](https://github.com/MinishLab/model2vec/tree/main/results)
|
| 40 |
+
- [Model2Vec Tutorials](https://github.com/MinishLab/model2vec/tree/main/tutorials)
|
| 41 |
+
- [Website](https://minishlab.github.io/)
|
| 42 |
+
|
| 43 |
+
## Library Authors
|
| 44 |
+
|
| 45 |
+
Model2Vec was developed by the [Minish Lab](https://github.com/MinishLab) team consisting of [Stephan Tulkens](https://github.com/stephantul) and [Thomas van Dongen](https://github.com/Pringled).
|
| 46 |
+
|
| 47 |
+
## Citation
|
| 48 |
+
|
| 49 |
+
Please cite the [Model2Vec repository](https://github.com/MinishLab/model2vec) if you use this model in your work.
|
| 50 |
+
```
|
| 51 |
+
@article{minishlab2024model2vec,
|
| 52 |
+
author = {Tulkens, Stephan and {van Dongen}, Thomas},
|
| 53 |
+
title = {Model2Vec: Fast State-of-the-Art Static Embeddings},
|
| 54 |
+
year = {2024},
|
| 55 |
+
url = {https://github.com/MinishLab/model2vec}
|
| 56 |
+
}
|
| 57 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"normalize": true
|
| 3 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6423ba4eaf370e89f75678b546c58f0e9c83ced5b4dd78c2dd0c88c936a95750
|
| 3 |
+
size 122308696
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": ".",
|
| 6 |
+
"type": "sentence_transformers.models.StaticEmbedding"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Normalize",
|
| 12 |
+
"type": "sentence_transformers.models.Normalize"
|
| 13 |
+
}
|
| 14 |
+
]
|
pipeline.skops
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57192e73e7334f3d13e0a34d39090a4b4ea0744e6348a1b0652fab3981b5b80e
|
| 3 |
+
size 5059896
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|