From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

Magma-8B

Date: 2026-11-15Commit: 4159b1dSigned: 2DC28CC7B26A283B ✓

Robotics model with 8.9B parameters. Safetensors weights, 17.8 GB in all. Published by microsoft under MIT.

8.9B params17.8GBMagma-8Bsafetensorspermissive
FactsParams8.9BSize17.8 GBFormatssafetensorsTaskroboticsLicenseMITFrom sourcepermissive
$ fw get microsoft/Magma-8B
# manifest sha256 e3e94eda44e2… · 17.8 GB · 19 files
$ fw verify ./Magma-8B microsoft/Magma-8B
From sourceHosted (signed)microsoft/Magma-8BLast check: 2026-11-15 03:44 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
17.8 GB
Weights
17.8 GB (safetensors)
Parameters
8.9B
Formats
safetensors
Task
robotics
License
MIT (permissive)
Files
19, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:44 UTCpassed

Model card

From the publisher at commit 4159b1d. Shown as plain text with links; images open at the publisher.

Model Card for Magma-8B#

Magma: A Foundation Model for Multimodal AI Agents#

Jianwei Yang*1†&nbsp; Reuben Tan1†&nbsp; Qianhui Wu1†&nbsp; Ruijie Zheng2‡&nbsp; Baolin Peng1‡&nbsp; Yongyuan Liang2‡

Yu Gu1&nbsp; Mu Cai3&nbsp; Seonghyeon Ye4&nbsp; Joel Jang5&nbsp; Yuquan Deng5&nbsp; Lars Liden1&nbsp; Jianfeng Gao1▽

1 Microsoft Research; 2 University of Maryland; 3 University of Wisconsin-Madison 4 KAIST; 5 University of Washington

  • Project lead † First authors ‡ Second authors ▽ Leadership

\[arXiv Paper\] &nbsp; \[Project Page\] &nbsp; \[Hugging Face Paper\] &nbsp; \[Github Repo\] &nbsp; \[Video\]

Agents#

UI Navigation#

What's weather in Seattle? & turn on flight mode

Share and message this to Bob Steve. Click send button

Robot Manipulation#

Pick Place Hotdog Sausage

Put Mushroom Place Pot

Push Cloth Left to Right (Out-of-Dist.)

Gaming#

Task: Model controls the robot to collect green blocks.

Magma v.s. LLaVA-OneVision

Magma v.s. GPT4o-minni

Model Details#

Image: image

Model Description#

Magma is a multimodal agentic AI model that can generate text based on the input text and image. The model is designed for research purposes and aimed at knowledge-sharing and accelerating research in multimodal AI, in particular the multimodal agentic AI. The main innovation of this model lies on the introduction of two technical innovations: Set-of-Mark and Trace-of-Mark, and the leverage of a large amount of unlabeled video data to learn the spatial-temporal grounding and planning. Please refer to our paper for more technical details.

Highlights#
  • Digital and Physical Worlds: Magma is the first-ever foundation model for multimodal AI agents, designed to handle complex interactions across both virtual and real environments!
  • Versatile Capabilities: Magma as a single model not only possesses generic image and videos understanding ability, but also generate goal-driven visual plans and actions, making it versatile for different agentic tasks!
  • State-of-the-art Performance: Magma achieves state-of-the-art performance on various multimodal tasks, including UI navigation, robotics manipulation, as well as generic image and video understanding, in particular the spatial understanding and reasoning!
  • Scalable Pretraining Strategy: Magma is designed to be learned scalably from unlabeled videos in the wild in addition to the existing agentic data, making it strong generalization ability and suitable for real-world applications!

License#

The model is developed by Microsoft and is funded by Microsoft Research. The model is shared by Microsoft Research and is licensed under the MIT License.

How to Get Started with the Model#

To get started with the model, you first need to make sure that transformers and torch are installed, as well as installing the following dependencies:

pip install torchvision Pillow open_clip_torch

⚠️ Please note that you need to install our customized transformers lib:

pip install git+https://github.com/jwyang/transformers.git@dev/jwyang-v4.48.2

See here for the reason why you need this.

Then you can run the following code:

import torch
from PIL import Image
from io import BytesIO
import requests

from transformers import AutoModelForCausalLM, AutoProcessor

# Load the model and processor
dtype = torch.bfloat16
model = AutoModelForCausalLM.from_pretrained("microsoft/Magma-8B", trust_remote_code=True, torch_dtype=dtype)
processor = AutoProcessor.from_pretrained("microsoft/Magma-8B", trust_remote_code=True)
model.to("cuda")

