Instructions to use research-backup/mt5-base-trimmed-it-75000 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use research-backup/mt5-base-trimmed-it-75000 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("research-backup/mt5-base-trimmed-it-75000") model = AutoModelForSeq2SeqLM.from_pretrained("research-backup/mt5-base-trimmed-it-75000", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from research-backup/mt5-base-trimmed-it-75000: direct link, hf CLI and curl.
- Browser
- Download file 1.56 kB
-
https://huggingface.co/research-backup/mt5-base-trimmed-it-75000/resolve/main/README.md
- Command line
-
hf download hf://research-backup/mt5-base-trimmed-it-75000/README.md
-
curl -L -o README.md https://huggingface.co/research-backup/mt5-base-trimmed-it-75000/resolve/main/README.md
1.56 kB
Vocabulary Trimmed google/mt5-base: vocabtrimmer/mt5-base-trimmed-it-75000
This model is a trimmed version of google/mt5-base by vocabtrimmer, a tool for trimming vocabulary of language models to compress the model size.
Following table shows a summary of the trimming process.
| google/mt5-base | vocabtrimmer/mt5-base-trimmed-it-75000 | |
|---|---|---|
| parameter_size_full | 582,401,280 | 313,430,784 |
| parameter_size_embedding | 384,172,032 | 115,201,536 |
| vocab_size | 250,112 | 75,001 |
| compression_rate_full | 100.0 | 53.82 |
| compression_rate_embedding | 100.0 | 29.99 |
Following table shows the parameter used to trim vocabulary.
| language | dataset | dataset_column | dataset_name | dataset_split | target_vocab_size | min_frequency |
|---|---|---|---|---|---|---|
| it | vocabtrimmer/mc4_validation | text | it | validation | 75000 | 2 |