Instructions to use moonbox-dev/TRELLIS.2-4B-MLX-PyTorch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/TRELLIS.2-4B-MLX-PyTorch with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-dev/TRELLIS.2-4B-MLX-PyTorch --local-dir TRELLIS.2-4B-MLX-PyTorch
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
File size: 298 Bytes
ec429a8 | 1 2 3 4 5 6 7 8 9 10 11 12 | from transformers import PretrainedConfig
class BiRefNetConfig(PretrainedConfig):
model_type = "SegformerForSemanticSegmentation"
def __init__(
self,
bb_pretrained=False,
**kwargs
):
self.bb_pretrained = bb_pretrained
super().__init__(**kwargs)
|