alt.freeweights.text / OptiMind-SFT
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

OptiMind-SFT

Date: 2026-11-15Commit: 817e066Signed: 2DC28CC7B26A283B ✓

Text generation model with 20.9B parameters. Safetensors weights, 41.9 GB in all. Published by microsoft under MIT.

20.9B params41.9GBOptiMind-SFTsafetensorspermissive
FactsParams20.9BSize41.9 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/OptiMind-SFT
# manifest sha256 b671bcf2c746… · 41.9 GB · 19 files
$ fw verify ./OptiMind-SFT microsoft/OptiMind-SFT
From sourceHosted (signed)microsoft/OptiMind-SFTLast check: 2026-11-15 03:48 UTC

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

Fine-tune of gpt-oss-20b-BF16.

Works with

Overview

Size
41.9 GB
Weights
41.8 GB (safetensors)
Parameters
20.9B
Formats
safetensors
Task
text generation
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.

Base model: unsloth/gpt-oss-20b-BF16

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:48 UTCpassed

Model card

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

Model Overview#

OptiMind-SFT is a specialized 20B parameter model designed to bridge the gap between natural language and executable optimization solvers. It automates the translation of complex decision-making problems—such as supply chain planning, scheduling, and resource allocation—into correct MILP formulations.

Model Summary#

Developer: Microsoft Research, Machine Learning and Optimization (MLO) Group \ Model Architecture: Mixture-of-Experts (MoE) variant of the transformer architecture (gpt-oss family). \ Parameters: 20 Billion (3.6B activated) \ Inputs: Natural language optimization problem description. \ Context Length: 128,000 tokens \ Outputs: Mathematical formulation and executable Python code using GurobiPy. \ GPUs: 8x NVIDIA B200 (Training), 8x NVIDIA H100 (Inference/Evaluation) \ Training Time: ~8 hours \ Public Data Summary: Cleaned subsets of OR-Instruct and OptMATH-Train \ Dates: Trained in October 2025 \ Status: Static model trained on cleaned public datasets \ Release Date: November 2025 \ License: MIT \ Model Dependencies: unsloth/gpt-oss-20b-BF16 \ Additional Assets: GitHub Repository

Usage#

Sample Useage#

OptiMind-SFT is best served with SGLang. we use SGLang’s OpenAI-compatible API together with the official openai Python client:

pip install "sglang[all]" openai gurobipy

# Make sure you have a valid Gurobi license and PYTHON>=3.12
python -m sglang.launch_server \
  --model-path microsoft/OptiMind-SFT \
  --host 0.0.0.0 \
  --port 30000 \
  --tensor-parallel-size 1 \
  --trust-remote-code

Below is the sample code to query the model:

from openai import OpenAI

# SGLang exposes an OpenAI-compatible endpoint
client = OpenAI(
    base_url="http://localhost:30000/v1",
    api_key="EMPTY"  # Not used by local SGLang, but required by the client
)

system_prompt = """You are an expert in optimization and mixed integer programming. You are given an
optimization problem and you need to solve it using gurobipy.
Reason step by step before generating the gurobipy code.
When you respond, first think carefully.
After thinking, output the math modeling of the problem.
Finally output a ```python ...``` code block that solves the problem.
The code must include:
import gurobipy as gp
from gurobipy import GRB
"""

user_problem = "A factory produces products A and B with capacity and demand constraints ..."

response = client.chat.completions.create(
    model="microsoft/OptiMind-SFT",
    messages=[
        {"role": "system", "content": system_prompt},
        {"role": "user", "content": user_problem},
    ],
    temperature=0.9,   # recommended default
    top_p=1.0,         # recommended default
    max_tokens=4096,
)

print(response.choices[0].message.content)

This will return a response that first describes the mathematical model and then includes a python code block implementing it in gurobipy.

Primary Use Cases#

  • Translating natural-language Operations Research (OR) problems into mixed-integer linear programs (MILPs) and corresponding gurobipy code for research and prototyping.
  • Studying and benchmarking NL to MILP modeling pipelines on public OR datasets such as IndustryOR, Mamo-Complex, and OptMATH.
  • Educational use for teaching how to derive optimization models (variables, constraints, objectives) from informal problem descriptions.
  • Performing ablations and research on solver-in-the-loop prompting and multi-turn correction in domain-specific modeling tasks.

Out-of-Scope Use Cases#

  • General-purpose chat, open-domain reasoning, or tasks unrelated to optimization modeling.
  • Safety-critical or regulated applications (e.g., healthcare, finance, legal decisions, credit scoring) without expert human review of both the model output and the resulting optimization.
  • Fully automated deployment where optimization results are used directly for real-world decisions without human oversight.
  • Automatic execution of generated code in production systems without sandboxing, logging, and appropriate security controls.

Technical Requirements & Integration#

We recommend ≥32GB GPU VRAM (e.g., A100/H100/B200) for comfortable inference, especially for long prompts and multi-turn interactions. Please checkout our GitHub page for instructions on the inference pipeline.

Data Overview#

Training and Validation Data#

We fine-tune OptiMind-SFT on cleaned versions of the OR-Instruct and OptMATH training sets, and validate on a held-out validation split drawn from the same cleaned corpora.

Testing Data#

For testing, we use manually cleaned and expert-validated versions of the IndustryOR, Mamo-Complex, and OptMATH benchmarks. Please visit our GitHub page to download the cleaned benchmarks.

