Instructions to use windowsartes/funnel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use windowsartes/funnel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="windowsartes/funnel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("windowsartes/funnel") model = AutoModelForMaskedLM.from_pretrained("windowsartes/funnel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from windowsartes/funnel: direct link, hf CLI and curl.
- Browser
- Download file 734 Bytes
-
https://huggingface.co/windowsartes/funnel/resolve/main/config.json
- Command line
-
hf download hf://windowsartes/funnel/config.json
-
curl -L -o config.json https://huggingface.co/windowsartes/funnel/resolve/main/config.json
734 Bytes
| { | |
| "_name_or_path": "/content/drive/MyDrive/model/funnel", | |
| "activation_dropout": 0.0, | |
| "architectures": [ | |
| "FunnelForMaskedLM" | |
| ], | |
| "attention_dropout": 0.1, | |
| "attention_type": "relative_shift", | |
| "block_repeats": [ | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "block_sizes": [ | |
| 4, | |
| 4, | |
| 4 | |
| ], | |
| "d_head": 64, | |
| "d_inner": 1536, | |
| "d_model": 384, | |
| "hidden_act": "gelu_new", | |
| "hidden_dropout": 0.1, | |
| "initializer_range": 0.1, | |
| "initializer_std": null, | |
| "layer_norm_eps": 1e-09, | |
| "model_type": "funnel", | |
| "n_head": 6, | |
| "num_decoder_layers": 2, | |
| "pool_q_only": true, | |
| "pooling_type": "mean", | |
| "separate_cls": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.40.2", | |
| "truncate_seq": true, | |
| "vocab_size": 909 | |
| } | |