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

elem2design

Date: 2026-11-15Commit: c4f20b5Signed: 2DC28CC7B26A283B ✓

Model. Safetensors weights, 220 MB in all. Published by microsoft under MIT.

text220MBelem2designsafetensorspermissive
FactsParamsnot statedSize220 MBFormatssafetensorsTasknot taggedLicenseMITFrom sourcepermissive
$ fw get microsoft/elem2design
# manifest sha256 0b64290140ce… · 220 MB · 21 files
$ fw verify ./elem2design microsoft/elem2design
From sourceHosted (signed)microsoft/elem2designLast check: 2026-11-15 03:54 UTC

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

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
220 MB
Weights
168 MB (safetensors)
Parameters
not stated
Formats
safetensors
Task
not tagged
License
MIT (permissive)
Files
21, 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:54 UTCpassed

Model card

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

Model Details#

Model Description#

This model aims to compose user-provided graphic elements into a pleasing graphical design. It takes graphic elements (i.e., the images and texts) from users as input and generates the position, color and font information of each element as output.

  • Developed by: Jiawei Lin, Shizhao Sun, Danqing Huang, Ting Liu, Ji Li and Jiang Bian
  • Model type: Large Language Models
  • Language(s): Python
  • License: MIT
  • Finetuned from model: Llama-3.1-8B
Model Sources#

Uses#

Direct Use#

Compose user-provided graphic elements (i.e., images and texts) into a pleasing graphic design.

Elem2Design is being shared with the research community to facilitate reproduction of our results and foster further research in this area.

Out-of-Scope Use#

We do not recommend using Elem2Design in commercial or real-world applications without further testing and development. It is being released for research purposes.

Use in any manner that violates applicable laws or regulations.

Risks and Limitations#

Elem2Design inherits any biases, errors, or omissions produced by its base model. Developers are advised to choose an appropriate base LLM/MLLM carefully, depending on the intended use case. 

Elem2Design uses the Llama model. See https://huggingface.co/meta-llama/Llama-3.1-8B to understand the capabilities and limitations of this model.  

As the model is fine-tuned on very specific data about design composition, it is unlikely to generate information other than position, color and font. However, this is possible. It is more likely to happen when instructions unrelated to graphic design composition, e.g., how has the social media influenced our daily life, are fed into the model.

Graphic designs generated by Elem2Design may not be technically accurate or meet user specifications in all cases. Users are responsible for assessing the acceptability of generated content for each intended use case.

Elem2Design was developed for research and experimental purposes. Further testing and validation are needed before considering its application in commercial or real-world scenarios.

Recommendations#

Please only provide the images and texts that you want to show on the graphic design to the model.

Users are responsible for sourcing their content legally and ethically. This could include securing appropriate copy rights, ensuring consent for use of images of people, and/or the anonymization of data prior to use in research.  

How to Get Started with the Model#

python llava/infer/infer.py \
      --model_name_or_path /path/to/model/checkpoint-xxxx \
      --data_path /path/to/data/test.json \
      --image_folder /path/to/crello_images \
      --output_dir /path/to/output_dir \
      --start_layer_index 0 \ 
      --end_layer_index 4

For more information, please visit our GitHub repo: https://github.com/microsoft/elem2design.

Training Details#

Training Data#