Known Technical Limitations#

  • The model can still produce incorrect formulations or invalid code, or declare feasibility/optimality incorrectly.
  • It is specialized to OR benchmarks; behavior on general text or other problem domains is not guaranteed.
  • No dedicated red-teaming against unsafe content categories (e.g., hate, violence, self-harm) or jailbreak attacks has been performed; the paper focuses on technical robustness metrics.

Users must keep a human in the loop for all consequential decisions and carefully review any generated code before execution.

Other Sources & Maintenance#

For questions, issues, or feature requests, please use the GitHub issue tracker or the Hugging Face “Community” tab.

Citation#

If you use OptiMind-SFT or the associated datasets/benchmarks in your work, please cite:

@article{zhang2025optimind,
  title={OptiMind: Teaching LLMs to Think Like Optimization Experts},
  author={Zhang, Xinzhi and Chen, Zeyi and Zope, Humishka and Barbalho, Hugo and Mellou, Konstantina and Molinaro, Marco and Kulkarni, Janardhan and Menache, Ishai and Li, Sirui},
  journal={arXiv preprint arXiv:2509.22979},
  year={2025}
}

Files

19 files · 41.9 GBWeights 41.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 19 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md6.59 KB4a7628be80ef3147af60939fc8022f87497a729e483c654aecec75b65f8589d8
chat_template.jinja15.1 KB445c3a7c29d9cf61860179de179f60b6cf24834518b491016993eba63c8b1ecc
config.json1.64 KB2f71a245037dabafc5bb31fdfb22dad770a4243f5a075d0cfc57979124da0628
generation_config.json160 Bab7fbb4529433ec05c726bd53152457b288f658807f0aa573d4216346ea2ec34
model-00001-of-00010.safetensors4.45 GB495678a223d8ace08d28e9e9283911d1a351e5f9893dc5838a677839dedcbda7
model-00002-of-00010.safetensors4.81 GBe2a20f6352bdb54cfb82cd8b2439d03b568fd87525acc91fda376615b1e33147
model-00003-of-00010.safetensors4.86 GB5e913eeb586bbb9b64c199e9f9551e2d82b160a380ff78c2af7143abbdc7046a
model-00004-of-00010.safetensors4.84 GB5276f0035e463607be48e454a757701fb8e8e3f10a173f5db6a38c0eccc5c42d
model-00005-of-00010.safetensors4.96 GBa2d8ad5ed935666aabfbe23b764ed4c0db0ae2c9e2679363d6d4322358f44e3f
model-00006-of-00010.safetensors4.26 GB997b7ddef61922c5073c6809f0787edaa10a4c66d4e8f7eb45dfc80dfa0a5b5a
model-00007-of-00010.safetensors4.48 GB845eaaa20bd3d2cb14b0ee756345df3d145c3e418c20d0faf95aa1d0882056e0
model-00008-of-00010.safetensors3.97 GBeee660f78ac7b79760d4f7ac518dc6eee3ef90c45d09f882ce2b44f4c7e2609d
model-00009-of-00010.safetensors4.00 GBd8e73979a26eeeb3242c8226a818b095791ea3a2b24311126d69705b1efacb73
model-00010-of-00010.safetensors1.21 GB8d75862093f8f88525de3cff05fc760ae7265e499db9d783dd5986a442896605
model.safetensors.index.json33.6 KB9b5d3006201227454830717ec30a5fc7c71746526c4f51b6e32c38a4d1c29e70
special_tokens_map.json440 B8464cabd6eda239fe46ebf8ae63b46c417721784a961a022f6b59174a2cda0e2
tokenizer.json27.9 MB0614fe83cadab421296e664e1f48f4261fa8fef6e03e63bb75c20f38e37d07d3
tokenizer_config.json4.20 KB9279e942392b742d633c7adbb89ebe002c98399db8926a7af5125c726f404070
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
817e06666a pinned now2026-11-15 03:48 UTC19 files · 41.9 GB

Use it

$ fw get microsoft/OptiMind-SFT
# manifest sha256 b671bcf2c746… · 41.9 GB · 19 files
$ fw verify ./OptiMind-SFT microsoft/OptiMind-SFT
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/OptiMind-SFT.json --dir ./OptiMind-SFT $ python3 fw.py verify ./OptiMind-SFT ./microsoft__OptiMind-SFT.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/OptiMind-SFT --revision 817e06666a39155f9352d00354b3227d230da46d --local-dir ./OptiMind-SFT
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("microsoft/OptiMind-SFT", revision="817e06666a39155f9352d00354b3227d230da46d") model = AutoModelForCausalLM.from_pretrained("microsoft/OptiMind-SFT", revision="817e06666a39155f9352d00354b3227d230da46d", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/OptiMind-SFT --revision 817e06666a39155f9352d00354b3227d230da46d

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
4a7628be80ef3147af60939fc8022f87497a729e483c654aecec75b65f8589d8
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: OptiMind-SFTDate: 2026-11-15Commit: 817e066Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/OptiMind-SFT
Pinned commit
817e06666a39155f9352d00354b3227d230da46d
Manifest
OptiMind-SFT.json · .minisig
Manifest sha256
b671bcf2c746cc59a2d707854c3568904b464867600417324ee93cc13c912dcc
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:48 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/OptiMind-SFT.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/OptiMind-SFT.json.minisig $ minisign -Vm OptiMind-SFT.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

Parent

unsloth/gpt-oss-20b-BF16 · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/OptiMind-SFT
Open in Freeweights Studio

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

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