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
-
Update README.md
Verified signature#### **Fixed Typos:** - **InfoGrpahicVQA** → *InfographicVQA* - **staic** → *static* - **tne** → *the* - **textal** → *textual* - **mutimodal** → *multimodal* - **Conditoned** → *Conditioned* - **outperms** → *outperforms* - **FlashAttenton** → *FlashAttention* These fixes improve the clarity and readability of the documentation. No changes were made to the structure or meaning of the content.9895fa5
-
Add license metadata and set `image-text-to-text` task (#2)
Verified signature- Add license metadata and set `image-text-to-text` task (9e96b52511e9125c06f1a6b1e5ff014095b2cc00) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>422780d -
Fix typos and inference script (#3)
Verified signature- Fix typos and include dependencies to install (18620bc5a4d13d2778df07a7ff3be06e25947a5b) - Fix inference script image download and formatting (9a3f2ebe822b6efdc3f55510c242c9815f8a9165) - Convert image to RGB to prevent error (1d147a4aceaebcc9b94daeb7ea7c60fe5f526fe1) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>7506080 -
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