Instructions to use FoamoftheSea/multiformer-m1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FoamoftheSea/multiformer-m1 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import Multiformer model = Multiformer.from_pretrained("FoamoftheSea/multiformer-m1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from FoamoftheSea/multiformer-m1: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/FoamoftheSea/multiformer-m1/resolve/main/README.md
- Command line
-
hf download hf://FoamoftheSea/multiformer-m1/README.md
-
curl -L -o README.md https://huggingface.co/FoamoftheSea/multiformer-m1/resolve/main/README.md
1.6 kB
metadata
license: apache-2.0
Multiformer
Multiformer is a multi-task vision transformer architecture designed to provide strong perception capabilities with a nimble and lightweight architecture.
This model uses a custom branch of the transformers library, which can be installed easily using the instructions below.
For training and evaluation, a custom MultitaskTrainer class is used that can handle complex nested losses and successfully log them to wandb.
A training/eval and inference script are both available in the project repository.
Setup Instructions
- Open a terminal and navigate to your root folder, then run
git clone https://github.com/FoamoftheSea/shift-experiments.git
- Follow the setup instructions for your operating system found in the README
Quick Load Multiformer-M1
You should now be able to run the following code to load a Multiformer-M1 with pretrained weights:
from transformers import AutoModel
multiformer = AutoModel.from_pretrained("FoamoftheSea/multiformer-m1)
