Instructions to use leroyrr/gMLP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leroyrr/gMLP with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("leroyrr/gMLP", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from leroyrr/gMLP: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/leroyrr/gMLP/resolve/main/config.json
- Command line
-
hf download hf://leroyrr/gMLP/config.json
-
curl -L -o config.json https://huggingface.co/leroyrr/gMLP/resolve/main/config.json
144 Bytes
| { | |
| "depth": 6, | |
| "dim": 128, | |
| "ff_mult": 4, | |
| "heads": 4, | |
| "num_classes": 2, | |
| "num_tokens": 1000, | |
| "prob_survival": 1.0, | |
| "seq_len": 150 | |
| } |