mirror of
https://www.modelscope.cn/Wan-AI/Wan2.2-Animate-14B.git
synced 2026-04-03 03:22:56 +08:00
Upload to Wan-AI/Wan2.2-Animate-14B on ModelScope hub
This commit is contained in:
200
xlm-roberta-large/README.md
Normal file
200
xlm-roberta-large/README.md
Normal file
@ -0,0 +1,200 @@
|
||||
---
|
||||
tags:
|
||||
- exbert
|
||||
language:
|
||||
- multilingual
|
||||
- af
|
||||
- am
|
||||
- ar
|
||||
- as
|
||||
- az
|
||||
- be
|
||||
- bg
|
||||
- bn
|
||||
- br
|
||||
- bs
|
||||
- ca
|
||||
- cs
|
||||
- cy
|
||||
- da
|
||||
- de
|
||||
- el
|
||||
- en
|
||||
- eo
|
||||
- es
|
||||
- et
|
||||
- eu
|
||||
- fa
|
||||
- fi
|
||||
- fr
|
||||
- fy
|
||||
- ga
|
||||
- gd
|
||||
- gl
|
||||
- gu
|
||||
- ha
|
||||
- he
|
||||
- hi
|
||||
- hr
|
||||
- hu
|
||||
- hy
|
||||
- id
|
||||
- is
|
||||
- it
|
||||
- ja
|
||||
- jv
|
||||
- ka
|
||||
- kk
|
||||
- km
|
||||
- kn
|
||||
- ko
|
||||
- ku
|
||||
- ky
|
||||
- la
|
||||
- lo
|
||||
- lt
|
||||
- lv
|
||||
- mg
|
||||
- mk
|
||||
- ml
|
||||
- mn
|
||||
- mr
|
||||
- ms
|
||||
- my
|
||||
- ne
|
||||
- nl
|
||||
- no
|
||||
- om
|
||||
- or
|
||||
- pa
|
||||
- pl
|
||||
- ps
|
||||
- pt
|
||||
- ro
|
||||
- ru
|
||||
- sa
|
||||
- sd
|
||||
- si
|
||||
- sk
|
||||
- sl
|
||||
- so
|
||||
- sq
|
||||
- sr
|
||||
- su
|
||||
- sv
|
||||
- sw
|
||||
- ta
|
||||
- te
|
||||
- th
|
||||
- tl
|
||||
- tr
|
||||
- ug
|
||||
- uk
|
||||
- ur
|
||||
- uz
|
||||
- vi
|
||||
- xh
|
||||
- yi
|
||||
- zh
|
||||
license: mit
|
||||
---
|
||||
|
||||
# XLM-RoBERTa (large-sized model)
|
||||
|
||||
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper [Unsupervised Cross-lingual Representation Learning at Scale](https://arxiv.org/abs/1911.02116) by Conneau et al. and first released in [this repository](https://github.com/pytorch/fairseq/tree/master/examples/xlmr).
|
||||
|
||||
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
|
||||
|
||||
## Model description
|
||||
|
||||
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
|
||||
|
||||
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
|
||||
|
||||
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
|
||||
|
||||
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
|
||||
|
||||
## Intended uses & limitations
|
||||
|
||||
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the [model hub](https://huggingface.co/models?search=xlm-roberta) to look for fine-tuned versions on a task that interests you.
|
||||
|
||||
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
|
||||
|
||||
## Usage
|
||||
|
||||
You can use this model directly with a pipeline for masked language modeling:
|
||||
|
||||
```python
|
||||
>>> from transformers import pipeline
|
||||
>>> unmasker = pipeline('fill-mask', model='xlm-roberta-large')
|
||||
>>> unmasker("Hello I'm a <mask> model.")
|
||||
|
||||
[{'score': 0.10563907772302628,
|
||||
'sequence': "Hello I'm a fashion model.",
|
||||
'token': 54543,
|
||||
'token_str': 'fashion'},
|
||||
{'score': 0.08015287667512894,
|
||||
'sequence': "Hello I'm a new model.",
|
||||
'token': 3525,
|
||||
'token_str': 'new'},
|
||||
{'score': 0.033413201570510864,
|
||||
'sequence': "Hello I'm a model model.",
|
||||
'token': 3299,
|
||||
'token_str': 'model'},
|
||||
{'score': 0.030217764899134636,
|
||||
'sequence': "Hello I'm a French model.",
|
||||
'token': 92265,
|
||||
'token_str': 'French'},
|
||||
{'score': 0.026436051353812218,
|
||||
'sequence': "Hello I'm a sexy model.",
|
||||
'token': 17473,
|
||||
'token_str': 'sexy'}]
|
||||
```
|
||||
|
||||
Here is how to use this model to get the features of a given text in PyTorch:
|
||||
|
||||
```python
|
||||
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
||||
|
||||
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-large')
|
||||
model = AutoModelForMaskedLM.from_pretrained("xlm-roberta-large")
|
||||
|
||||
# prepare input
|
||||
text = "Replace me by any text you'd like."
|
||||
encoded_input = tokenizer(text, return_tensors='pt')
|
||||
|
||||
# forward pass
|
||||
output = model(**encoded_input)
|
||||
```
|
||||
|
||||
### BibTeX entry and citation info
|
||||
|
||||
```bibtex
|
||||
@article{DBLP:journals/corr/abs-1911-02116,
|
||||
author = {Alexis Conneau and
|
||||
Kartikay Khandelwal and
|
||||
Naman Goyal and
|
||||
Vishrav Chaudhary and
|
||||
Guillaume Wenzek and
|
||||
Francisco Guzm{\'{a}}n and
|
||||
Edouard Grave and
|
||||
Myle Ott and
|
||||
Luke Zettlemoyer and
|
||||
Veselin Stoyanov},
|
||||
title = {Unsupervised Cross-lingual Representation Learning at Scale},
|
||||
journal = {CoRR},
|
||||
volume = {abs/1911.02116},
|
||||
year = {2019},
|
||||
url = {http://arxiv.org/abs/1911.02116},
|
||||
eprinttype = {arXiv},
|
||||
eprint = {1911.02116},
|
||||
timestamp = {Mon, 11 Nov 2019 18:38:09 +0100},
|
||||
biburl = {https://dblp.org/rec/journals/corr/abs-1911-02116.bib},
|
||||
bibsource = {dblp computer science bibliography, https://dblp.org}
|
||||
}
|
||||
```
|
||||
|
||||
<a href="https://huggingface.co/exbert/?model=xlm-roberta-base">
|
||||
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
|
||||
</a>
|
||||
25
xlm-roberta-large/config.json
Normal file
25
xlm-roberta-large/config.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"architectures": [
|
||||
"XLMRobertaForMaskedLM"
|
||||
],
|
||||
"attention_probs_dropout_prob": 0.1,
|
||||
"bos_token_id": 0,
|
||||
"eos_token_id": 2,
|
||||
"hidden_act": "gelu",
|
||||
"hidden_dropout_prob": 0.1,
|
||||
"hidden_size": 1024,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 4096,
|
||||
"layer_norm_eps": 1e-05,
|
||||
"max_position_embeddings": 514,
|
||||
"model_type": "xlm-roberta",
|
||||
"num_attention_heads": 16,
|
||||
"num_hidden_layers": 24,
|
||||
"output_past": true,
|
||||
"pad_token_id": 1,
|
||||
"position_embedding_type": "absolute",
|
||||
"transformers_version": "4.17.0.dev0",
|
||||
"type_vocab_size": 1,
|
||||
"use_cache": true,
|
||||
"vocab_size": 250002
|
||||
}
|
||||
1
xlm-roberta-large/configuration.json
Normal file
1
xlm-roberta-large/configuration.json
Normal file
@ -0,0 +1 @@
|
||||
{"framework": "pytorch", "task": "fill-mask", "allow_remote": true}
|
||||
3
xlm-roberta-large/flax_model.msgpack
Normal file
3
xlm-roberta-large/flax_model.msgpack
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:96d19a73ca044be7c23518d2d23154eb0a1e6fb301d3b086e2d80bdfff1391ce
|
||||
size 2240584013
|
||||
3
xlm-roberta-large/model.safetensors
Normal file
3
xlm-roberta-large/model.safetensors
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2dfa19f172412917cab174da04b46e2134811b723666965fd0aabd97caa6e23b
|
||||
size 2244817354
|
||||
27
xlm-roberta-large/onnx/config.json
Normal file
27
xlm-roberta-large/onnx/config.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"_name_or_path": "xlm-roberta-large",
|
||||
"architectures": [
|
||||
"XLMRobertaForMaskedLM"
|
||||
],
|
||||
"attention_probs_dropout_prob": 0.1,
|
||||
"bos_token_id": 0,
|
||||
"classifier_dropout": null,
|
||||
"eos_token_id": 2,
|
||||
"hidden_act": "gelu",
|
||||
"hidden_dropout_prob": 0.1,
|
||||
"hidden_size": 1024,
|
||||
"initializer_range": 0.02,
|
||||
"intermediate_size": 4096,
|
||||
"layer_norm_eps": 1e-05,
|
||||
"max_position_embeddings": 514,
|
||||
"model_type": "xlm-roberta",
|
||||
"num_attention_heads": 16,
|
||||
"num_hidden_layers": 24,
|
||||
"output_past": true,
|
||||
"pad_token_id": 1,
|
||||
"position_embedding_type": "absolute",
|
||||
"transformers_version": "4.30.2",
|
||||
"type_vocab_size": 1,
|
||||
"use_cache": true,
|
||||
"vocab_size": 250002
|
||||
}
|
||||
3
xlm-roberta-large/onnx/model.onnx
Normal file
3
xlm-roberta-large/onnx/model.onnx
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bb5a52503a3ef35247f5b5ae6c473aaae60505dd3ffaef56d7b69e2f84683c05
|
||||
size 545850
|
||||
3
xlm-roberta-large/onnx/model.onnx_data
Normal file
3
xlm-roberta-large/onnx/model.onnx_data
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1798dab29db9d3fe4193ffa091512730369bd1c1c2041de430e09394d4f57df1
|
||||
size 2235363328
|
||||
BIN
xlm-roberta-large/onnx/sentencepiece.bpe.model
(Stored with Git LFS)
Normal file
BIN
xlm-roberta-large/onnx/sentencepiece.bpe.model
(Stored with Git LFS)
Normal file
Binary file not shown.
15
xlm-roberta-large/onnx/special_tokens_map.json
Normal file
15
xlm-roberta-large/onnx/special_tokens_map.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"bos_token": "<s>",
|
||||
"cls_token": "<s>",
|
||||
"eos_token": "</s>",
|
||||
"mask_token": {
|
||||
"content": "<mask>",
|
||||
"lstrip": true,
|
||||
"normalized": false,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"pad_token": "<pad>",
|
||||
"sep_token": "</s>",
|
||||
"unk_token": "<unk>"
|
||||
}
|
||||
BIN
xlm-roberta-large/onnx/tokenizer.json
(Stored with Git LFS)
Normal file
BIN
xlm-roberta-large/onnx/tokenizer.json
(Stored with Git LFS)
Normal file
Binary file not shown.
19
xlm-roberta-large/onnx/tokenizer_config.json
Normal file
19
xlm-roberta-large/onnx/tokenizer_config.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"bos_token": "<s>",
|
||||
"clean_up_tokenization_spaces": true,
|
||||
"cls_token": "<s>",
|
||||
"eos_token": "</s>",
|
||||
"mask_token": {
|
||||
"__type": "AddedToken",
|
||||
"content": "<mask>",
|
||||
"lstrip": true,
|
||||
"normalized": true,
|
||||
"rstrip": false,
|
||||
"single_word": false
|
||||
},
|
||||
"model_max_length": 512,
|
||||
"pad_token": "<pad>",
|
||||
"sep_token": "</s>",
|
||||
"tokenizer_class": "XLMRobertaTokenizer",
|
||||
"unk_token": "<unk>"
|
||||
}
|
||||
3
xlm-roberta-large/pytorch_model.bin
Normal file
3
xlm-roberta-large/pytorch_model.bin
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:01e55aa45dbb9164fee19aef60007a1c91d175051c01be1fb15056cfa60f3e53
|
||||
size 2244861551
|
||||
BIN
xlm-roberta-large/sentencepiece.bpe.model
(Stored with Git LFS)
Normal file
BIN
xlm-roberta-large/sentencepiece.bpe.model
(Stored with Git LFS)
Normal file
Binary file not shown.
3
xlm-roberta-large/tf_model.h5
Normal file
3
xlm-roberta-large/tf_model.h5
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a465c8d459fe83e10db5655221e2e7e7b6df3de2216c524399358d17ac7315ea
|
||||
size 2240076248
|
||||
3
xlm-roberta-large/tokenizer.json
Normal file
3
xlm-roberta-large/tokenizer.json
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a898ea75433890f6610f4e470b8ebeb0c21dce5c8dd61f892eb09eb5919d2e2c
|
||||
size 9096718
|
||||
Reference in New Issue
Block a user