Downloads · 30 days
14
9% of all-time downloads
chenyitian-shanshu/Qwen3-SIRL-4B
Qwen3-SIRL-4B is a machine learning model from chenyitian-shanshu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
<h2 align="center" OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling</h2 <p align="center" <a href="https://icml.cc/virtual/2026/poster/61027"<img src='https://img.shields.io/…
Downloads · 30 days
14
9% of all-time downloads
All-time downloads
157
Public
Parameters
4B
8.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
We introduce OPT-Engine, an extensible benchmark framework for optimization problems with controllable complexity and configurable templates. OPT-Engine spans ten canonical operations research problem classes,systematically scaling in complexity, thus provides a structured testbed for automated problem formulation and solving under different OR complexity. OPT-Engine facilitates rigorous, reproducible studies on how problem complexity impacts model performance, offering a more granular look at LLM formulation and solving capabilities.
For a given problem class, the OPT-Engine pipeline operates as follows:
We also provide C^3-Bench (Controllable & Configurable Complexity Benchmark), a dataset generated by our framework to facilitate reproducible research and enable further studies. The dataset is hosted alongside the complete OPT-Engine benchmark suite:
C³-Bench is structured into two complementary subsets for evaluating model performance on classical Operations Research (OR) problems under controlled complexity scaling:
Within the perturbation set, we introduce controlled variations across three dimensions that are known performance bottlenecks:
Linguistic Complexity: The underlying mathematical model is held constant, while the natural language description is rephrased into templates with systematically higher syntactic and lexical complexity, creating harder-to-parse problem statements.
Objective Perturbation: A constant term or simple coefficient change is introduced to the objective function, testing the model's ability to adapt to modified goals while the constraints remain unchanged.
Constraint Augmentation: One additional simple linear constraint is introduced to the original formulation, testing how models handle incremental increases in problem structure without altering the core variables or objective.
We recommend using the following S.I.R prompt template which can be found in benchmark_gurobi_prompts.py. Please replace the {question} with any natural language OR question.
Below is a simple example for model inference:
from transformers import AutoTokenizer
from benchmark_prompt_utils import benchmark_gurobi_prompts
from utils import extract_code_block, extract_obj
from vllm import SamplingParams, LLM
from langchain_core.prompts import PromptTemplate
import subprocess
# Load model and parameters
model = LLM("chenyitian-shanshu/Qwen3-SIRL-4B",
tensor_parallel_size=1,
trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("chenyitian-shanshu/Qwen3-SIRL-4B")
sampling_params = SamplingParams(
n=1,
temperature=0.5,
top_p=0.95,
max_tokens=8192,
repetition_penalty=1.02
)
# Load question. Here is just an example. Users can replace this with datasets they want to test
question = "An industrial tire company delivers large tires for equipment to remote engineering sites either by cargo planes or ultrawide trucks. Each cargo plane can transport 10 tires per trip and costs $1000. Each ultrawide truck can transport 6 tires per trip and costs $700. The company needs to transport at least 200 tires and has available $22000. Because most remote sites don't have proper airports, the number of plane trips cannot exceed the number of ultrawide truck trips. How many trips of each should be done to minimize the total number of trips?"
# Load prompt templete
TIR_prompt_user = PromptTemplate.from_template(benchmark_gurobi_prompts['zeroshot_q2mc_en'])
prompt =[ {"role": "user",
"content": TIR_prompt_user.format(Question=question).strip() }]
# Generate Response
text = tokenizer.apply_chat_template(prompt, tokenize=False, add_generation_prompt=True)
response = model.generate(text,sampling_params)
response_text = response[0].outputs[0].text
code_snippet = extract_code_block(response_text,'gurobi')
result = subprocess.run(['python3', '-c', code_snippet], capture_output=True, text=True, timeout=100)
obj = extract_obj(result.stdout,'gurobi')
print(response_text)
print('optimal value is', obj)
We evaluate the performance of our trained model on multiple datasets which include MAMO, IndustryOR, OptMATH and the C^3-Bench Dataset(OPT-Engine datasets) from https://github.com/Cardinal-Operations/OPTEngine.
If you find OPT-Engine (https://github.com/Cardinal-Operations/OPTEngine) useful or relevant to your research, please consider citing our paper:
@article{chen2026opt,
title={OPT-Engine: Benchmarking the Limits of LLMs in Optimization Modeling via Complexity Scaling},
author={Chen, Yitian and Cheng, Cheng and Sun, Yinan and Ling, Zi and Ge, Dongdong},
journal={arXiv preprint arXiv:2601.19924},
year={2026}
}