Instructions to use microsoft/Magma-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Magma-8B with Transformers:
# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("microsoft/Magma-8B", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
File size: 480 Bytes
e991434 d2d3a96 e991434 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | {
"auto_map": {
"AutoProcessor": "processing_magma.MagmaProcessor",
"AutoImageProcessor": "image_processing_magma.MagmaImageProcessor"
},
"anyres_strategy": "crop",
"base_img_size": 512,
"do_convert_rgb": true,
"image_mean": [
0.48145466,
0.4578275,
0.40821073
],
"image_processor_type": "MagmaImageProcessor",
"image_std": [
0.26862954,
0.26130258,
0.27577711
],
"num_crops": 4,
"processor_class": "MagmaProcessor"
}
|