Instructions to use hf-internal-testing/tiny-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-bert")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-bert") model = AutoModel.from_pretrained("hf-internal-testing/tiny-bert") - Notebooks
- Google Colab
- Kaggle
model_max_length=1000000000000000019884624838656
#2
by AngledLuffa - opened
This is a problem that comes up on quite a few models posted here, actually. There's a field in the tokenizer which should represent the maximum length of the model, which in this case is 512 based on the sizes of its internal tensors, and that field is often not set correctly on various models posted to HF.
For example:
https://huggingface.co/google/muril-large-cased/discussions/1
Is this something we can get fixed on the testing model and hopefully elsewhere as well? Thanks!