Instructions to use adammoss/patch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adammoss/patch with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import PatchGPT model = PatchGPT.from_pretrained("adammoss/patch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from adammoss/patch: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/adammoss/patch/resolve/main/config.json
- Command line
-
hf download hf://adammoss/patch/config.json
-
curl -L -o config.json https://huggingface.co/adammoss/patch/resolve/main/config.json
397 Bytes
| { | |
| "architectures": [ | |
| "PatchGPT" | |
| ], | |
| "dropout": 0.1, | |
| "head_type": "pretrain_mask", | |
| "model_type": "patchgpt", | |
| "n_channels": 6, | |
| "n_embd": 36, | |
| "n_head": 6, | |
| "n_labels": 18, | |
| "n_layer": 6, | |
| "n_positions": 1024, | |
| "n_static": 2, | |
| "patch_size": 7, | |
| "position_embedding": "relative_key", | |
| "random_mask_ratio": 0.5, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.3" | |
| } | |