Instructions to use hf-internal-testing/tiny-random-SegGptModel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-SegGptModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="hf-internal-testing/tiny-random-SegGptModel")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("hf-internal-testing/tiny-random-SegGptModel") model = AutoModel.from_pretrained("hf-internal-testing/tiny-random-SegGptModel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from hf-internal-testing/tiny-random-SegGptModel: direct link, hf CLI and curl.
- Browser
- Download file 660 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-SegGptModel/resolve/4cd4a43cf23df3c36b6a287c9760254dab8371df/config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-SegGptModel@4cd4a43cf23df3c36b6a287c9760254dab8371df/config.json
-
curl -L -o config.json https://huggingface.co/hf-internal-testing/tiny-random-SegGptModel/resolve/4cd4a43cf23df3c36b6a287c9760254dab8371df/config.json
660 Bytes
| { | |
| "architectures": [ | |
| "SegGptModel" | |
| ], | |
| "beta": 0.01, | |
| "decoder_hidden_size": 10, | |
| "drop_path_rate": 0.1, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 32, | |
| "image_size": 30, | |
| "initializer_range": 0.02, | |
| "intermediate_hidden_state_indices": [ | |
| 1 | |
| ], | |
| "layer_norm_eps": 1e-06, | |
| "merge_index": 0, | |
| "mlp_dim": 128, | |
| "mlp_ratio": 2.0, | |
| "model_type": "seggpt", | |
| "num_attention_heads": 4, | |
| "num_channels": 3, | |
| "num_hidden_layers": 2, | |
| "patch_size": 2, | |
| "pretrain_image_size": 10, | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.0.dev0", | |
| "use_relative_position_embeddings": true | |
| } | |