alirezaaminzadeh commited on
Commit
fb380f7
·
verified ·
1 Parent(s): e6e9fae

Publish RetailOpt codegen coder model card

Browse files
Files changed (2) hide show
  1. README.md +42 -0
  2. config.json +8 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
4
+ tags:
5
+ - optimization
6
+ - code-generation
7
+ - retail
8
+ - pyomo
9
+ - fine-tuned
10
+ ---
11
+
12
+ # RetailOpt Codegen Coder
13
+
14
+ Fine-tuned Qwen2.5-Coder for natural-language retail supply-chain scenarios → executable Pyomo code.
15
+
16
+ ## Training
17
+
18
+ | Property | Value |
19
+ |----------|-------|
20
+ | Base model | Qwen/Qwen2.5-Coder-1.5B-Instruct |
21
+ | Dataset | retailopt-10k-verified |
22
+ | Method | SFT (TRL) |
23
+ | Task | NL + JSON → Pyomo + HiGHS |
24
+ | Reference | SIRL-Gurobi |
25
+
26
+ ## Training Command
27
+
28
+ ```bash
29
+ hf jobs uv run scripts/run_finetune_job.py \
30
+ --flavor a10g-large --timeout 3h --secrets HF_TOKEN=$HF_TOKEN --detach
31
+ ```
32
+
33
+ ## Intended Use
34
+
35
+ Generate Pyomo optimization models for retail inventory, allocation, procurement,
36
+ distribution, fulfillment, and pricing scenarios from structured prompts.
37
+
38
+ ## Limitations
39
+
40
+ - Trained on simplified Pyomo templates; complex shelf-life aging may require repair loop
41
+ - HiGHS solver required at inference time
42
+ - Not a substitute for human OR validation on production planning systems
config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "retailopt-codegen-coder",
3
+ "base_model": "Qwen/Qwen2.5-Coder-1.5B-Instruct",
4
+ "training_dataset": "alirezaaminzadeh/retailopt-10k-verified",
5
+ "task": "text-to-pyomo",
6
+ "fine_tune_method": "SFT",
7
+ "reference_sirl": "chenyitian-shanshu/SIRL-Gurobi"
8
+ }