Run this model with HF Jobs
Run valhalla/maskgit-imagenet-soft-code-34k on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/valhalla/maskgit-imagenet-soft-code-34k. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/valhalla/maskgit-imagenet-soft-code-34k on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use valhalla/maskgit-imagenet-soft-code-34k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valhalla/maskgit-imagenet-soft-code-34k with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("valhalla/maskgit-imagenet-soft-code-34k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
add model
Browse filesFiles changed (2)
- config.jsonAdded+27
- pytorch_model.binAdded+3
123456789101112131415161718192021222324252627{ "_class_name": "MaskGitTransformer", "_version": "0.0.1", "add_cross_attention": false, "attention_dropout": 0.0, "codebook_size": 1024, "encoder_hidden_size": 1024, "hidden_dropout": 0.0, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-06, "mask_token_id": 2047, "max_position_embeddings": 264, "norm_type": "layernorm", "num_attention_heads": 16, "num_classes": 1000, "num_hidden_layers": 24, "num_vq_tokens": 256, "project_encoder_hidden_states": false, "use_bias": false, "use_encoder_layernorm": true, "use_mlm_layer": true, "use_mlm_layernorm": true, "use_normformer": false, "vocab_size": 2048}123version https://git-lfs.github.com/spec/v1oid sha256:80f90166b57d6fc44ae00fddc7ceab733cc12008434a82b2f9362cf8774dd602size 921971269config.jsonAdded+27
pytorch_model.binAdded+3