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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("microsoft/Magma-8B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Convert image to RGB to prevent error
Verified signatureThe error otherwise is e.g. for RGBA images (as the one in the example) "RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0"1d147a4 -
Fix inference script image download and formatting
Verified signature9a3f2eb -
Fix typos and include dependencies to install
Verified signature18620bc -
remove .transformer
5c76be9 -
update
4c46fe3 -
update
c5c8080 -
update
6e1cf4c -
update
f5081b4 -
update readme
e60c356 -
remove abundant contents
ba47289 -
remove abundant contents
01ec8bb -
remove verbo log
3c4a0e6 -
Update README.md
Verified signature9d6d993
-
Update README.md (#1)
Verified signature- Update README.md (e16c0b36d4e967dacbc82987e4f0821671a980a4) Co-authored-by: Swadheen Shukla <swadheen@users.noreply.huggingface.co>73df309
-
remove dependencies on deepspeed and wandb
6a828c2 -
update
f7db9ca -
update
5e21a94 -
update
018fbe3 -
update
2635739 -
update
1f82f11 -
update
fac8844 -
update
1e19458 -
add links
a7aa66e -
update readme
ce7ba42 -
Update README.md
Verified signature65011c6 -
update
912c4bd -
update
0583f08 -
update
3fe01ed -
add modeling_magma
18e9ab4 -
update
25537d2 -
add tokenizer
4342ccf -
Upload processing_magma.py
Verified signature71c922f -
Upload image_processing_magma.py
Verified signature58f2b4f -
Update preprocessor_config.json
Verified signatured2d3a96 -
Upload configuration_magma.py
Verified signaturec5e6f8f -
Update config.json
Verified signaturec375340 -
Upload preprocessor_config.json
Verified signaturee991434 -
Update README.md
Verified signature75a6754 -
Upload MagmaForConditionalGeneration
Verified signature0f0e2e4 -
initial commit
Verified signature6522cf9