# Inference
url = "https://assets-c4akfrf5b4d3f4b7.z01.azurefd.net/assets/2024/04/BMDataViz_661fb89f3845e.png"
image = Image.open(BytesIO(requests.get(url, stream=True).content))
image = image.convert("RGB")

convs = [
    {"role": "system", "content": "You are agent that can see, talk and act."},
    {"role": "user", "content": "<image_start><image><image_end>
What is in this image?"},
]
prompt = processor.tokenizer.apply_chat_template(convs, tokenize=False, add_generation_prompt=True)
inputs = processor(images=[image], texts=prompt, return_tensors="pt")
inputs['pixel_values'] = inputs['pixel_values'].unsqueeze(0)
inputs['image_sizes'] = inputs['image_sizes'].unsqueeze(0)
inputs = inputs.to("cuda").to(dtype)

generation_args = { 
    "max_new_tokens": 128, 
    "temperature": 0.0, 
    "do_sample": False, 
    "use_cache": True,
    "num_beams": 1,
}

with torch.inference_mode():
    generate_ids = model.generate(**inputs, **generation_args)

generate_ids = generate_ids[:, inputs["input_ids"].shape[-1] :]
response = processor.decode(generate_ids[0], skip_special_tokens=True).strip()
print(response)

Training Details#

Training Data#

Our training data consists of:

The data collection process involved sourcing information from publicly available documents, with a meticulous approach to filtering out undesirable documents and images. To safeguard privacy, we carefully filtered various image and text data sources to remove or scrub any potentially personal data from the training data.

More details can be found in our paper.

Microsoft Privacy Notice

Training Procedure#
Preprocessing#

In addition to the text-related preprocessing, we mainly undertake the following image and video preprocessing steps:

  • UI Grounding and Navigation Data: For each UI screenshot, we extract the bounding boxes for the UI elements, and apply Set-of-Mark Prompting to overlay numeric marks on the raw image. The model is trained to generate the UI grounding text based on the image and the Set-of-Mark prompts.
  • Instruction Video Data: For each video clip, we apply Co-Tracker to extract the grid traces and then apply filtering algorithm to remove the noisy or static points. For videos that bear camera motion, we further apply homography transformation to stabilize the video clips. In the end, we assign a numeric mark for each trace which gives us a set of trace-of-mark. The model is trained to generate the trace-of-mark given the video clips and instructional text.
  • Robotics Manipulation Data: For robotics data in Open-X Embodiment, we extract the 7 DoF robot gripper state and also extract the trace-of-mark from the video clips. Similar filtering and stabilization steps are applied to the video clips. The model is trained to generate the robot manipulation action as well as the trace-of-mark given the video clips and instructional text.

After all these preprocessing, we combine them with existing text annotations to form our final multimodal training data. We refer to our paper for more technical details.

Training Hyperparameters#

We used bf16 mixed precision for training on H100s and MI300s. We used the following hyperparameters for training:

  • Batch size: 1024
  • Learning rate: 1e-5
  • Max sequence length: 4096
  • Resolution: maximally 1024x1024 for image, 512x512 for video frame.
  • Pretraining Epochs: 3

Evaluation#

We evaluate the model in zero-shot manner on a wide range of tasks, mostly agent-related tasks.

Testing Data, Factors & Metrics#
Zero-shot Testing Data#

We evaluate the model's zero-shot performance on the following datasets:

Finetuned Testing Data#

We evaluate the model's performance after finetuning on the following datasets:

Metrics#

We follow the individual dataset's evaluation metrics for the evaluation. Please refer to the original dataset for more details.

Results on Agentic Intelligence#

Zero-shot evaluation on agentic intelligence. We report the results for pretrained Magma without any domain-specific finetuning. Magma is the only model that can conduct the full task spectrum.

ModelVQAv2TextVQAPOPESS-MobileSS-DesktopSS-WebVWB-Ele-GVWB-Act-GSE-Google RobotSE-Bridge
GPT-4V77.278.0n/a23.616.09.067.575.7--
GPT-4V-OmniParsern/an/an/a71.145.658.5----
LLava-1.578.558.285.9---12.113.6--
LLava-Next81.364.986.5---15.08.7--
Qwen-VL78.863.8n/a6.26.33.014.00.7--
Qwen-VL-Chat78.261.5n/a-------
Fuyu74.2n/an/a21.220.819.219.415.5--
SeeClick---65.051.144.19.91.9--
Octo----------
RT-1-X--------6.015.9
OpenVLA--------34.21.1
Magma-8B80.066.587.459.564.160.696.371.852.335.4

Notes: SS - ScreenSpot, VWB - VisualWebArena, SE - SimplerEnv

Technical Specifications#

Model Architecture and Objective#
  • Language Model: We use Meta LLama-3 as the backbone LLM.
  • Vision Encoder: We use CLIP-ConvneXt-XXLarge trained by LAION team as the vision encoder to tokenize the images and videos.

The whole pipeline follows the common practice in the multimodal LLMs, where the vision encoder is used to tokenize the images and videos, and then the visual tokens are fed into the LLM along with the textual tokens to generate the text outputs.

Compute Infrastructure#

We used Azure ML for our model training.

Hardware#

Our model is trained on two GPUs:

  • Nvidia H100
  • AMD MI300
Software#

Our model is built based on:

Intended Uses#

This model is intended for broad research use in English. It is designed only for research purposes and aimed at knowledge-sharing and accelerating research in multimodal AI, particularly in multimodal agentic AI. It is intended to be used by domain experts who are independently capable of evaluating the quality of outputs before acting on them.

Direct Use#

The model takes images and text as inputs, and produces the textual outputs for the following uses:

  • Image/Video-Conditioned Text Generation: The model can generate text (e.g., descriptions, answers) based on the input text and image.
  • Visual Planning Capabilities: The model can also produce the visual trace as the future planning to accomplish a task (e.g., move object from one place to another).
  • Agentic Capabilities: The model can also generate UI grounding (e.g., click ``search'' button) and robotics manipulations (e.g., 7 DoF for the robot gripper).
Downstream Use#

The model can be further finetuned for different downstream tasks, such as:

  • Image Captioning and QA: We can further finetune this model for image captioning and QA tasks under the pipeline of multimodal LLMs. Based on our experiments, the model can achieve competitive performance yet better spatial understanding and reasoning on these tasks.
  • Video Captioning and QA: We can further finetune this model for video captioning and QA tasks under the pipeline of multimodal LLMs. Based on our experiments, the model can achieve competitive performance yet better temporal understanding and reasoning on these tasks.
  • UI Navigation: We can finetune this model for specific UI navigation tasks, such as web navigation or mobile navigation. The model can achieve superior performance on these tasks.
  • Robotics Manipulation: Our model can be further finetuned for robotics tasks given its general agentic capabilities as a vision-language-action model. After finetuning, our model significantly outperforms the state-of-the-art models such as OpenVLA on robotics manipulation tasks.

Bias, Risks, and Limitations#

Please note that this model is not specifically designed or evaluated for all downstream purposes.

The model is not intended to be deployed in production settings. It should not be used in high-risk scenarios, such as military and defense, financial services, and critical infrastructure systems.

Developers should consider common limitations of multimodal models as they select use cases, and evaluate and mitigate for accuracy, safety, and fairness before using within a specific downstream use case.

Developers should be aware of and adhere to applicable laws or regulations (including privacy, trade compliance laws, etc.) that are relevant to their use case. Like other multimodal models, Magma can potentially behave in ways that are unfair, unreliable, or offensive.

The models' outputs do not reflect the opinions of Microsoft.

Some of the limiting behaviors to be aware of include:

  • Quality of Service: The model is trained primarily on English text. Languages other than English will experience worse performance. English language varieties with less representation in the training data might experience worse performance than standard American English. Magma is not intended to support multilingual use.
  • Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.
  • Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.
  • Information Reliability: Multimodal models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.

Developers should apply responsible AI best practices and are responsible for ensuring that a specific use case complies with relevant laws and regulations (e.g. privacy, trade, etc.). Using safety services like Azure AI Content Safety that have advanced guardrails is highly recommended.

Recommendations#

Magma was developed for research purposes only. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.

The recommended usage for the finetuned models is within the research settings they were trained on — namely,

  • an android simulator running on a computer for UI manipulation.
  • an enclosure equipped with a robotic arm and everyday objects for Robotic manipulation

For UI navigation task, researchers should make sure a human is in the loop and in control for every action the agentic system generates. Since the model cannot act by itself, the sub-module a researcher uses to actually perform the UI navigation action should ensure no unintended consequences can occur as a result of performing the UI action proposed by the model.

For the robotic manipulation task, some mitigation strategies to use for human safety when operating robotic arms include:

  • Safety Zones and Barriers: Establish physical barriers or safety zones around robotic workspaces to prevent unauthorized access.
  • Emergency Stop Systems: Equip robotic arms with easily accessible emergency stop buttons. Implement a fail-safe mechanism that triggers an immediate stop of operations in case of an emergency
  • Safety Standards and Compliance: Adhere to established safety standards (e.g., ISO 10218, ISO/TS 15066) for industrial robots and collaborative robots.
  • User Training and Awareness: Provide comprehensive training for all personnel working around robotic arms to understand their functions, safety features, and emergency procedures. Promote awareness of the potential risks associated with robotic manipulation.

Citation#

@misc{yang2025magmafoundationmodelmultimodal,\
      title={Magma: A Foundation Model for Multimodal AI Agents}, \
      author={Jianwei Yang and Reuben Tan and Qianhui Wu and Ruijie Zheng and Baolin Peng and Yongyuan Liang and Yu Gu and Mu Cai and Seonghyeon Ye and Joel Jang and Yuquan Deng and Lars Liden and Jianfeng Gao},\
      year={2025},\
      eprint={2502.13130},\
      archivePrefix={arXiv},\
      url={https://arxiv.org/abs/2502.13130}, \
}

Data Summary#

https://huggingface.co/microsoft/Magma-8B/blob/main/data_summary_card.md

Files

19 files · 17.8 GBWeights 17.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 19 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md27.9 KBada796263727e74e22e3c7a531c62c04fbeb62165761e37528314d9d8f9645a6
config.json3.25 KBd667a4189c2c613ada82eda3c7d8c78d63550599ab3308db6c67d8176e496fb4
configuration_magma.py7.60 KBe40d8f76d10772ee9c923abdbfb950379c50da87af86f28c57f5d970ae4fccb6
data_summary_card.md4.77 KB887e4e132f74bd5e865a3e5c169db0cb7e09b0b2081bc7ed75b125832136d6ed
generation_config.json152 Bc611825fabb728b6b57de542672282728c753c609a4f5a8bc51afb8a009d2765
image_processing_magma.py11.2 KBe5cc4b78b1cd6ad886a125609378fba1c4ddb4c31f79d63e95320d0be80ab1c7
image_tower_magma.py15.1 KBe45b4b1f6d3b1b76bffcfacfb6ae96229a52d5a0eb8fb7fc2924436865437f0b
model-00001-of-00004.safetensors4.98 GB1a66e191d251086f7d69a9429369335d1a1fdab095a1c092663ee68b3c1617c9
model-00002-of-00004.safetensors5.00 GB0901258329a669ff8cfc7786195a66f5ccac60c7f5d9ef2626131af9d6a35eeb
model-00003-of-00004.safetensors4.92 GB3712dfed60b51ab7ce062259d5b0ac161f12809774ac9f4b449cb38f6eb45fa0
model-00004-of-00004.safetensors2.91 GB0a40173f75b7137a9a2ac9330e317b69b1cf532155501adc44f7b49cef1ba1c7
model.safetensors.index.json70.3 KBa58f4c60ee9118eb08e7c1cb9939070742396fe17db82ddad38f6bd9fd0a6a2f
modeling_magma.py75.6 KB5df2189b622e9d627e84c0277ca1ad3e3d854bac89583a3b25b0e14d74262e24
preprocessor_config.json478 Bc4ab8978c370e24321fbfd20306dee969675c8eaca1514a36bd5d32592d0b6c3
processing_magma.py7.77 KB6b00b22f0286598f40e898abbdb92693f98ea35bfb40f275dc6848f900c1699c
special_tokens_map.json434 B3bfecc94ec8988f1cadd0e761cbaf868019ad1fa6b4e10706e47ffd0b61b109b
tokenizer.json9.09 MB3699a31c5381294553559f9cb858d1c284b12354723625899b20627050d7b2b0
tokenizer_config.json52.0 KB09b28b21822c404e460fee0498bc846fd9cedea6d656bcf422622c14e4288d3b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
4159b1deda pinned now2026-11-15 03:44 UTC19 files · 17.8 GB

Use it

$ fw get microsoft/Magma-8B
# manifest sha256 e3e94eda44e2… · 17.8 GB · 19 files
$ fw verify ./Magma-8B microsoft/Magma-8B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/Magma-8B.json --dir ./Magma-8B $ python3 fw.py verify ./Magma-8B ./microsoft__Magma-8B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Magma-8B --revision 4159b1dedade8f88b5bbaaae7810299dee5228f5 --local-dir ./Magma-8B

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
ada796263727e74e22e3c7a531c62c04fbeb62165761e37528314d9d8f9645a6
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject: Magma-8BDate: 2026-11-15Commit: 4159b1dSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/Magma-8B
Pinned commit
4159b1dedade8f88b5bbaaae7810299dee5228f5
Manifest
Magma-8B.json · .minisig
Manifest sha256
e3e94eda44e2c2e62ab4f7874361f01e05315eea1d1fa4f7676575132ec3ab60
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/Magma-8B.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/Magma-8B.json.minisig $ minisign -Vm Magma-8B.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/Magma-8B
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Magma-8B.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B