The training data is from an open-source dataset (https://huggingface.co/datasets/cyberagent/crello).

Training Procedure#
Preprocessing#

The training samples with more than 25 design elements are filtered out to maintain a limited sequence length and thereby improve training efficiency.

Training Hyperparameters#
  • Learning rate: 2e-4
  • Global batch size: 128
  • Number of training steps: 7000
  • Rank and alpha of LoRA: 32 and 64
Speeds, Sizes, Times#
  • Llama-3.1-8B: 8B parameters
  • CLIP ViT-Large-Patch14: 428M parameters

Evaluation#

Testing Data#

The testing data is from an open-source dataset (https://huggingface.co/datasets/cyberagent/crello).

Metrics#
  • Overall metrics. We use a robust proxy model (https://huggingface.co/llava-hf/llava-onevision-qwen2-7b-ov-hf) for comprehensive evaluation from five aspects: (i) design and layout, (ii) content relevance, (iii) typography and color, (iv) graphics and images, and (v) innovation and originality. We use the same prompts as presented in COLE [1].
  • Geometry-related metrics. These metrics focus purely on the geometric attributes of elements without considering their content, including element validity (Val), Overlap (Ove), Alignment (Ali) and underlay effectiveness (Undl, Unds) [2][3].
Results#

We use prior work FlexDM [1] and prompting GPT-4o [2] as baselines. In comparison, Elem2Design demonstrates superior performance across nearly all metrics. For example, on overall metrics, Elem2Design achieves 8.08, 7.92, 8.00, 7.82 and 6.98 on the evaluated five aspects. For another example, regarding geometry-related metrics, Elem2Design and FlexDM achieve Ove score of 0.0865 and 0.3242 respectively, indicting that Elem2Design effectively addresses the overlap issue whereas FlexDM encounters difficulties in this area. See Table 1 for the complete evaluation in our paper (https://arxiv.org/pdf/2412.19712)

Environmental Impact#

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

Citation#

@InProceedings{lin2024elements,
  title={From Elements to Design: A Layered Approach for Automatic Graphic Design Composition},
  author={Lin, Jiawei and Sun, Shizhao and Huang, Danqing and Liu, Ting and Li, Ji and Bian, Jiang},
  booktitle={CVPR},
  year={2025}
}

Model Card Contact#

We welcome feedback and collaboration from our audience. If you have suggestions, questions, or observe unexpected/offensive behavior in our technology, please contact us at Shizhao Sun, shizsu@microsoft.com.

If the team receives reports of undesired behavior or identifies issues independently, we will update this repository with appropriate mitigations. 

Files

21 files · 220 MBWeights 168 MB (safetensors). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md7.77 KB54942a67ff850006c9d69fcd57227324c3c4e9e8d44d1d47482174244069d8f8
adapter_config.json797 B85c9d8b4d426472e4930fbe155216cba3fe20b2c7493be159fe289cb25e66e31
adapter_model.safetensors168 MB1b98ad8ba7385dd3c775cf3f985127e306e44b449aaf6a5c6462d731ddea5730
config.json1.42 KB93d7c1eae4af39dedabec4b87a22805b2080117283abd9f0e4500705bc581ec3
mm_projector.bin42.0 MBf07fc46020e9555e7413e71875be60393c40b8b527424097dc0e29f7e1838ae7
rng_state_0.pth15.9 KBd86d6316667c268891d1b90bf0fa259106e90311c4e9e71f74b41221b5f80174
rng_state_1.pth15.9 KBc9042a297c8cd78a2ef58e3a81fbd6cd68503930cde10c5852bf7051b8be55c3
rng_state_2.pth15.9 KBbfa4ce2a94217fd28e70efd6419c02692bae7d6dd4aa8482add5bd2555e1880e
rng_state_3.pth15.9 KBd7006071f420730e4c6ee0a77699b4d64d865651c4ee538c34bbcd04bb3fa145
rng_state_4.pth15.9 KB400a062ad2874d0bc502723cc830f2a33c07cd943311ebcaef6c82559e5665e3
rng_state_5.pth15.9 KBea0008e4875c09ed7d2b898f65ceb0538fb99df3599aaf73ba0b8dd507516e12
rng_state_6.pth15.9 KBfb1d4dbd46a53af129b268aa4e8cf7bce675780d53e079d10825b5886883cda8
rng_state_7.pth15.9 KB1c17e34bb69a668b351c641d1d879a0d3dc77d273f62a48b30ca63d6f90b5109
scheduler.pt1.06 KBbea2f2fdffa3af1d5eb2404824dc82cb147ff3a7520ebfd8bae0a9bd2021a690
special_tokens_map.json321 B158240137e6cccc8b4353f7dab7ba0b18a8ee4c678514f359d4f98158caeec92
tokenizer.json9.09 MB79e3e522635f3171300913bb421464a87de6222182a0570b9b2ccba2a964b2b4
tokenizer_config.json50.5 KBe8c6867b8f1b658bfef9ab359742066ad7896512d5cdd7d3f7378faf8497d235
trainer_state.json698 KB841d22c570294267bc7f4ce2113057f1b076d447ef7703b1a4b30501ed7ca055
training_args.bin6.90 KB86bb579b1f9511be627da436115c8d38c5c6117f40dc3da7a05d4b5661cf7a6c
zero_to_fp32.py24.2 KB68f965505cd086b7582e9821f8a6bc9b5b80c43450671c1139f734d1c7678a2c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c4f20b5b84 pinned now2026-11-15 03:54 UTC21 files · 220 MB

Use it

$ fw get microsoft/elem2design
# manifest sha256 0b64290140ce… · 220 MB · 21 files
$ fw verify ./elem2design microsoft/elem2design
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/elem2design.json --dir ./elem2design $ python3 fw.py verify ./elem2design ./microsoft__elem2design.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/elem2design --revision c4f20b5b8496f6627260a5b38d65a736391bfa63 --local-dir ./elem2design

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
54942a67ff850006c9d69fcd57227324c3c4e9e8d44d1d47482174244069d8f8
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: elem2designDate: 2026-11-15Commit: c4f20b5Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/elem2design
Pinned commit
c4f20b5b8496f6627260a5b38d65a736391bfa63
Manifest
elem2design.json · .minisig
Manifest sha256
0b64290140ce34e07b79619880b6c8045294c5e90aafa5d6a3ea2a3e80fe1798
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:54 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/elem2design.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/elem2design.json.minisig $ minisign -Vm elem2design.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/elem2design
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. elem2design.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